Enum Class TestBlock.Mode

java.lang.Object
java.lang.Enum<TestBlock.Mode>
org.bukkit.block.data.type.TestBlock.Mode
All Implemented Interfaces:
Serializable, Comparable<TestBlock.Mode>, Constable
Enclosing interface:
TestBlock

public static enum TestBlock.Mode extends Enum<TestBlock.Mode>
The mode in which a comparator will operate in.
  • Enum Constant Details

    • START

      public static final TestBlock.Mode START
      Triggers a redstone pulse when the test starts.
    • LOG

      public static final TestBlock.Mode LOG
      Logs a message to the log file when powered by redstone.
    • FAIL

      public static final TestBlock.Mode FAIL
      Fails the test when powered by redstone.
    • ACCEPT

      public static final TestBlock.Mode ACCEPT
      Completes the test when powered by redstone.
  • Method Details

    • values

      public static TestBlock.Mode[] 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 TestBlock.Mode 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