Package net.minecraft.nbt
Class LongArrayNBT
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<T>
-
- net.minecraft.nbt.CollectionNBT<LongNBT>
-
- net.minecraft.nbt.LongArrayNBT
-
-
Field Summary
Fields Modifier and Type Field Description private long[]
data
static INBTType<LongArrayNBT>
TYPE
-
Fields inherited from interface net.minecraft.nbt.INBT
SYNTAX_HIGHLIGHTING_KEY, SYNTAX_HIGHLIGHTING_NUMBER, SYNTAX_HIGHLIGHTING_NUMBER_TYPE, SYNTAX_HIGHLIGHTING_STRING
-
-
Constructor Summary
Constructors Constructor Description LongArrayNBT(long[] p_i47524_1_)
LongArrayNBT(it.unimi.dsi.fastutil.longs.LongSet p_i48736_1_)
LongArrayNBT(java.util.List<java.lang.Long> p_i47525_1_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(int p_add_1_, LongNBT p_add_2_)
boolean
addTag(int p_218660_1_, INBT p_218660_2_)
void
clear()
LongArrayNBT
copy()
boolean
equals(java.lang.Object p_equals_1_)
LongNBT
get(int p_get_1_)
long[]
getAsLongArray()
byte
getElementType()
byte
getId()
ITextComponent
getPrettyDisplay(java.lang.String p_199850_1_, int p_199850_2_)
INBTType<LongArrayNBT>
getType()
int
hashCode()
LongNBT
remove(int p_remove_1_)
LongNBT
set(int p_set_1_, LongNBT p_set_2_)
boolean
setTag(int p_218659_1_, INBT p_218659_2_)
int
size()
private static long[]
toArray(java.util.List<java.lang.Long> p_193586_0_)
java.lang.String
toString()
void
write(java.io.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 net.minecraft.nbt.INBT
getAsString, getPrettyDisplay
-
-
-
-
Field Detail
-
TYPE
public static final INBTType<LongArrayNBT> TYPE
-
data
private long[] data
-
-
Method Detail
-
toArray
private static long[] toArray(java.util.List<java.lang.Long> p_193586_0_)
-
write
public void write(java.io.DataOutput p_74734_1_) throws java.io.IOException
- Throws:
java.io.IOException
-
getId
public byte getId()
-
getType
public INBTType<LongArrayNBT> getType()
-
toString
public java.lang.String toString()
-
copy
public LongArrayNBT copy()
-
equals
public boolean equals(java.lang.Object p_equals_1_)
-
hashCode
public int hashCode()
-
getPrettyDisplay
public ITextComponent getPrettyDisplay(java.lang.String p_199850_1_, int p_199850_2_)
-
getAsLongArray
public long[] getAsLongArray()
-
size
public int size()
-
get
public LongNBT get(int p_get_1_)
-
set
public LongNBT set(int p_set_1_, LongNBT p_set_2_)
- Specified by:
set
in interfacejava.util.List<LongNBT>
- Specified by:
set
in classCollectionNBT<LongNBT>
-
add
public void add(int p_add_1_, LongNBT p_add_2_)
- Specified by:
add
in interfacejava.util.List<LongNBT>
- Specified by:
add
in classCollectionNBT<LongNBT>
-
setTag
public boolean setTag(int p_218659_1_, INBT p_218659_2_)
- Specified by:
setTag
in classCollectionNBT<LongNBT>
-
addTag
public boolean addTag(int p_218660_1_, INBT p_218660_2_)
- Specified by:
addTag
in classCollectionNBT<LongNBT>
-
remove
public LongNBT remove(int p_remove_1_)
- Specified by:
remove
in interfacejava.util.List<LongNBT>
- Specified by:
remove
in classCollectionNBT<LongNBT>
-
getElementType
public byte getElementType()
- Specified by:
getElementType
in classCollectionNBT<LongNBT>
-
-