Enum Class BlockProperties.PistonReaction
java.lang.Object
java.lang.Enum<BlockProperties.PistonReaction>
com.github.darksoulq.abyssallib.world.block.BlockProperties.PistonReaction
- All Implemented Interfaces:
Serializable, Comparable<BlockProperties.PistonReaction>, Constable
- Enclosing class:
BlockProperties
Enum representing how a block reacts to piston movement.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static BlockProperties.PistonReaction[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
MOVE
The block can be pushed or pulled by a piston. -
DESTROY
The block breaks when pushed or pulled. -
BLOCK
The block cannot be moved and stops the piston. -
PUSH_ONLY
The block is ignored by sticky pistons (cannot be pulled) but can be pushed.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-