Package net.minecraft.nbt
Class ListNBT
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final it.unimi.dsi.fastutil.bytes.ByteSet
private byte
Fields inherited from class java.util.AbstractList
modCount
Fields inherited from interface net.minecraft.nbt.INBT
SYNTAX_HIGHLIGHTING_KEY, SYNTAX_HIGHLIGHTING_NUMBER, SYNTAX_HIGHLIGHTING_NUMBER_TYPE, SYNTAX_HIGHLIGHTING_STRING
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
void
clear()
copy()
boolean
get
(int p_get_1_) getCompound
(int p_150305_1_) double
getDouble
(int p_150309_1_) byte
float
getFloat
(int p_150308_1_) byte
getId()
int
getInt
(int p_186858_1_) int[]
getIntArray
(int p_150306_1_) getList
(int p_202169_1_) getPrettyDisplay
(String p_199850_1_, int p_199850_2_) short
getShort
(int p_202170_1_) getString
(int p_150307_1_) getType()
int
hashCode()
boolean
isEmpty()
remove
(int p_remove_1_) boolean
int
size()
toString()
private boolean
updateType
(INBT p_218661_1_) private void
void
write
(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 java.util.Collection
parallelStream, removeIf, stream, toArray
Methods inherited from interface net.minecraft.nbt.INBT
getAsString, getPrettyDisplay
Methods 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:
toString
in interfaceINBT
- Overrides:
toString
in classAbstractCollection<INBT>
-
updateTypeAfterRemove
private void updateTypeAfterRemove() -
remove
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in interfaceCollection<INBT>
- Specified by:
isEmpty
in interfaceList<INBT>
- Overrides:
isEmpty
in 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:
size
in interfaceCollection<INBT>
- Specified by:
size
in interfaceList<INBT>
- Specified by:
size
in classAbstractCollection<INBT>
-
get
-
set
-
add
-
setTag
- Specified by:
setTag
in classCollectionNBT<INBT>
-
addTag
- Specified by:
addTag
in classCollectionNBT<INBT>
-
updateType
-
copy
-
equals
- Specified by:
equals
in interfaceCollection<INBT>
- Specified by:
equals
in interfaceList<INBT>
- Overrides:
equals
in classAbstractList<INBT>
-
hashCode
public int hashCode()- Specified by:
hashCode
in interfaceCollection<INBT>
- Specified by:
hashCode
in interfaceList<INBT>
- Overrides:
hashCode
in classAbstractList<INBT>
-
getPrettyDisplay
-
getElementType
public byte getElementType()- Specified by:
getElementType
in classCollectionNBT<INBT>
-
clear
public void clear()- Specified by:
clear
in interfaceCollection<INBT>
- Specified by:
clear
in interfaceList<INBT>
- Overrides:
clear
in classAbstractList<INBT>
-