public class ProfileBanEntry extends BanEntry<com.mojang.authlib.GameProfile>
banEndDate, bannedBy, banStartDate, DATE_FORMAT, reason
Constructor and Description |
---|
ProfileBanEntry(com.mojang.authlib.GameProfile profile) |
ProfileBanEntry(com.mojang.authlib.GameProfile profile,
java.util.Date startDate,
java.lang.String banner,
java.util.Date endDate,
java.lang.String banReason) |
ProfileBanEntry(com.google.gson.JsonObject json) |
Modifier and Type | Method and Description |
---|---|
ITextComponent |
getDisplayName() |
protected void |
onSerialization(com.google.gson.JsonObject data) |
private static com.mojang.authlib.GameProfile |
toGameProfile(com.google.gson.JsonObject json) |
getBanEndDate, getBannedBy, getBanReason, hasBanExpired
getValue
public ProfileBanEntry(com.mojang.authlib.GameProfile profile)
public ProfileBanEntry(com.mojang.authlib.GameProfile profile, @Nullable java.util.Date startDate, @Nullable java.lang.String banner, @Nullable java.util.Date endDate, @Nullable java.lang.String banReason)
public ProfileBanEntry(com.google.gson.JsonObject json)
protected void onSerialization(com.google.gson.JsonObject data)
onSerialization
in class BanEntry<com.mojang.authlib.GameProfile>
public ITextComponent getDisplayName()
getDisplayName
in class BanEntry<com.mojang.authlib.GameProfile>
private static com.mojang.authlib.GameProfile toGameProfile(com.google.gson.JsonObject json)