Package net.minecraft.nbt
Class IntArrayTag
- All Implemented Interfaces:
Iterable<IntTag>
,Collection<IntTag>
,List<IntTag>
,SequencedCollection<IntTag>
,Tag
-
Field Summary
Modifier and TypeFieldDescriptionprivate int[]
private static final int
static final TagType
<IntArrayTag> Fields inherited from class java.util.AbstractList
modCount
Fields inherited from interface net.minecraft.nbt.Tag
ARRAY_HEADER, MAX_DEPTH, OBJECT_HEADER, OBJECT_REFERENCE, STRING_SIZE, TAG_ANY_NUMERIC, TAG_BYTE, TAG_BYTE_ARRAY, TAG_COMPOUND, TAG_DOUBLE, TAG_END, TAG_FLOAT, TAG_INT, TAG_INT_ARRAY, TAG_LIST, TAG_LONG, TAG_LONG_ARRAY, TAG_SHORT, TAG_STRING
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaccept
(StreamTagVisitor p_197474_) void
accept
(TagVisitor p_177869_) void
boolean
void
clear()
copy()
boolean
get
(int p_128608_) int[]
byte
byte
getId()
getType()
int
hashCode()
remove
(int p_128627_) boolean
int
size()
int
private static int[]
toString()
void
write
(DataOutput p_128616_) 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, isEmpty, 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 java.util.List
addAll, addFirst, addLast, contains, containsAll, getFirst, getLast, isEmpty, remove, removeAll, removeFirst, removeLast, replaceAll, retainAll, reversed, sort, spliterator, toArray, toArray
Methods inherited from interface net.minecraft.nbt.Tag
acceptAsRoot, getAsString
-
Field Details
-
SELF_SIZE_IN_BYTES
private static final int SELF_SIZE_IN_BYTES- See Also:
-
TYPE
-
data
private int[] data
-
-
Constructor Details
-
IntArrayTag
public IntArrayTag(int[] p_128605_) -
IntArrayTag
-
-
Method Details
-
toArray
-
write
- Throws:
IOException
-
sizeInBytes
public int sizeInBytes() -
getId
public byte getId() -
getType
-
toString
- Specified by:
toString
in interfaceTag
- Overrides:
toString
in classAbstractCollection<IntTag>
-
copy
-
equals
- Specified by:
equals
in interfaceCollection<IntTag>
- Specified by:
equals
in interfaceList<IntTag>
- Overrides:
equals
in classAbstractList<IntTag>
-
hashCode
public int hashCode()- Specified by:
hashCode
in interfaceCollection<IntTag>
- Specified by:
hashCode
in interfaceList<IntTag>
- Overrides:
hashCode
in classAbstractList<IntTag>
-
getAsIntArray
public int[] getAsIntArray() -
accept
-
size
public int size()- Specified by:
size
in interfaceCollection<IntTag>
- Specified by:
size
in interfaceList<IntTag>
- Specified by:
size
in classAbstractCollection<IntTag>
-
get
-
set
-
add
-
setTag
- Specified by:
setTag
in classCollectionTag<IntTag>
-
addTag
- Specified by:
addTag
in classCollectionTag<IntTag>
-
remove
-
getElementType
public byte getElementType()- Specified by:
getElementType
in classCollectionTag<IntTag>
-
clear
public void clear()- Specified by:
clear
in interfaceCollection<IntTag>
- Specified by:
clear
in interfaceList<IntTag>
- Overrides:
clear
in classAbstractList<IntTag>
-
accept
-