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