public class NBTContainer extends NBTCompound
NBTCompound
implementation. All data is just kept inside
this Object.Constructor and Description |
---|
NBTContainer()
Creates an empty, standalone NBTCompound
|
NBTContainer(InputStream inputsteam)
Reads in a NBT InputStream
|
NBTContainer(Object nbt)
Takes in any NMS Compound to wrap it
|
NBTContainer(String nbtString)
Parses in a NBT String to a standalone
NBTCompound . |
Modifier and Type | Method and Description |
---|---|
Object |
getCompound() |
protected boolean |
isClosed() |
protected boolean |
isReadOnly() |
protected void |
setClosed() |
void |
setCompound(Object tag) |
protected NBTContainer |
setReadOnly(boolean readOnly) |
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, isEqual, 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
public NBTContainer()
public NBTContainer(Object nbt)
nbt
- public NBTContainer(InputStream inputsteam)
inputsteam
- public NBTContainer(String nbtString)
NBTCompound
. Can throw a
NbtApiException
in case something goes wrong.nbtString
- public Object getCompound()
getCompound
in class NBTCompound
public void setCompound(Object tag)
setCompound
in class NBTCompound
protected void setClosed()
setClosed
in class NBTCompound
protected boolean isClosed()
isClosed
in class NBTCompound
protected boolean isReadOnly()
isReadOnly
in class NBTCompound
protected NBTContainer setReadOnly(boolean readOnly)
Copyright © 2015–2024 tr7zw. All rights reserved.