Package net.minecraft.nbt
Class LongArrayNBT
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount
Fields inherited from interface net.minecraft.nbt.INBT
SYNTAX_HIGHLIGHTING_KEY, SYNTAX_HIGHLIGHTING_NUMBER, SYNTAX_HIGHLIGHTING_NUMBER_TYPE, SYNTAX_HIGHLIGHTING_STRING
-
Constructor Summary
ConstructorDescriptionLongArrayNBT
(long[] p_i47524_1_) LongArrayNBT
(it.unimi.dsi.fastutil.longs.LongSet p_i48736_1_) LongArrayNBT
(List<Long> p_i47525_1_) -
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
void
clear()
copy()
boolean
get
(int p_get_1_) long[]
byte
byte
getId()
getPrettyDisplay
(String p_199850_1_, int p_199850_2_) getType()
int
hashCode()
remove
(int p_remove_1_) boolean
int
size()
private static long[]
toString()
void
write
(DataOutput p_74734_1_) 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 net.minecraft.nbt.INBT
getAsString, getPrettyDisplay
Methods 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:
toString
in interfaceINBT
- Overrides:
toString
in classAbstractCollection<LongNBT>
-
copy
-
equals
- Specified by:
equals
in interfaceCollection<LongNBT>
- Specified by:
equals
in interfaceList<LongNBT>
- Overrides:
equals
in classAbstractList<LongNBT>
-
hashCode
public int hashCode()- Specified by:
hashCode
in interfaceCollection<LongNBT>
- Specified by:
hashCode
in interfaceList<LongNBT>
- Overrides:
hashCode
in classAbstractList<LongNBT>
-
getPrettyDisplay
-
getAsLongArray
public long[] getAsLongArray() -
size
public int size()- Specified by:
size
in interfaceCollection<LongNBT>
- Specified by:
size
in interfaceList<LongNBT>
- Specified by:
size
in classAbstractCollection<LongNBT>
-
get
-
set
-
add
-
setTag
- Specified by:
setTag
in classCollectionNBT<LongNBT>
-
addTag
- Specified by:
addTag
in classCollectionNBT<LongNBT>
-
remove
-
getElementType
public byte getElementType()- Specified by:
getElementType
in classCollectionNBT<LongNBT>
-
clear
public void clear()- Specified by:
clear
in interfaceCollection<LongNBT>
- Specified by:
clear
in interfaceList<LongNBT>
- Overrides:
clear
in classAbstractList<LongNBT>
-