Enum Class PistonMoveBehavior

java.lang.Object
java.lang.Enum<PistonMoveBehavior>
net.glowstone.block.PistonMoveBehavior
All Implemented Interfaces:
Serializable, Comparable<PistonMoveBehavior>, Constable

public enum PistonMoveBehavior extends Enum<PistonMoveBehavior>
Behavior of a block when moved (pushed/pulled) py a piston.

MOVE - move as usual.

BREAK - break block and drop necessary items (e.g. flowers).

DONT_MOVE - don't move the block (e.g. bedrock).

MOVE_STICKY - move adjacent blocks too (e.g. slime block)

  • Enum Constant Details

  • Method Details

    • values

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