Package be.seeseemelk.mockbukkit.ban
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>
-
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<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>>
EaddBan(@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>>
EaddBan(@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>>
EaddBan(@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>>
EgetBanEntry(@NotNull org.bukkit.profile.PlayerProfile target) Deprecated.@NotNull Set<org.bukkit.BanEntry<com.destroystokyo.paper.profile.PlayerProfile>> booleanisBanned(@NotNull com.destroystokyo.paper.profile.PlayerProfile target) booleanbooleanisBanned(@NotNull org.bukkit.profile.PlayerProfile target) Deprecated.voidpardon(@NotNull com.destroystokyo.paper.profile.PlayerProfile target) voidvoidpardon(@NotNull org.bukkit.profile.PlayerProfile target) Deprecated.
-
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:
getBanEntryin interfaceorg.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:
getBanEntryin interfaceorg.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:
addBanin interfaceorg.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:
addBanin interfaceorg.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:
addBanin interfaceorg.bukkit.BanList<com.destroystokyo.paper.profile.PlayerProfile>- Specified by:
addBanin interfaceorg.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:
addBanin interfaceorg.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:
addBanin interfaceorg.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:
getBanEntryin interfaceorg.bukkit.ban.ProfileBanList
-
isBanned
Deprecated.- Specified by:
isBannedin interfaceorg.bukkit.ban.ProfileBanList
-
pardon
Deprecated.- Specified by:
pardonin interfaceorg.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:
addBanin interfaceorg.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:
addBanin interfaceorg.bukkit.ban.ProfileBanList
-
getBanEntries
Deprecated.- Specified by:
getBanEntriesin interfaceorg.bukkit.BanList<com.destroystokyo.paper.profile.PlayerProfile>
-
getEntries
@NotNull public @NotNull Set<org.bukkit.BanEntry<com.destroystokyo.paper.profile.PlayerProfile>> getEntries()- Specified by:
getEntriesin interfaceorg.bukkit.BanList<com.destroystokyo.paper.profile.PlayerProfile>
-
isBanned
public boolean isBanned(@NotNull @NotNull com.destroystokyo.paper.profile.PlayerProfile target) - Specified by:
isBannedin interfaceorg.bukkit.BanList<com.destroystokyo.paper.profile.PlayerProfile>
-
isBanned
- Specified by:
isBannedin interfaceorg.bukkit.BanList<com.destroystokyo.paper.profile.PlayerProfile>
-
pardon
public void pardon(@NotNull @NotNull com.destroystokyo.paper.profile.PlayerProfile target) - Specified by:
pardonin interfaceorg.bukkit.BanList<com.destroystokyo.paper.profile.PlayerProfile>
-
pardon
- Specified by:
pardonin interfaceorg.bukkit.BanList<com.destroystokyo.paper.profile.PlayerProfile>
-