Class MockIpBanList

java.lang.Object
be.seeseemelk.mockbukkit.ban.MockIpBanList
All Implemented Interfaces:
org.bukkit.ban.IpBanList, org.bukkit.BanList<InetAddress>

public class MockIpBanList extends Object implements org.bukkit.ban.IpBanList
  • 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:
      getBanEntry in interface org.bukkit.BanList<InetAddress>
    • getBanEntry

      @Nullable public @Nullable org.bukkit.BanEntry<InetAddress> getBanEntry(@NotNull @NotNull InetAddress target)
      Specified by:
      getBanEntry in interface org.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:
      addBan in interface org.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:
      addBan in interface org.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:
      addBan in interface org.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:
      addBan in interface org.bukkit.BanList<InetAddress>
    • getBanEntries

      @Deprecated(since="1.20") @NotNull public @NotNull Set<org.bukkit.BanEntry> getBanEntries()
      Deprecated.
      Specified by:
      getBanEntries in interface org.bukkit.BanList<InetAddress>
    • getEntries

      @NotNull public @NotNull Set<org.bukkit.BanEntry<InetAddress>> getEntries()
      Specified by:
      getEntries in interface org.bukkit.BanList<InetAddress>
    • isBanned

      public boolean isBanned(@NotNull @NotNull InetAddress target)
      Specified by:
      isBanned in interface org.bukkit.BanList<InetAddress>
    • isBanned

      public boolean isBanned(@NotNull @NotNull String target)
      Specified by:
      isBanned in interface org.bukkit.BanList<InetAddress>
    • pardon

      public void pardon(@NotNull @NotNull InetAddress target)
      Specified by:
      pardon in interface org.bukkit.BanList<InetAddress>
    • pardon

      public void pardon(@NotNull @NotNull String target)
      Specified by:
      pardon in interface org.bukkit.BanList<InetAddress>