Interface Powerable
- All Superinterfaces:
BlockData
A block state carrying the
powered property: whether the block receives redstone power.
Block states are immutable: with... methods return another state and leave this one
untouched.
- Since:
- 0.1.0
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptiondefault booleanReturnstrueif the block is powered.default PowerablewithPowered(boolean powered) Returns the same block with anotherpoweredvalue.
-
Method Details
-
isPowered
default boolean isPowered()Returnstrueif the block is powered.- Returns:
trueif the block is powered- Since:
- 0.1.0
-
withPowered
Returns the same block with anotherpoweredvalue.- Parameters:
powered-trueto power the block- Returns:
- the same block with another
poweredvalue - Since:
- 0.1.0
-