Package net.minecraft.nbt
Class LongArrayTag
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate long[]private static final intstatic final TagType<LongArrayTag>Fields inherited from class java.util.AbstractList
modCountFields 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
ConstructorsConstructorDescriptionLongArrayTag(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_) voidaccept(TagVisitor p_177995_) voidbooleanvoidclear()copy()booleanget(int p_128811_) long[]bytebytegetId()getType()inthashCode()remove(int p_128830_) booleanintsize()private static long[]toString()voidwrite(DataOutput p_128819_) 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, isEmpty, 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 java.util.List
addAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArrayMethods inherited from interface net.minecraft.nbt.Tag
acceptAsRoot, getAsString
-
Field Details
-
SELF_SIZE_IN_BITS
private static final int SELF_SIZE_IN_BITS- 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
-
getId
public byte getId() -
getType
-
toString
- Specified by:
toStringin interfaceTag- Overrides:
toStringin classAbstractCollection<LongTag>
-
copy
-
equals
- Specified by:
equalsin interfaceCollection<LongTag>- Specified by:
equalsin interfaceList<LongTag>- Overrides:
equalsin classAbstractList<LongTag>
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceCollection<LongTag>- Specified by:
hashCodein interfaceList<LongTag>- Overrides:
hashCodein classAbstractList<LongTag>
-
accept
-
getAsLongArray
public long[] getAsLongArray() -
size
public int size()- Specified by:
sizein interfaceCollection<LongTag>- Specified by:
sizein interfaceList<LongTag>- Specified by:
sizein classAbstractCollection<LongTag>
-
get
-
set
-
add
-
setTag
- Specified by:
setTagin classCollectionTag<LongTag>
-
addTag
- Specified by:
addTagin classCollectionTag<LongTag>
-
remove
-
getElementType
public byte getElementType()- Specified by:
getElementTypein classCollectionTag<LongTag>
-
clear
public void clear()- Specified by:
clearin interfaceCollection<LongTag>- Specified by:
clearin interfaceList<LongTag>- Overrides:
clearin classAbstractList<LongTag>
-
accept
-