JavaScript is disabled on your browser.
Enum Constant Summary
Enum Constants
Whether 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
All Methods Static Methods Instance Methods Concrete Methods
net.minecraft.network.chat.Component
net.minecraft.resources.ResourceLocation
net.minecraft.network.chat.Component
net.minecraft.network.chat.Component
boolean
Determines whether this permission is allowed by default, when it is not configured (yet)
in a Security Card.
Returns the enum constant of this class with the specified name.
Returns an array containing the constants of this enum class, in
the order they are declared.
Methods inherited from class java.lang.Enum
clone , compareTo , describeConstable , equals , finalize , getDeclaringClass , hashCode , name , ordinal , toString , valueOf
Enum Constant Details
INSERT
Whether the player can insert resources into 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 name
NullPointerException
- if the argument is null
getId
public net.minecraft.resources.ResourceLocation getId ()
getName
public net.minecraft.network.chat.Component getName ()
Specified by:
getName
in interface PlatformPermission
Returns:
the permission name
getDescription
public net.minecraft.network.chat.Component getDescription ()
Specified by:
getDescription
in interface PlatformPermission
Returns:
a short description of the permission
getOwnerName
public net.minecraft.network.chat.Component getOwnerName ()
Specified by:
getOwnerName
in interface PlatformPermission
Returns:
the name of the mod that adds this permission
isAllowedByDefault
public boolean isAllowedByDefault ()
Determines whether this permission is allowed by default, when it is not configured (yet)
in a Security Card.
Specified by:
isAllowedByDefault
in interface PlatformPermission
Returns:
true if this permission is allowed by default, false otherwise