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 booleanbypassPlayerLimitprivate intpermissionLevel -
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 booleancanBypassPlayerLimit()protected voidfromJson(JsonObject json)intgetPermissionLevel()private static com.mojang.authlib.GameProfilegetProfileFromJson(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:
fromJsonin classServerConfigEntry<com.mojang.authlib.GameProfile>
-
getProfileFromJson
-