Enum Class BuiltinPermission

java.lang.Object
java.lang.Enum<BuiltinPermission>
com.refinedmods.refinedstorage.common.security.BuiltinPermission
All Implemented Interfaces:
Permission, PlatformPermission, Serializable, Comparable<BuiltinPermission>, Constable

public enum BuiltinPermission extends Enum<BuiltinPermission> implements PlatformPermission
  • Enum Constant Details

    • INSERT

      public static final BuiltinPermission INSERT
      Whether the player can insert resources into a network.
    • EXTRACT

      public static final BuiltinPermission EXTRACT
      Whether the player can extract resources from a network.
    • AUTOCRAFTING

      public static final BuiltinPermission AUTOCRAFTING
      Whether the player can start, cancel or view an autocrafting task.
    • OPEN

      public static final BuiltinPermission OPEN
      Whether the player can open network device GUIs.
    • BUILD

      public static final BuiltinPermission BUILD
      Whether the player can add or remove network devices.
    • SECURITY

      public static final BuiltinPermission SECURITY
      Whether the player can manage the security options for a network.
  • Method Details

    • values

      public static BuiltinPermission[] 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

      public static BuiltinPermission valueOf(String name)
      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()
      Description copied from interface: PlatformPermission
      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