Enum Class RedstoneMode

java.lang.Object
java.lang.Enum<RedstoneMode>
nl.pim16aap2.animatedarchitecture.core.structures.RedstoneMode
All Implemented Interfaces:
Serializable, Comparable<RedstoneMode>, Constable

public enum RedstoneMode extends Enum<RedstoneMode>
Represents the different redstone modes a structure can have.

The redstone mode determines how the structure reacts to redstone signals. There are three different modes:

  • IGNORE: The structure ignores redstone signals.
  • POWERED_OPEN: The structure behaves in a way where powered = open; unpowered = closed.
  • TOGGLE: The structure behaves in a way where it toggles between open and closed when the redstone signal changes.
  • Enum Constant Details

    • IGNORE

      public static final RedstoneMode IGNORE
      The structure ignores all redstone signals.
    • POWERED_OPEN

      public static final RedstoneMode POWERED_OPEN
      The structure behaves in a way where powered = open; unpowered = closed.
    • TOGGLE

      public static final RedstoneMode TOGGLE
      The structure behaves in a way where it toggles between open and closed when the redstone signal changes.
  • Field Details

    • DEFAULT

      public static final RedstoneMode DEFAULT
      The default redstone mode.
  • Method Details

    • values

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