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 pEntryData) UserBanListEntry
(com.mojang.authlib.GameProfile pUser) UserBanListEntry
(com.mojang.authlib.GameProfile pProfile, Date pCreated, String pSource, Date pExpires, String pReason) -
Method Summary
Modifier and TypeMethodDescriptionprivate static com.mojang.authlib.GameProfile
createGameProfile
(com.google.gson.JsonObject pJson) Convert a JsonObject into a GameProfile.protected void
serialize
(com.google.gson.JsonObject pData) Methods inherited from class net.minecraft.server.players.BanListEntry
getCreated, getExpires, getReason, getSource, hasExpired
Methods inherited from class net.minecraft.server.players.StoredUserEntry
getUser
-
Constructor Details
-
UserBanListEntry
public UserBanListEntry(@Nullable com.mojang.authlib.GameProfile pUser) -
UserBanListEntry
-
UserBanListEntry
public UserBanListEntry(com.google.gson.JsonObject pEntryData)
-
-
Method Details
-
serialize
protected void serialize(com.google.gson.JsonObject pData) - Overrides:
serialize
in classBanListEntry<com.mojang.authlib.GameProfile>
-
getDisplayName
- Specified by:
getDisplayName
in classBanListEntry<com.mojang.authlib.GameProfile>
-
createGameProfile
@Nullable private static com.mojang.authlib.GameProfile createGameProfile(com.google.gson.JsonObject pJson) Convert a JsonObject into a GameProfile. The json object must haveuuid
andname
attributes ornull
will be returned.
-