Package net.minecraft.nbt
Class NBTTagList
- java.lang.Object
-
- net.minecraft.nbt.NBTBase
-
- net.minecraft.nbt.NBTTagList
-
public class NBTTagList extends NBTBase
+ This portion of EaglercraftX contains deobfuscated Minecraft 1.8 source code. Minecraft 1.8.8 bytecode is (c) 2015 Mojang AB. "Do not distribute!" Mod Coder Pack v9.18 deobfuscation configs are (c) Copyright by the MCP Team EaglercraftX 1.8 patch files are (c) 2022-2023 LAX1DUDE. All Rights Reserved. WITH THE EXCEPTION OF PATCH FILES, MINIFIED JAVASCRIPT, AND ALL FILES NORMALLY FOUND IN AN UNMODIFIED MINECRAFT RESOURCE PACK, YOU ARE NOT ALLOWED TO SHARE, DISTRIBUTE, OR REPURPOSE ANY FILE USED BY OR PRODUCED BY THE SOFTWARE IN THIS REPOSITORY WITHOUT PRIOR PERMISSION FROM THE PROJECT AUTHOR. NOT FOR COMMERCIAL OR MALICIOUS USE (please read the 'LICENSE' file this repo's root directory for more info)
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.minecraft.nbt.NBTBase
NBTBase.NBTPrimitive
-
-
Constructor Summary
Constructors Constructor Description NBTTagList()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 object)
NBTBase
get(int idx)
+ Get the tag at the given positionNBTTagCompound
getCompoundTagAt(int i)
+ Retrieves the NBTTagCompound at the specified index in the listdouble
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 listint
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 tagint
tagCount()
+ Returns the number of tags in the list.java.lang.String
toString()
-
Methods inherited from class net.minecraft.nbt.NBTBase
createNewByType, getString
-
-
-
-
Method Detail
-
appendTag
public void appendTag(NBTBase nbt)
+ Adds the provided tag to the end of the list. There is no check to verify this tag is of the same type as any previous tag.
-
set
public void set(int idx, NBTBase nbt)
+ Set the given index to the given tag
-
removeTag
public NBTBase removeTag(int i)
+ Removes a tag at the given index.
-
hasNoTags
public boolean hasNoTags()
+ Return whether this compound has no tags.
-
getCompoundTagAt
public NBTTagCompound getCompoundTagAt(int i)
+ Retrieves the NBTTagCompound at the specified index in the list
-
getIntArrayAt
public int[] getIntArrayAt(int i)
-
getDoubleAt
public double getDoubleAt(int i)
-
getFloatAt
public float getFloatAt(int i)
-
getStringTagAt
public java.lang.String getStringTagAt(int i)
+ Retrieves the tag String value at the specified index in the list
-
get
public NBTBase get(int idx)
+ Get the tag at the given position
-
tagCount
public int tagCount()
+ Returns the number of tags in the list.
-
getTagType
public int getTagType()
-
-