public interface ImmutableBlockItemData extends ImmutableDataManipulator<ImmutableBlockItemData,BlockItemData>
ImmutableDataManipulator
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. BlockState
s are not representing
complex data like inventories, if complex information is required, use a
different DataManipulator
type.
Modifier and Type | Method and Description |
---|---|
ImmutableValue<BlockState> |
state()
Gets the
ImmutableValue for the currently represented
BlockState . |
asMutable, copy, with, with
getContentVersion, toContainer
ImmutableValue<BlockState> state()
ImmutableValue
for the currently represented
BlockState
.