Package net.minecraft.nbt
Class ListNBT
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<T>
-
- net.minecraft.nbt.CollectionNBT<INBT>
-
- net.minecraft.nbt.ListNBT
-
-
Field Summary
Fields Modifier and Type Field Description private static it.unimi.dsi.fastutil.bytes.ByteSet
INLINE_ELEMENT_TYPES
private java.util.List<INBT>
list
private byte
type
static INBTType<ListNBT>
TYPE
-
Fields inherited from interface net.minecraft.nbt.INBT
SYNTAX_HIGHLIGHTING_KEY, SYNTAX_HIGHLIGHTING_NUMBER, SYNTAX_HIGHLIGHTING_NUMBER_TYPE, SYNTAX_HIGHLIGHTING_STRING
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(int p_add_1_, INBT p_add_2_)
boolean
addTag(int p_218660_1_, INBT p_218660_2_)
void
clear()
ListNBT
copy()
boolean
equals(java.lang.Object p_equals_1_)
INBT
get(int p_get_1_)
CompoundNBT
getCompound(int p_150305_1_)
double
getDouble(int p_150309_1_)
byte
getElementType()
float
getFloat(int p_150308_1_)
byte
getId()
int
getInt(int p_186858_1_)
int[]
getIntArray(int p_150306_1_)
ListNBT
getList(int p_202169_1_)
ITextComponent
getPrettyDisplay(java.lang.String p_199850_1_, int p_199850_2_)
short
getShort(int p_202170_1_)
java.lang.String
getString(int p_150307_1_)
INBTType<ListNBT>
getType()
int
hashCode()
boolean
isEmpty()
INBT
remove(int p_remove_1_)
INBT
set(int p_set_1_, INBT p_set_2_)
boolean
setTag(int p_218659_1_, INBT p_218659_2_)
int
size()
java.lang.String
toString()
private boolean
updateType(INBT p_218661_1_)
private void
updateTypeAfterRemove()
void
write(java.io.DataOutput p_74734_1_)
-
Methods inherited from class java.util.AbstractList
add, addAll, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, subList
-
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, remove, removeAll, retainAll, toArray, toArray
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.minecraft.nbt.INBT
getAsString, getPrettyDisplay
-
-
-
-
Constructor Detail
-
ListNBT
private ListNBT(java.util.List<INBT> p_i226078_1_, byte p_i226078_2_)
-
ListNBT
public ListNBT()
-
-
Method Detail
-
write
public void write(java.io.DataOutput p_74734_1_) throws java.io.IOException
- Throws:
java.io.IOException
-
getId
public byte getId()
-
toString
public java.lang.String toString()
-
updateTypeAfterRemove
private void updateTypeAfterRemove()
-
remove
public INBT remove(int p_remove_1_)
- Specified by:
remove
in interfacejava.util.List<INBT>
- Specified by:
remove
in classCollectionNBT<INBT>
-
isEmpty
public boolean isEmpty()
-
getCompound
public CompoundNBT getCompound(int p_150305_1_)
-
getList
public ListNBT getList(int p_202169_1_)
-
getShort
public short getShort(int p_202170_1_)
-
getInt
public int getInt(int p_186858_1_)
-
getIntArray
public int[] getIntArray(int p_150306_1_)
-
getDouble
public double getDouble(int p_150309_1_)
-
getFloat
public float getFloat(int p_150308_1_)
-
getString
public java.lang.String getString(int p_150307_1_)
-
size
public int size()
-
get
public INBT get(int p_get_1_)
-
set
public INBT set(int p_set_1_, INBT p_set_2_)
- Specified by:
set
in interfacejava.util.List<INBT>
- Specified by:
set
in classCollectionNBT<INBT>
-
add
public void add(int p_add_1_, INBT p_add_2_)
- Specified by:
add
in interfacejava.util.List<INBT>
- Specified by:
add
in classCollectionNBT<INBT>
-
setTag
public boolean setTag(int p_218659_1_, INBT p_218659_2_)
- Specified by:
setTag
in classCollectionNBT<INBT>
-
addTag
public boolean addTag(int p_218660_1_, INBT p_218660_2_)
- Specified by:
addTag
in classCollectionNBT<INBT>
-
updateType
private boolean updateType(INBT p_218661_1_)
-
copy
public ListNBT copy()
-
equals
public boolean equals(java.lang.Object p_equals_1_)
-
hashCode
public int hashCode()
-
getPrettyDisplay
public ITextComponent getPrettyDisplay(java.lang.String p_199850_1_, int p_199850_2_)
-
getElementType
public byte getElementType()
- Specified by:
getElementType
in classCollectionNBT<INBT>
-
-