Package net.minecraft.nbt
Class LongArrayTag
-
Field Summary
Modifier and TypeFieldDescriptionprivate long[]
private static final int
static final TagType<LongArrayTag>
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
ConstructorDescriptionLongArrayTag
(long[] p_128808_) LongArrayTag
(it.unimi.dsi.fastutil.longs.LongSet p_128804_) LongArrayTag
(List<Long> p_128806_) -
Method Summary
Modifier and TypeMethodDescriptionaccept
(StreamTagVisitor p_197497_) void
accept
(TagVisitor p_177995_) void
boolean
void
clear()
copy()
boolean
get
(int p_128811_) long[]
byte
byte
getId()
getType()
int
hashCode()
remove
(int p_128830_) boolean
int
size()
int
private static long[]
toString()
void
write
(DataOutput p_128819_) 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, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, 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 long[] data
-
-
Constructor Details
-
LongArrayTag
public LongArrayTag(long[] p_128808_) -
LongArrayTag
public LongArrayTag(it.unimi.dsi.fastutil.longs.LongSet p_128804_) -
LongArrayTag
-
-
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<LongTag>
-
copy
-
equals
- Specified by:
equals
in interfaceCollection<LongTag>
- Specified by:
equals
in interfaceList<LongTag>
- Overrides:
equals
in classAbstractList<LongTag>
-
hashCode
public int hashCode()- Specified by:
hashCode
in interfaceCollection<LongTag>
- Specified by:
hashCode
in interfaceList<LongTag>
- Overrides:
hashCode
in classAbstractList<LongTag>
-
accept
-
getAsLongArray
public long[] getAsLongArray() -
size
public int size()- Specified by:
size
in interfaceCollection<LongTag>
- Specified by:
size
in interfaceList<LongTag>
- Specified by:
size
in classAbstractCollection<LongTag>
-
get
-
set
-
add
-
setTag
- Specified by:
setTag
in classCollectionTag<LongTag>
-
addTag
- Specified by:
addTag
in classCollectionTag<LongTag>
-
remove
-
getElementType
public byte getElementType()- Specified by:
getElementType
in classCollectionTag<LongTag>
-
clear
public void clear()- Specified by:
clear
in interfaceCollection<LongTag>
- Specified by:
clear
in interfaceList<LongTag>
- Overrides:
clear
in classAbstractList<LongTag>
-
accept
-