Package net.minecraft.nbt
Class LongArrayTag
-
Field Summary
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
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
getAsString
-
Field Details
-
SELF_SIZE_IN_BITS
private static final int SELF_SIZE_IN_BITS- See Also:
- Constant Field Values
-
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:
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>
-