public class NBTTagCompound extends NBTBase
Modifier and Type | Field and Description |
---|---|
private static org.apache.logging.log4j.Logger |
LOGGER |
private static java.util.regex.Pattern |
SIMPLE_VALUE |
private java.util.Map<java.lang.String,NBTBase> |
tagMap |
Constructor and Description |
---|
NBTTagCompound() |
Modifier and Type | Method and Description |
---|---|
NBTTagCompound |
copy() |
private CrashReport |
createCrashReport(java.lang.String key,
int expectedType,
java.lang.ClassCastException ex) |
boolean |
equals(java.lang.Object p_equals_1_) |
boolean |
getBoolean(java.lang.String key) |
byte |
getByte(java.lang.String key) |
byte[] |
getByteArray(java.lang.String key) |
NBTTagCompound |
getCompoundTag(java.lang.String key) |
double |
getDouble(java.lang.String key) |
float |
getFloat(java.lang.String key) |
byte |
getId() |
int[] |
getIntArray(java.lang.String key) |
int |
getInteger(java.lang.String key) |
java.util.Set<java.lang.String> |
getKeySet() |
long |
getLong(java.lang.String key) |
short |
getShort(java.lang.String key) |
int |
getSize() |
java.lang.String |
getString(java.lang.String key) |
NBTBase |
getTag(java.lang.String key) |
byte |
getTagId(java.lang.String key) |
NBTTagList |
getTagList(java.lang.String key,
int type) |
java.util.UUID |
getUniqueId(java.lang.String key) |
protected static java.lang.String |
handleEscape(java.lang.String p_193582_0_) |
int |
hashCode() |
boolean |
hasKey(java.lang.String key) |
boolean |
hasKey(java.lang.String key,
int type) |
boolean |
hasNoTags() |
boolean |
hasUniqueId(java.lang.String key) |
void |
merge(NBTTagCompound other) |
(package private) void |
read(java.io.DataInput input,
int depth,
NBTSizeTracker sizeTracker) |
private static java.lang.String |
readKey(java.io.DataInput input,
NBTSizeTracker sizeTracker) |
(package private) static NBTBase |
readNBT(byte id,
java.lang.String key,
java.io.DataInput input,
int depth,
NBTSizeTracker sizeTracker) |
private static byte |
readType(java.io.DataInput input,
NBTSizeTracker sizeTracker) |
void |
removeTag(java.lang.String key) |
void |
setBoolean(java.lang.String key,
boolean value) |
void |
setByte(java.lang.String key,
byte value) |
void |
setByteArray(java.lang.String key,
byte[] value) |
void |
setDouble(java.lang.String key,
double value) |
void |
setFloat(java.lang.String key,
float value) |
void |
setIntArray(java.lang.String key,
int[] value) |
void |
setInteger(java.lang.String key,
int value) |
void |
setLong(java.lang.String key,
long value) |
void |
setShort(java.lang.String key,
short value) |
void |
setString(java.lang.String key,
java.lang.String value) |
void |
setTag(java.lang.String key,
NBTBase value) |
void |
setUniqueId(java.lang.String key,
java.util.UUID value) |
java.lang.String |
toString() |
(package private) void |
write(java.io.DataOutput output) |
private static void |
writeEntry(java.lang.String name,
NBTBase data,
java.io.DataOutput output) |
createNewByType, getString, getTagTypeName
private static final org.apache.logging.log4j.Logger LOGGER
private static final java.util.regex.Pattern SIMPLE_VALUE
private final java.util.Map<java.lang.String,NBTBase> tagMap
void write(java.io.DataOutput output) throws java.io.IOException
void read(java.io.DataInput input, int depth, NBTSizeTracker sizeTracker) throws java.io.IOException
public java.util.Set<java.lang.String> getKeySet()
public int getSize()
public void setTag(java.lang.String key, NBTBase value)
public void setByte(java.lang.String key, byte value)
public void setShort(java.lang.String key, short value)
public void setInteger(java.lang.String key, int value)
public void setLong(java.lang.String key, long value)
public void setUniqueId(java.lang.String key, java.util.UUID value)
@Nullable public java.util.UUID getUniqueId(java.lang.String key)
public boolean hasUniqueId(java.lang.String key)
public void setFloat(java.lang.String key, float value)
public void setDouble(java.lang.String key, double value)
public void setString(java.lang.String key, java.lang.String value)
public void setByteArray(java.lang.String key, byte[] value)
public void setIntArray(java.lang.String key, int[] value)
public void setBoolean(java.lang.String key, boolean value)
public NBTBase getTag(java.lang.String key)
public byte getTagId(java.lang.String key)
public boolean hasKey(java.lang.String key)
public boolean hasKey(java.lang.String key, int type)
public byte getByte(java.lang.String key)
public short getShort(java.lang.String key)
public int getInteger(java.lang.String key)
public long getLong(java.lang.String key)
public float getFloat(java.lang.String key)
public double getDouble(java.lang.String key)
public java.lang.String getString(java.lang.String key)
public byte[] getByteArray(java.lang.String key)
public int[] getIntArray(java.lang.String key)
public NBTTagCompound getCompoundTag(java.lang.String key)
public NBTTagList getTagList(java.lang.String key, int type)
public boolean getBoolean(java.lang.String key)
public void removeTag(java.lang.String key)
private CrashReport createCrashReport(java.lang.String key, int expectedType, java.lang.ClassCastException ex)
public NBTTagCompound copy()
private static void writeEntry(java.lang.String name, NBTBase data, java.io.DataOutput output) throws java.io.IOException
java.io.IOException
private static byte readType(java.io.DataInput input, NBTSizeTracker sizeTracker) throws java.io.IOException
java.io.IOException
private static java.lang.String readKey(java.io.DataInput input, NBTSizeTracker sizeTracker) throws java.io.IOException
java.io.IOException
static NBTBase readNBT(byte id, java.lang.String key, java.io.DataInput input, int depth, NBTSizeTracker sizeTracker) throws java.io.IOException
java.io.IOException
public void merge(NBTTagCompound other)
protected static java.lang.String handleEscape(java.lang.String p_193582_0_)