Package net.minecraft.server
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 Summary
Fields Modifier and Type Field Description private boolean
bypassPlayerLimit
private int
permissionLevel
-
Constructor Summary
Constructors Constructor Description OperatorEntry(JsonObject json)
OperatorEntry(com.mojang.authlib.GameProfile profile, int permissionLevel, boolean bypassPlayerLimit)
-
Method Summary
Modifier and Type Method Description boolean
canBypassPlayerLimit()
protected void
fromJson(JsonObject json)
int
getPermissionLevel()
private static com.mojang.authlib.GameProfile
getProfileFromJson(JsonObject json)
Methods inherited from class net.minecraft.server.ServerConfigEntry
getKey, isInvalid
-
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
-
-
Method Details
-
getPermissionLevel
public int getPermissionLevel() -
canBypassPlayerLimit
public boolean canBypassPlayerLimit() -
fromJson
- Specified by:
fromJson
in classServerConfigEntry<com.mojang.authlib.GameProfile>
-
getProfileFromJson
-