Package net.minecraft.server.players
Class UserBanListEntry
java.lang.Object
net.minecraft.server.players.StoredUserEntry<com.mojang.authlib.GameProfile>
net.minecraft.server.players.BanListEntry<com.mojang.authlib.GameProfile>
net.minecraft.server.players.UserBanListEntry
-
Field Summary
Fields inherited from class net.minecraft.server.players.BanListEntry
created, DATE_FORMAT, expires, EXPIRES_NEVER, reason, source -
Constructor Summary
ConstructorsConstructorDescriptionUserBanListEntry(com.google.gson.JsonObject entryData) UserBanListEntry(com.mojang.authlib.GameProfile user) UserBanListEntry(com.mojang.authlib.GameProfile profile, Date created, String source, Date expires, String reason) -
Method Summary
Modifier and TypeMethodDescriptionprivate static com.mojang.authlib.GameProfilecreateGameProfile(com.google.gson.JsonObject json) Convert a JsonObject into a GameProfile.protected voidserialize(com.google.gson.JsonObject data) Methods inherited from class net.minecraft.server.players.BanListEntry
getCreated, getExpires, getReason, getSource, hasExpiredMethods inherited from class net.minecraft.server.players.StoredUserEntry
getUser
-
Constructor Details
-
UserBanListEntry
public UserBanListEntry(@Nullable com.mojang.authlib.GameProfile user) -
UserBanListEntry
-
UserBanListEntry
public UserBanListEntry(com.google.gson.JsonObject entryData)
-
-
Method Details
-
serialize
protected void serialize(com.google.gson.JsonObject data) - Overrides:
serializein classBanListEntry<com.mojang.authlib.GameProfile>
-
getDisplayName
- Specified by:
getDisplayNamein classBanListEntry<com.mojang.authlib.GameProfile>
-
createGameProfile
@Nullable private static com.mojang.authlib.GameProfile createGameProfile(com.google.gson.JsonObject json) Convert a JsonObject into a GameProfile. The json object must haveuuidandnameattributes ornullwill be returned.
-