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 user)
    • UserBanListEntry

      public UserBanListEntry(@Nullable com.mojang.authlib.GameProfile profile, @Nullable Date created, @Nullable String source, @Nullable Date expires, @Nullable String reason)
    • UserBanListEntry

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

    • serialize

      protected void serialize(com.google.gson.JsonObject data)
      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 json)
      Convert a JsonObject into a GameProfile. The json object must have uuid and name attributes or null will be returned.