public interface BlockItemData extends DataManipulator<BlockItemData,ImmutableBlockItemData>
DataManipulator handling the BlockState
information for an ItemStack that is representing a
BlockType. Since the BlockState itself stores information
related to the actual block information, not all information can be
retrieved through the ItemStack itself.
Note that some block states have properties that are only defined by the
position the item block is placed. Some blocks may read some properties, and
others may not read all properties. BlockStates are not representing
complex data like inventories, if complex information is required, use a
different DataManipulator type.
| Modifier and Type | Method and Description |
|---|---|
Value<BlockState> |
state()
Gets the
Value for the currently represented
BlockState. |
asImmutable, copy, fill, fill, from, set, set, set, set, transformgetContentVersion, toContainerValue<BlockState> state()
Value for the currently represented
BlockState.Keys.ITEM_BLOCKSTATE