public interface State
Example states include "variant" (indicating material or type) and "facing" (indicating orientation).
Modifier and Type | Method and Description |
---|---|
StateValue |
getValue(BaseBlock block)
Get the value that the block is set to.
|
boolean |
hasDirection()
Returns whether this state contains directional data.
|
java.util.Map<java.lang.String,? extends StateValue> |
valueMap()
Return a map of available values for this state.
|
java.util.Map<java.lang.String,? extends StateValue> valueMap()
Keys are the value of state and map values describe that particular state value.
@Nullable StateValue getValue(BaseBlock block)
block
- the blockboolean hasDirection()