public class NBTTagList extends NBTBase
NBTBase.NBTPrimitive
Modifier and Type | Field and Description |
---|---|
private static org.apache.logging.log4j.Logger |
LOGGER |
private java.util.List<NBTBase> |
tagList |
private byte |
tagType
The type byte for the tags in the list - they must all be of the same type.
|
Constructor and Description |
---|
NBTTagList() |
Modifier and Type | Method and Description |
---|---|
void |
appendTag(NBTBase nbt)
Adds the provided tag to the end of the list.
|
NBTBase |
copy()
Creates a clone of the tag.
|
boolean |
equals(java.lang.Object p_equals_1_) |
NBTBase |
get(int idx)
Get the tag at the given position
|
NBTTagCompound |
getCompoundTagAt(int i)
Retrieves the NBTTagCompound at the specified index in the list
|
double |
getDoubleAt(int i) |
float |
getFloatAt(int i) |
byte |
getId()
Gets the type byte for the tag.
|
int[] |
getIntArrayAt(int i) |
java.lang.String |
getStringTagAt(int i)
Retrieves the tag String value at the specified index in the list
|
int |
getTagType() |
int |
hashCode() |
boolean |
hasNoTags()
Return whether this compound has no tags.
|
(package private) void |
read(java.io.DataInput input,
int depth,
NBTSizeTracker sizeTracker) |
NBTBase |
removeTag(int i)
Removes a tag at the given index.
|
void |
set(int idx,
NBTBase nbt)
Set the given index to the given tag
|
int |
tagCount()
Returns the number of tags in the list.
|
java.lang.String |
toString() |
(package private) void |
write(java.io.DataOutput output)
Write the actual data contents of the tag, implemented in NBT extension classes
|
createNewByType, getString
private static final org.apache.logging.log4j.Logger LOGGER
private java.util.List<NBTBase> tagList
private byte tagType
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 void appendTag(NBTBase nbt)
public void set(int idx, NBTBase nbt)
public NBTBase removeTag(int i)
public boolean hasNoTags()
public NBTTagCompound getCompoundTagAt(int i)
public int[] getIntArrayAt(int i)
public double getDoubleAt(int i)
public float getFloatAt(int i)
public java.lang.String getStringTagAt(int i)
public NBTBase get(int idx)
public int tagCount()
public int getTagType()