Class MockProfileBanList

java.lang.Object
be.seeseemelk.mockbukkit.ban.MockProfileBanList
All Implemented Interfaces:
org.bukkit.ban.ProfileBanList, org.bukkit.BanList<com.destroystokyo.paper.profile.PlayerProfile>

public class MockProfileBanList extends Object implements org.bukkit.ban.ProfileBanList
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.bukkit.BanList

    org.bukkit.BanList.Type
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    @Nullable org.bukkit.BanEntry<com.destroystokyo.paper.profile.PlayerProfile>
    addBan(@NotNull com.destroystokyo.paper.profile.PlayerProfile target, @Nullable String reason, @Nullable Duration duration, @Nullable String source)
     
    @Nullable org.bukkit.BanEntry<com.destroystokyo.paper.profile.PlayerProfile>
    addBan(@NotNull com.destroystokyo.paper.profile.PlayerProfile target, @Nullable String reason, @Nullable Instant expires, @Nullable String source)
     
    @Nullable org.bukkit.BanEntry<com.destroystokyo.paper.profile.PlayerProfile>
    addBan(@NotNull com.destroystokyo.paper.profile.PlayerProfile target, @Nullable String reason, @Nullable Date expires, @Nullable String source)
     
    @Nullable org.bukkit.BanEntry<com.destroystokyo.paper.profile.PlayerProfile>
    addBan(@NotNull String target, @Nullable String reason, @Nullable Date expires, @Nullable String source)
    Deprecated.
    <E extends org.bukkit.BanEntry<? super com.destroystokyo.paper.profile.PlayerProfile>>
    E
    addBan(@NotNull org.bukkit.profile.PlayerProfile target, @Nullable String reason, @Nullable Duration duration, @Nullable String source)
     
    <E extends org.bukkit.BanEntry<? super com.destroystokyo.paper.profile.PlayerProfile>>
    E
    addBan(@NotNull org.bukkit.profile.PlayerProfile target, @Nullable String reason, @Nullable Instant expires, @Nullable String source)
     
    <E extends org.bukkit.BanEntry<? super com.destroystokyo.paper.profile.PlayerProfile>>
    E
    addBan(@NotNull org.bukkit.profile.PlayerProfile target, @Nullable String reason, @Nullable Date expires, @Nullable String source)
    Deprecated.
    @NotNull Set<org.bukkit.BanEntry>
    Deprecated.
    @Nullable org.bukkit.BanEntry<com.destroystokyo.paper.profile.PlayerProfile>
    getBanEntry(@NotNull com.destroystokyo.paper.profile.PlayerProfile target)
     
    @Nullable org.bukkit.BanEntry<com.destroystokyo.paper.profile.PlayerProfile>
    getBanEntry(@NotNull String target)
    Deprecated.
    <E extends org.bukkit.BanEntry<? super com.destroystokyo.paper.profile.PlayerProfile>>
    E
    getBanEntry(@NotNull org.bukkit.profile.PlayerProfile target)
    Deprecated.
    @NotNull Set<org.bukkit.BanEntry<com.destroystokyo.paper.profile.PlayerProfile>>
     
    boolean
    isBanned(@NotNull com.destroystokyo.paper.profile.PlayerProfile target)
     
    boolean
    isBanned(@NotNull String target)
     
    boolean
    isBanned(@NotNull org.bukkit.profile.PlayerProfile target)
    Deprecated.
    void
    pardon(@NotNull com.destroystokyo.paper.profile.PlayerProfile target)
     
    void
    pardon(@NotNull String target)
     
    void
    pardon(@NotNull org.bukkit.profile.PlayerProfile target)
    Deprecated.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • MockProfileBanList

      public MockProfileBanList()
  • Method Details

    • getBanEntry

      @Deprecated(since="1.20") @Nullable public @Nullable org.bukkit.BanEntry<com.destroystokyo.paper.profile.PlayerProfile> getBanEntry(@NotNull @NotNull String target)
      Deprecated.
      Specified by:
      getBanEntry in interface org.bukkit.BanList<com.destroystokyo.paper.profile.PlayerProfile>
    • getBanEntry

      @Nullable public @Nullable org.bukkit.BanEntry<com.destroystokyo.paper.profile.PlayerProfile> getBanEntry(@NotNull @NotNull com.destroystokyo.paper.profile.PlayerProfile target)
      Specified by:
      getBanEntry in interface org.bukkit.BanList<com.destroystokyo.paper.profile.PlayerProfile>
    • addBan

      @Deprecated(since="1.20") @Nullable public @Nullable org.bukkit.BanEntry<com.destroystokyo.paper.profile.PlayerProfile> addBan(@NotNull @NotNull String target, @Nullable @Nullable String reason, @Nullable @Nullable Date expires, @Nullable @Nullable String source)
      Deprecated.
      Specified by:
      addBan in interface org.bukkit.BanList<com.destroystokyo.paper.profile.PlayerProfile>
    • addBan

      @Deprecated(since="1.20") @Nullable public <E extends org.bukkit.BanEntry<? super com.destroystokyo.paper.profile.PlayerProfile>> E addBan(@NotNull org.bukkit.profile.PlayerProfile target, @Nullable @Nullable String reason, @Nullable @Nullable Date expires, @Nullable @Nullable String source)
      Deprecated.
      Specified by:
      addBan in interface org.bukkit.ban.ProfileBanList
    • addBan

      @Nullable public @Nullable org.bukkit.BanEntry<com.destroystokyo.paper.profile.PlayerProfile> addBan(@NotNull @NotNull com.destroystokyo.paper.profile.PlayerProfile target, @Nullable @Nullable String reason, @Nullable @Nullable Date expires, @Nullable @Nullable String source)
      Specified by:
      addBan in interface org.bukkit.BanList<com.destroystokyo.paper.profile.PlayerProfile>
      Specified by:
      addBan in interface org.bukkit.ban.ProfileBanList
    • addBan

      @Nullable public @Nullable org.bukkit.BanEntry<com.destroystokyo.paper.profile.PlayerProfile> addBan(@NotNull @NotNull com.destroystokyo.paper.profile.PlayerProfile target, @Nullable @Nullable String reason, @Nullable @Nullable Instant expires, @Nullable @Nullable String source)
      Specified by:
      addBan in interface org.bukkit.BanList<com.destroystokyo.paper.profile.PlayerProfile>
    • addBan

      @Nullable public @Nullable org.bukkit.BanEntry<com.destroystokyo.paper.profile.PlayerProfile> addBan(@NotNull @NotNull com.destroystokyo.paper.profile.PlayerProfile target, @Nullable @Nullable String reason, @Nullable @Nullable Duration duration, @Nullable @Nullable String source)
      Specified by:
      addBan in interface org.bukkit.BanList<com.destroystokyo.paper.profile.PlayerProfile>
    • getBanEntry

      @Deprecated(since="1.20") @Nullable public <E extends org.bukkit.BanEntry<? super com.destroystokyo.paper.profile.PlayerProfile>> E getBanEntry(@NotNull org.bukkit.profile.PlayerProfile target)
      Deprecated.
      Specified by:
      getBanEntry in interface org.bukkit.ban.ProfileBanList
    • isBanned

      @Deprecated(since="1.20") public boolean isBanned(@NotNull org.bukkit.profile.PlayerProfile target)
      Deprecated.
      Specified by:
      isBanned in interface org.bukkit.ban.ProfileBanList
    • pardon

      @Deprecated(since="1.20") public void pardon(@NotNull org.bukkit.profile.PlayerProfile target)
      Deprecated.
      Specified by:
      pardon in interface org.bukkit.ban.ProfileBanList
    • addBan

      @Nullable public <E extends org.bukkit.BanEntry<? super com.destroystokyo.paper.profile.PlayerProfile>> E addBan(@NotNull org.bukkit.profile.PlayerProfile target, @Nullable @Nullable String reason, @Nullable @Nullable Instant expires, @Nullable @Nullable String source)
      Specified by:
      addBan in interface org.bukkit.ban.ProfileBanList
    • addBan

      @Nullable public <E extends org.bukkit.BanEntry<? super com.destroystokyo.paper.profile.PlayerProfile>> E addBan(@NotNull org.bukkit.profile.PlayerProfile target, @Nullable @Nullable String reason, @Nullable @Nullable Duration duration, @Nullable @Nullable String source)
      Specified by:
      addBan in interface org.bukkit.ban.ProfileBanList
    • getBanEntries

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

      @NotNull public @NotNull Set<org.bukkit.BanEntry<com.destroystokyo.paper.profile.PlayerProfile>> getEntries()
      Specified by:
      getEntries in interface org.bukkit.BanList<com.destroystokyo.paper.profile.PlayerProfile>
    • isBanned

      public boolean isBanned(@NotNull @NotNull com.destroystokyo.paper.profile.PlayerProfile target)
      Specified by:
      isBanned in interface org.bukkit.BanList<com.destroystokyo.paper.profile.PlayerProfile>
    • isBanned

      public boolean isBanned(@NotNull @NotNull String target)
      Specified by:
      isBanned in interface org.bukkit.BanList<com.destroystokyo.paper.profile.PlayerProfile>
    • pardon

      public void pardon(@NotNull @NotNull com.destroystokyo.paper.profile.PlayerProfile target)
      Specified by:
      pardon in interface org.bukkit.BanList<com.destroystokyo.paper.profile.PlayerProfile>
    • pardon

      public void pardon(@NotNull @NotNull String target)
      Specified by:
      pardon in interface org.bukkit.BanList<com.destroystokyo.paper.profile.PlayerProfile>