Package be.seeseemelk.mockbukkit.ban
Class MockPaperProfileBanEntry
java.lang.Object
be.seeseemelk.mockbukkit.ban.MockPaperProfileBanEntry
- All Implemented Interfaces:
org.bukkit.BanEntry<com.destroystokyo.paper.profile.PlayerProfile>
public class MockPaperProfileBanEntry
extends Object
implements org.bukkit.BanEntry<com.destroystokyo.paper.profile.PlayerProfile>
-
Constructor Summary
ConstructorDescriptionMockPaperProfileBanEntry
(com.destroystokyo.paper.profile.PlayerProfile target, String source, Date expiration, String reason) -
Method Summary
Modifier and TypeMethodDescription@NotNull com.destroystokyo.paper.profile.PlayerProfile
@NotNull Date
@Nullable Date
@Nullable String
@NotNull String
@NotNull String
Deprecated.void
remove()
void
save()
void
setCreated
(@NotNull Date created) void
setExpiration
(@Nullable Date expiration) void
void
-
Constructor Details
-
MockPaperProfileBanEntry
-
-
Method Details
-
getTarget
Deprecated.- Specified by:
getTarget
in interfaceorg.bukkit.BanEntry<com.destroystokyo.paper.profile.PlayerProfile>
-
getBanTarget
@NotNull public @NotNull com.destroystokyo.paper.profile.PlayerProfile getBanTarget()- Specified by:
getBanTarget
in interfaceorg.bukkit.BanEntry<com.destroystokyo.paper.profile.PlayerProfile>
-
getCreated
- Specified by:
getCreated
in interfaceorg.bukkit.BanEntry<com.destroystokyo.paper.profile.PlayerProfile>
-
setCreated
- Specified by:
setCreated
in interfaceorg.bukkit.BanEntry<com.destroystokyo.paper.profile.PlayerProfile>
-
getSource
- Specified by:
getSource
in interfaceorg.bukkit.BanEntry<com.destroystokyo.paper.profile.PlayerProfile>
-
setSource
- Specified by:
setSource
in interfaceorg.bukkit.BanEntry<com.destroystokyo.paper.profile.PlayerProfile>
-
getExpiration
- Specified by:
getExpiration
in interfaceorg.bukkit.BanEntry<com.destroystokyo.paper.profile.PlayerProfile>
-
setExpiration
- Specified by:
setExpiration
in interfaceorg.bukkit.BanEntry<com.destroystokyo.paper.profile.PlayerProfile>
-
getReason
- Specified by:
getReason
in interfaceorg.bukkit.BanEntry<com.destroystokyo.paper.profile.PlayerProfile>
-
setReason
- Specified by:
setReason
in interfaceorg.bukkit.BanEntry<com.destroystokyo.paper.profile.PlayerProfile>
-
save
public void save()- Specified by:
save
in interfaceorg.bukkit.BanEntry<com.destroystokyo.paper.profile.PlayerProfile>
-
remove
public void remove()- Specified by:
remove
in interfaceorg.bukkit.BanEntry<com.destroystokyo.paper.profile.PlayerProfile>
-