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 String target, @Nullable String reason, @Nullable Date expires, @Nullable String source) Deprecated.@Nullable BanEntry<PlayerProfile>
addBan
(@NotNull PlayerProfile target, @Nullable String reason, @Nullable Date expires, @Nullable String source) Deprecated.@Nullable BanEntry<PlayerProfile>
getBanEntry
(@NotNull String target) Deprecated.@Nullable BanEntry<PlayerProfile>
getBanEntry
(@NotNull PlayerProfile target) @NotNull Set<BanEntry<PlayerProfile>>
boolean
boolean
isBanned
(@NotNull PlayerProfile target) void
void
pardon
(@NotNull PlayerProfile target)
-
Constructor Details
-
MockProfileBanList
public MockProfileBanList()
-
-
Method Details
-
getBanEntry
@Deprecated @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 @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
@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
-
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>
-