Enum Class RedstoneWorld.Update
- All Implemented Interfaces:
Serializable, Comparable<RedstoneWorld.Update>, Constable
- Enclosing interface:
RedstoneWorld
How far a block change made through
RedstoneWorld.setBlock(BlockPosition, BlockData, Update)
spreads. Whatever it is, the RedstoneBehaviour.onPlace(RedstoneWorld, BlockPosition, BlockData, BlockData) of the new state runs, as in
vanilla.- Since:
- 0.1.0
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe neighbours are told the block changed, and their shapes follow: what placing or breaking a block does.Neither the neighbours nor their shapes react.Only the shapes of the neighbours follow, which is enough for redstone dust or an observer next to it: what a repeater or a lamp changing state does. -
Method Summary
Modifier and TypeMethodDescriptionstatic RedstoneWorld.UpdateReturns the enum constant of this class with the specified name.static RedstoneWorld.Update[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NEIGHBORS
The neighbours are told the block changed, and their shapes follow: what placing or breaking a block does. -
SHAPES
Only the shapes of the neighbours follow, which is enough for redstone dust or an observer next to it: what a repeater or a lamp changing state does. -
QUIET
Neither the neighbours nor their shapes react.
-
-
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
-