public class NBTTileEntity extends NBTCompound
Modifier | Constructor and Description |
---|---|
|
NBTTileEntity(org.bukkit.block.BlockState tile)
Deprecated.
|
protected |
NBTTileEntity(org.bukkit.block.BlockState tile,
boolean readonly) |
Modifier and Type | Method and Description |
---|---|
Object |
getCompound() |
NBTCompound |
getPersistentDataContainer()
Gets the NBTCompound used by spigots PersistentDataAPI.
|
protected boolean |
isClosed() |
protected boolean |
isReadOnly() |
protected void |
setClosed() |
protected void |
setCompound(Object compound) |
addCompound, asNBTString, clearNBT, equals, get, getBoolean, getByte, getByteArray, getCompound, getCompoundList, getDouble, getDoubleList, getEnum, getFloat, getFloatList, getIntArray, getIntArrayList, getInteger, getIntegerList, getItemStack, getItemStackArray, getKeys, getListType, getLong, getLongArray, getLongList, getName, getObject, getOrCreateCompound, getOrDefault, getOrNull, getParent, getReadLock, getResolvedObject, getShort, getString, getStringList, getType, getUUID, getUUIDList, getWriteLock, hashCode, hasKey, hasTag, mergeCompound, mergeCompound, removeKey, resolveCompound, resolveOrCreateCompound, resolveOrDefault, resolveOrNull, saveCompound, set, set, setBoolean, setByte, setByteArray, setDouble, setEnum, setFloat, setIntArray, setInteger, setItemStack, setItemStackArray, setLong, setLongArray, setObject, setResolvedObject, setShort, setString, setUUID, toString, toString, writeCompound
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
hasTag
protected NBTTileEntity(org.bukkit.block.BlockState tile, boolean readonly)
tile
- BlockState from any TileEntityreadonly
- Readonly makes a copy at init, only reading from that copy@Deprecated public NBTTileEntity(org.bukkit.block.BlockState tile)
tile
- BlockState from any TileEntityprotected void setClosed()
setClosed
in class NBTCompound
protected boolean isClosed()
isClosed
in class NBTCompound
protected boolean isReadOnly()
isReadOnly
in class NBTCompound
public Object getCompound()
getCompound
in class NBTCompound
protected void setCompound(Object compound)
setCompound
in class NBTCompound
public NBTCompound getPersistentDataContainer()
Copyright © 2015–2024 tr7zw. All rights reserved.