Enum Class AccessMode

java.lang.Object
java.lang.Enum<AccessMode>
com.refinedmods.refinedstorage.api.storage.AccessMode
All Implemented Interfaces:
Serializable, Comparable<AccessMode>, Constable

@API(status=STABLE, since="2.0.0-milestone.1.0") public enum AccessMode extends Enum<AccessMode>
Access mode of a storage.
  • Enum Constant Details

    • INSERT_EXTRACT

      public static final AccessMode INSERT_EXTRACT
      Insertions and extractions.
    • INSERT

      public static final AccessMode INSERT
      Insert-only. Storage contents are still visible in the Grid.
    • EXTRACT

      public static final AccessMode EXTRACT
      Extract-only.
  • Method Details

    • values

      public static AccessMode[] 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 AccessMode 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
    • isInsertOnly

      public boolean isInsertOnly()
    • isExtractOnly

      public boolean isExtractOnly()