Package net.minecraft.nbt
Class LongArrayTag
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate long[]private static final intstatic final TagType<LongArrayTag>Fields inherited from class java.util.AbstractListmodCountFields inherited from interface net.minecraft.nbt.TagARRAY_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 SummaryConstructorsConstructorDescriptionLongArrayTag(long[] p_128808_) LongArrayTag(it.unimi.dsi.fastutil.longs.LongSet p_128804_) LongArrayTag(List<Long> p_128806_) 
- 
Method SummaryModifier and TypeMethodDescriptionaccept(StreamTagVisitor p_197497_) voidaccept(TagVisitor p_177995_) voidbooleanvoidclear()copy()booleanget(int p_128811_) long[]bytebytegetId()getType()inthashCode()remove(int p_128830_) booleanintsize()intprivate static long[]toString()voidwrite(DataOutput p_128819_) Methods inherited from class java.util.AbstractListadd, addAll, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, subListMethods inherited from class java.util.AbstractCollectionaddAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArrayMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.CollectionparallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.ListaddAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArrayMethods inherited from interface net.minecraft.nbt.TagacceptAsRoot, getAsString
- 
Field Details- 
SELF_SIZE_IN_BYTESprivate static final int SELF_SIZE_IN_BYTES- See Also:
 
- 
TYPE
- 
dataprivate long[] data
 
- 
- 
Constructor Details- 
LongArrayTagpublic LongArrayTag(long[] p_128808_) 
- 
LongArrayTagpublic LongArrayTag(it.unimi.dsi.fastutil.longs.LongSet p_128804_) 
- 
LongArrayTag
 
- 
- 
Method Details- 
toArray
- 
write- Throws:
- IOException
 
- 
sizeInBytespublic int sizeInBytes()
- 
getIdpublic byte getId()
- 
getType
- 
toString- Specified by:
- toStringin interface- Tag
- Overrides:
- toStringin class- AbstractCollection<LongTag>
 
- 
copy
- 
equals- Specified by:
- equalsin interface- Collection<LongTag>
- Specified by:
- equalsin interface- List<LongTag>
- Overrides:
- equalsin class- AbstractList<LongTag>
 
- 
hashCodepublic int hashCode()- Specified by:
- hashCodein interface- Collection<LongTag>
- Specified by:
- hashCodein interface- List<LongTag>
- Overrides:
- hashCodein class- AbstractList<LongTag>
 
- 
accept
- 
getAsLongArraypublic long[] getAsLongArray()
- 
sizepublic int size()- Specified by:
- sizein interface- Collection<LongTag>
- Specified by:
- sizein interface- List<LongTag>
- Specified by:
- sizein class- AbstractCollection<LongTag>
 
- 
get
- 
set
- 
add
- 
setTag- Specified by:
- setTagin class- CollectionTag<LongTag>
 
- 
addTag- Specified by:
- addTagin class- CollectionTag<LongTag>
 
- 
remove
- 
getElementTypepublic byte getElementType()- Specified by:
- getElementTypein class- CollectionTag<LongTag>
 
- 
clearpublic void clear()- Specified by:
- clearin interface- Collection<LongTag>
- Specified by:
- clearin interface- List<LongTag>
- Overrides:
- clearin class- AbstractList<LongTag>
 
- 
accept
 
-