Package net.minecraft.nbt
Class LongArrayTag
public class LongArrayTag extends AbstractListTag<LongTag>
-
Field Summary
Fields Modifier and Type Field Description static TagReader<LongArrayTag>
READER
private long[]
value
Fields 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 void
add(int int2, LongTag longTag)
boolean
addTag(int index, Tag tag)
void
clear()
LongArrayTag
copy()
boolean
equals(Object o)
LongTag
get(int int2)
byte
getElementType()
long[]
getLongArray()
TagReader<LongArrayTag>
getReader()
byte
getType()
int
hashCode()
LongTag
method_10606(int int2, LongTag longTag)
LongTag
remove(int int2)
boolean
setTag(int index, Tag tag)
int
size()
private static long[]
toArray(List<Long> list)
String
toString()
Text
toText(String indent, int depth)
void
write(DataOutput output)
Methods inherited from class net.minecraft.nbt.AbstractListTag
set
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 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:
toString
in interfaceTag
- Overrides:
toString
in classAbstractCollection<LongTag>
-
copy
-
equals
- Specified by:
equals
in interfaceCollection<LongTag>
- Specified by:
equals
in interfaceList<LongTag>
- Overrides:
equals
in classAbstractList<LongTag>
-
hashCode
public int hashCode()- Specified by:
hashCode
in interfaceCollection<LongTag>
- Specified by:
hashCode
in interfaceList<LongTag>
- Overrides:
hashCode
in classAbstractList<LongTag>
-
toText
-
getLongArray
public long[] getLongArray() -
size
public int size()- Specified by:
size
in interfaceCollection<LongTag>
- Specified by:
size
in interfaceList<LongTag>
- Specified by:
size
in classAbstractCollection<LongTag>
-
get
-
method_10606
-
add
-
setTag
- Specified by:
setTag
in classAbstractListTag<LongTag>
-
addTag
- Specified by:
addTag
in classAbstractListTag<LongTag>
-
remove
-
getElementType
public byte getElementType()- Specified by:
getElementType
in classAbstractListTag<LongTag>
-
clear
public void clear()- Specified by:
clear
in interfaceCollection<LongTag>
- Specified by:
clear
in interfaceList<LongTag>
- Overrides:
clear
in classAbstractList<LongTag>
-