Package net.minecraft.nbt
Class LongArrayNBT
-
Field Summary
FieldsFields inherited from class java.util.AbstractList
modCountFields inherited from interface net.minecraft.nbt.INBT
SYNTAX_HIGHLIGHTING_KEY, SYNTAX_HIGHLIGHTING_NUMBER, SYNTAX_HIGHLIGHTING_NUMBER_TYPE, SYNTAX_HIGHLIGHTING_STRING -
Constructor Summary
ConstructorsConstructorDescriptionLongArrayNBT(long[] p_i47524_1_) LongArrayNBT(it.unimi.dsi.fastutil.longs.LongSet p_i48736_1_) LongArrayNBT(List<Long> p_i47525_1_) -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanvoidclear()copy()booleanget(int p_get_1_) long[]bytebytegetId()getPrettyDisplay(String p_199850_1_, int p_199850_2_) getType()inthashCode()remove(int p_remove_1_) booleanintsize()private static long[]toString()voidwrite(DataOutput p_74734_1_) 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 net.minecraft.nbt.INBT
getAsString, getPrettyDisplayMethods inherited from interface java.util.List
addAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
-
Field Details
-
TYPE
-
data
private long[] data
-
-
Constructor Details
-
LongArrayNBT
public LongArrayNBT(long[] p_i47524_1_) -
LongArrayNBT
public LongArrayNBT(it.unimi.dsi.fastutil.longs.LongSet p_i48736_1_) -
LongArrayNBT
-
-
Method Details
-
toArray
-
write
- Throws:
IOException
-
getId
public byte getId() -
getType
-
toString
- Specified by:
toStringin interfaceINBT- Overrides:
toStringin classAbstractCollection<LongNBT>
-
copy
-
equals
- Specified by:
equalsin interfaceCollection<LongNBT>- Specified by:
equalsin interfaceList<LongNBT>- Overrides:
equalsin classAbstractList<LongNBT>
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceCollection<LongNBT>- Specified by:
hashCodein interfaceList<LongNBT>- Overrides:
hashCodein classAbstractList<LongNBT>
-
getPrettyDisplay
-
getAsLongArray
public long[] getAsLongArray() -
size
public int size()- Specified by:
sizein interfaceCollection<LongNBT>- Specified by:
sizein interfaceList<LongNBT>- Specified by:
sizein classAbstractCollection<LongNBT>
-
get
-
set
-
add
-
setTag
- Specified by:
setTagin classCollectionNBT<LongNBT>
-
addTag
- Specified by:
addTagin classCollectionNBT<LongNBT>
-
remove
-
getElementType
public byte getElementType()- Specified by:
getElementTypein classCollectionNBT<LongNBT>
-
clear
public void clear()- Specified by:
clearin interfaceCollection<LongNBT>- Specified by:
clearin interfaceList<LongNBT>- Overrides:
clearin classAbstractList<LongNBT>
-