Package net.minecraft.nbt
Class IntArrayTag
java.lang.Object
net.minecraft.nbt.IntArrayTag
- All Implemented Interfaces:
Iterable<Tag>,CollectionTag,Tag
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int[]private static final intstatic final TagType<IntArrayTag> Fields inherited from interface net.minecraft.nbt.Tag
ARRAY_HEADER, MAX_DEPTH, OBJECT_HEADER, OBJECT_REFERENCE, STRING_SIZE, 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccept(StreamTagVisitor p_197474_) voidaccept(TagVisitor p_177869_) booleanOptional<int[]> voidclear()copy()booleanget(int pIndex) int[]bytegetId()getType()inthashCode()remove(int p_128627_) booleanintsize()inttoString()voidwrite(DataOutput pOutput) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.nbt.CollectionTag
isEmpty, iterator, streamMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface net.minecraft.nbt.Tag
acceptAsRoot, asBoolean, asByte, asByteArray, asCompound, asDouble, asFloat, asInt, asList, asLong, asLongArray, asNumber, asShort, asString
-
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[] pData)
-
-
Method Details
-
write
- Specified by:
writein interfaceTag- Throws:
IOException
-
sizeInBytes
public int sizeInBytes()- Specified by:
sizeInBytesin interfaceTag
-
getId
public byte getId() -
getType
-
toString
-
copy
-
equals
-
hashCode
public int hashCode() -
getAsIntArray
public int[] getAsIntArray() -
accept
-
size
public int size()- Specified by:
sizein interfaceCollectionTag
-
get
- Specified by:
getin interfaceCollectionTag
-
setTag
- Specified by:
setTagin interfaceCollectionTag
-
addTag
- Specified by:
addTagin interfaceCollectionTag
-
remove
- Specified by:
removein interfaceCollectionTag
-
clear
public void clear()- Specified by:
clearin interfaceCollectionTag
-
asIntArray
- Specified by:
asIntArrayin interfaceTag
-
accept
-