Class BannedPlayerEntry

java.lang.Object
net.minecraft.server.ServerConfigEntry<T>
net.minecraft.server.BanEntry<com.mojang.authlib.GameProfile>
net.minecraft.server.BannedPlayerEntry

public class BannedPlayerEntry
extends BanEntry<com.mojang.authlib.GameProfile>
  • Constructor Details

    • BannedPlayerEntry

      public BannedPlayerEntry​(com.mojang.authlib.GameProfile profile)
    • BannedPlayerEntry

      public BannedPlayerEntry​(com.mojang.authlib.GameProfile profile, @Nullable Date created, @Nullable String source, @Nullable Date expiry, @Nullable String reason)
    • BannedPlayerEntry

      public BannedPlayerEntry​(JsonObject json)
  • Method Details

    • fromJson

      protected void fromJson​(JsonObject json)
      Overrides:
      fromJson in class BanEntry<com.mojang.authlib.GameProfile>
    • toText

      public Text toText()
      Specified by:
      toText in class BanEntry<com.mojang.authlib.GameProfile>
    • profileFromJson

      private static com.mojang.authlib.GameProfile profileFromJson​(JsonObject json)