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
-
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>>
boolean
isBanned
(@NotNull PlayerProfile target) boolean
boolean
isBanned
(@NotNull PlayerProfile target) Deprecated.void
pardon
(@NotNull PlayerProfile target) void
void
pardon
(@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:
getBanEntry
in interfaceBanList<PlayerProfile>
-
getBanEntry
@Nullable public @Nullable BanEntry<PlayerProfile> getBanEntry(@NotNull @NotNull PlayerProfile target) - Specified by:
getBanEntry
in 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:
addBan
in 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:
addBan
in 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:
addBan
in interfaceBanList<PlayerProfile>
- Specified by:
addBan
in 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:
addBan
in 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:
addBan
in interfaceBanList<PlayerProfile>
-
getBanEntry
@Deprecated(since="1.20") @Nullable public <E extends BanEntry<? super PlayerProfile>> E getBanEntry(@NotNull PlayerProfile target) Deprecated.- Specified by:
getBanEntry
in interfaceProfileBanList
-
isBanned
Deprecated.- Specified by:
isBanned
in interfaceProfileBanList
-
pardon
Deprecated.- Specified by:
pardon
in 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:
addBan
in 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:
addBan
in interfaceProfileBanList
-
getBanEntries
Deprecated.- Specified by:
getBanEntries
in interfaceBanList<PlayerProfile>
-
getEntries
- Specified by:
getEntries
in interfaceBanList<PlayerProfile>
-
isBanned
- Specified by:
isBanned
in interfaceBanList<PlayerProfile>
-
isBanned
- Specified by:
isBanned
in interfaceBanList<PlayerProfile>
-
pardon
- Specified by:
pardon
in interfaceBanList<PlayerProfile>
-
pardon
- Specified by:
pardon
in interfaceBanList<PlayerProfile>
-