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

public class UserBanListEntry extends BanListEntry<com.mojang.authlib.GameProfile>
  • Constructor Details

    • UserBanListEntry

      public UserBanListEntry(@Nullable com.mojang.authlib.GameProfile pUser)
    • UserBanListEntry

      public UserBanListEntry(@Nullable com.mojang.authlib.GameProfile pProfile, @Nullable Date pCreated, @Nullable String pSource, @Nullable Date pExpires, @Nullable String pReason)
    • UserBanListEntry

      public UserBanListEntry(com.google.gson.JsonObject pEntryData)
  • Method Details

    • serialize

      protected void serialize(com.google.gson.JsonObject pData)
      Overrides:
      serialize in class BanListEntry<com.mojang.authlib.GameProfile>
    • getDisplayName

      public Component getDisplayName()
      Specified by:
      getDisplayName in class BanListEntry<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 have uuid and name attributes or null will be returned.