Package be.seeseemelk.mockbukkit.ban
Class MockIpBanList
java.lang.Object
be.seeseemelk.mockbukkit.ban.MockIpBanList
- All Implemented Interfaces:
org.bukkit.ban.IpBanList,org.bukkit.BanList<InetAddress>
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.bukkit.BanList
org.bukkit.BanList.Type -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable org.bukkit.BanEntry<InetAddress> addBan(@NotNull String target, @Nullable String reason, @Nullable Date expires, @Nullable String source) @Nullable org.bukkit.BanEntry<InetAddress> addBan(@NotNull InetAddress target, @Nullable String reason, @Nullable Duration duration, @Nullable String source) @Nullable org.bukkit.BanEntry<InetAddress> addBan(@NotNull InetAddress target, @Nullable String reason, @Nullable Instant expires, @Nullable String source) @Nullable org.bukkit.BanEntry<InetAddress> addBan(@NotNull InetAddress target, @Nullable String reason, @Nullable Date expires, @Nullable String source) @NotNull Set<org.bukkit.BanEntry> Deprecated.@Nullable org.bukkit.BanEntry<InetAddress> getBanEntry(@NotNull String target) Deprecated.@Nullable org.bukkit.BanEntry<InetAddress> getBanEntry(@NotNull InetAddress target) @NotNull Set<org.bukkit.BanEntry<InetAddress>> booleanbooleanisBanned(@NotNull InetAddress target) voidvoidpardon(@NotNull InetAddress target)
-
Constructor Details
-
MockIpBanList
public MockIpBanList()
-
-
Method Details
-
getBanEntry
@Deprecated(since="1.20") @Nullable public @Nullable org.bukkit.BanEntry<InetAddress> getBanEntry(@NotNull @NotNull String target) Deprecated.- Specified by:
getBanEntryin interfaceorg.bukkit.BanList<InetAddress>
-
getBanEntry
@Nullable public @Nullable org.bukkit.BanEntry<InetAddress> getBanEntry(@NotNull @NotNull InetAddress target) - Specified by:
getBanEntryin interfaceorg.bukkit.BanList<InetAddress>
-
addBan
@Nullable public @Nullable org.bukkit.BanEntry<InetAddress> addBan(@NotNull @NotNull String target, @Nullable @Nullable String reason, @Nullable @Nullable Date expires, @Nullable @Nullable String source) - Specified by:
addBanin interfaceorg.bukkit.BanList<InetAddress>
-
addBan
@Nullable public @Nullable org.bukkit.BanEntry<InetAddress> addBan(@NotNull @NotNull InetAddress target, @Nullable @Nullable String reason, @Nullable @Nullable Date expires, @Nullable @Nullable String source) - Specified by:
addBanin interfaceorg.bukkit.BanList<InetAddress>
-
addBan
@Nullable public @Nullable org.bukkit.BanEntry<InetAddress> addBan(@NotNull @NotNull InetAddress target, @Nullable @Nullable String reason, @Nullable @Nullable Instant expires, @Nullable @Nullable String source) - Specified by:
addBanin interfaceorg.bukkit.BanList<InetAddress>
-
addBan
@Nullable public @Nullable org.bukkit.BanEntry<InetAddress> addBan(@NotNull @NotNull InetAddress target, @Nullable @Nullable String reason, @Nullable @Nullable Duration duration, @Nullable @Nullable String source) - Specified by:
addBanin interfaceorg.bukkit.BanList<InetAddress>
-
getBanEntries
Deprecated.- Specified by:
getBanEntriesin interfaceorg.bukkit.BanList<InetAddress>
-
getEntries
- Specified by:
getEntriesin interfaceorg.bukkit.BanList<InetAddress>
-
isBanned
- Specified by:
isBannedin interfaceorg.bukkit.BanList<InetAddress>
-
isBanned
- Specified by:
isBannedin interfaceorg.bukkit.BanList<InetAddress>
-
pardon
- Specified by:
pardonin interfaceorg.bukkit.BanList<InetAddress>
-
pardon
- Specified by:
pardonin interfaceorg.bukkit.BanList<InetAddress>
-