BlockState
, Metadatable
, PersistentDataHolder
Banner
, Barrel
, Beacon
, Bed
, Beehive
, Bell
, BlastFurnace
, BrewingStand
, Campfire
, Chest
, CommandBlock
, Comparator
, Conduit
, Container
, CreatureSpawner
, DaylightDetector
, Dispenser
, Dropper
, EnchantingTable
, EnderChest
, EndGateway
, Furnace
, Hopper
, Jigsaw
, Jukebox
, Lectern
, ShulkerBox
, Sign
, Skull
, Smoker
, Structure
public interface TileState extends BlockState, PersistentDataHolder
BlockState.update()
needs to
be called to store the data.Modifier and Type | Method | Description |
---|---|---|
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 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 © 2019. All rights reserved.