Package net.minecraft.nbt
Class LongArrayTag
public class LongArrayTag extends AbstractListTag<LongTag>
-
Field Summary
Fields Modifier and Type Field Description static TagReader<LongArrayTag>READERprivate long[]valueFields inherited from class java.util.AbstractList
modCount -
Constructor Summary
Constructors Constructor Description LongArrayTag(long[] value)LongArrayTag(LongSet value)LongArrayTag(List<Long> value) -
Method Summary
Modifier and Type Method Description voidaccept(NbtTagVisitor visitor)voidadd(int int2, LongTag longTag)booleanaddTag(int index, Tag tag)voidclear()LongArrayTagcopy()booleanequals(Object o)LongTagget(int int2)bytegetElementType()long[]getLongArray()TagReader<LongArrayTag>getReader()bytegetType()inthashCode()LongTagmethod_10606(int int2, LongTag longTag)LongTagremove(int int2)booleansetTag(int index, Tag tag)intsize()private static long[]toArray(List<Long> list)StringtoString()voidwrite(DataOutput output)Methods inherited from class net.minecraft.nbt.AbstractListTag
setMethods 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 java.util.List
addAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
-
Field Details
-
READER
-
value
private long[] value
-
-
Constructor Details
-
LongArrayTag
public LongArrayTag(long[] value) -
LongArrayTag
-
LongArrayTag
-
-
Method Details
-
toArray
-
write
- Throws:
IOException
-
getType
public byte getType() -
getReader
-
toString
- Specified by:
toStringin interfaceTag- Overrides:
toStringin classAbstractCollection<LongTag>
-
copy
-
equals
- Specified by:
equalsin interfaceCollection<LongTag>- Specified by:
equalsin interfaceList<LongTag>- Overrides:
equalsin classAbstractList<LongTag>
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceCollection<LongTag>- Specified by:
hashCodein interfaceList<LongTag>- Overrides:
hashCodein classAbstractList<LongTag>
-
accept
-
getLongArray
public long[] getLongArray() -
size
public int size()- Specified by:
sizein interfaceCollection<LongTag>- Specified by:
sizein interfaceList<LongTag>- Specified by:
sizein classAbstractCollection<LongTag>
-
get
-
method_10606
-
add
-
setTag
- Specified by:
setTagin classAbstractListTag<LongTag>
-
addTag
- Specified by:
addTagin classAbstractListTag<LongTag>
-
remove
-
getElementType
public byte getElementType()- Specified by:
getElementTypein classAbstractListTag<LongTag>
-
clear
public void clear()- Specified by:
clearin interfaceCollection<LongTag>- Specified by:
clearin interfaceList<LongTag>- Overrides:
clearin classAbstractList<LongTag>
-