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.
|
Map<String,? extends StateValue> |
valueMap()
Return a map of available values for this state.
|
Map<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()
Copyright © 2010-2014. All Rights Reserved.