Class OperatorEntry

java.lang.Object
net.minecraft.server.ServerConfigEntry<com.mojang.authlib.GameProfile>
net.minecraft.server.OperatorEntry

public class OperatorEntry
extends ServerConfigEntry<com.mojang.authlib.GameProfile>
  • Field Details

    • permissionLevel

      private final int permissionLevel
    • bypassPlayerLimit

      private final boolean bypassPlayerLimit
  • Constructor Details

    • OperatorEntry

      public OperatorEntry​(com.mojang.authlib.GameProfile profile, int permissionLevel, boolean bypassPlayerLimit)
    • OperatorEntry

      public OperatorEntry​(JsonObject json)
  • Method Details

    • getPermissionLevel

      public int getPermissionLevel()
    • canBypassPlayerLimit

      public boolean canBypassPlayerLimit()
    • fromJson

      protected void fromJson​(JsonObject json)
      Specified by:
      fromJson in class ServerConfigEntry<com.mojang.authlib.GameProfile>
    • getProfileFromJson

      @Nullable private static com.mojang.authlib.GameProfile getProfileFromJson​(JsonObject json)