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