Package net.minecraft.nbt
Class ListNBT
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final it.unimi.dsi.fastutil.bytes.ByteSetprivate byteFields inherited from class java.util.AbstractList
modCountFields inherited from interface net.minecraft.nbt.INBT
SYNTAX_HIGHLIGHTING_KEY, SYNTAX_HIGHLIGHTING_NUMBER, SYNTAX_HIGHLIGHTING_NUMBER_TYPE, SYNTAX_HIGHLIGHTING_STRING -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanvoidclear()copy()booleanget(int p_get_1_) getCompound(int p_150305_1_) doublegetDouble(int p_150309_1_) bytefloatgetFloat(int p_150308_1_) bytegetId()intgetInt(int p_186858_1_) int[]getIntArray(int p_150306_1_) getList(int p_202169_1_) getPrettyDisplay(String p_199850_1_, int p_199850_2_) shortgetShort(int p_202170_1_) getString(int p_150307_1_) getType()inthashCode()booleanisEmpty()remove(int p_remove_1_) booleanintsize()toString()private booleanupdateType(INBT p_218661_1_) private voidvoidwrite(DataOutput p_74734_1_) Methods inherited from class java.util.AbstractList
add, addAll, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, subListMethods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, remove, removeAll, retainAll, toArray, toArrayMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface net.minecraft.nbt.INBT
getAsString, getPrettyDisplayMethods inherited from interface java.util.List
addAll, contains, containsAll, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
-
Field Details
-
TYPE
-
INLINE_ELEMENT_TYPES
private static final it.unimi.dsi.fastutil.bytes.ByteSet INLINE_ELEMENT_TYPES -
list
-
type
private byte type
-
-
Constructor Details
-
ListNBT
-
ListNBT
public ListNBT()
-
-
Method Details
-
write
- Throws:
IOException
-
getId
public byte getId() -
getType
-
toString
- Specified by:
toStringin interfaceINBT- Overrides:
toStringin classAbstractCollection<INBT>
-
updateTypeAfterRemove
private void updateTypeAfterRemove() -
remove
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceCollection<INBT>- Specified by:
isEmptyin interfaceList<INBT>- Overrides:
isEmptyin classAbstractCollection<INBT>
-
getCompound
-
getList
-
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
-
size
public int size()- Specified by:
sizein interfaceCollection<INBT>- Specified by:
sizein interfaceList<INBT>- Specified by:
sizein classAbstractCollection<INBT>
-
get
-
set
-
add
-
setTag
- Specified by:
setTagin classCollectionNBT<INBT>
-
addTag
- Specified by:
addTagin classCollectionNBT<INBT>
-
updateType
-
copy
-
equals
- Specified by:
equalsin interfaceCollection<INBT>- Specified by:
equalsin interfaceList<INBT>- Overrides:
equalsin classAbstractList<INBT>
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceCollection<INBT>- Specified by:
hashCodein interfaceList<INBT>- Overrides:
hashCodein classAbstractList<INBT>
-
getPrettyDisplay
-
getElementType
public byte getElementType()- Specified by:
getElementTypein classCollectionNBT<INBT>
-
clear
public void clear()- Specified by:
clearin interfaceCollection<INBT>- Specified by:
clearin interfaceList<INBT>- Overrides:
clearin classAbstractList<INBT>
-