public class BannedPlayerEntry extends BanEntry<com.mojang.authlib.GameProfile>
creationDate, DATE_FORMAT, expiryDate, reason, source
Constructor and Description |
---|
BannedPlayerEntry(com.mojang.authlib.GameProfile profile) |
BannedPlayerEntry(com.mojang.authlib.GameProfile profile,
Date created,
String source,
Date expiry,
String reason) |
BannedPlayerEntry(JsonObject json) |
Modifier and Type | Method and Description |
---|---|
protected void |
fromJson(JsonObject json) |
private static com.mojang.authlib.GameProfile |
profileFromJson(JsonObject json) |
Text |
toText() |
getExpiryDate, getReason, getSource, isInvalid
getKey
public BannedPlayerEntry(com.mojang.authlib.GameProfile profile)
public BannedPlayerEntry(com.mojang.authlib.GameProfile profile, @Nullable Date created, @Nullable String source, @Nullable Date expiry, @Nullable String reason)
public BannedPlayerEntry(JsonObject json)
protected void fromJson(JsonObject json)
private static com.mojang.authlib.GameProfile profileFromJson(JsonObject json)