public class NBTTagList extends NBTBase
NBTBase.NBTPrimitive
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.
|
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() |
createNewByType, getString
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()