Enum Class BuiltinPermission
- All Implemented Interfaces:
Permission, PlatformPermission, Serializable, Comparable<BuiltinPermission>, Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionWhether the player can start, cancel or view an autocrafting task.Whether the player can add or remove network devices.Whether the player can extract resources from a network.Whether the player can insert resources into a network.Whether the player can open network device GUIs.Whether the player can manage the security options for a network. -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.network.chat.Componentnet.minecraft.resources.IdentifiergetId()net.minecraft.network.chat.ComponentgetName()net.minecraft.network.chat.ComponentbooleanDetermines whether this permission is allowed by default, when it is not configured (yet) in a Security Card.static BuiltinPermissionReturns the enum constant of this class with the specified name.static BuiltinPermission[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INSERT
Whether the player can insert resources into a network. -
EXTRACT
Whether the player can extract resources from a network. -
AUTOCRAFTING
Whether the player can start, cancel or view an autocrafting task. -
OPEN
Whether the player can open network device GUIs. -
BUILD
Whether the player can add or remove network devices. -
SECURITY
Whether the player can manage the security options for a network.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getId
public net.minecraft.resources.Identifier getId() -
getName
public net.minecraft.network.chat.Component getName()- Specified by:
getNamein interfacePlatformPermission- Returns:
- the permission name
-
getDescription
public net.minecraft.network.chat.Component getDescription()- Specified by:
getDescriptionin interfacePlatformPermission- Returns:
- a short description of the permission
-
getOwnerName
public net.minecraft.network.chat.Component getOwnerName()- Specified by:
getOwnerNamein interfacePlatformPermission- Returns:
- the name of the mod that adds this permission
-
isAllowedByDefault
public boolean isAllowedByDefault()Description copied from interface:PlatformPermissionDetermines whether this permission is allowed by default, when it is not configured (yet) in a Security Card.- Specified by:
isAllowedByDefaultin interfacePlatformPermission- Returns:
- true if this permission is allowed by default, false otherwise
-