public interface TileState extends BlockState, PersistentDataHolder
BlockState.update()
needs to
be called to store the data.Modifier and Type | Method and Description |
---|---|
@NotNull PersistentDataContainer |
getPersistentDataContainer()
Returns a custom tag container capable of storing tags on the object.
|
getBlock, getBlockData, getChunk, getData, getLightLevel, getLocation, getLocation, getRawData, getType, getWorld, getX, getY, getZ, isPlaced, setBlockData, setData, setRawData, setType, update, update, update
getMetadata, hasMetadata, removeMetadata, setMetadata
@NotNull @NotNull PersistentDataContainer getPersistentDataContainer()
PersistentDataHolder
is impossible.
This PersistentDataHolder
is only linked to the snapshot instance
stored by the BlockState
.
When storing changes on the PersistentDataHolder
, the updated
content will only be applied to the actual tile entity after one of the
BlockState.update()
methods is called.
getPersistentDataContainer
in interface PersistentDataHolder
Copyright © 2021. All rights reserved.