类 ListTag
- 所有已实现的接口:
Iterable<Tag>
,Collection<Tag>
,List<Tag>
,SequencedCollection<Tag>
,CollectionTag
,Tag
-
字段概要
字段从类继承的字段 java.util.AbstractList
modCount
从接口继承的字段 net.minecraft.nbt.Tag
ARRAY_HEADER, MAX_DEPTH, OBJECT_HEADER, OBJECT_REFERENCE, STRING_SIZE, 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
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明accept
(StreamTagVisitor p_197487_) void
accept
(TagVisitor p_177990_) void
void
addAndUnwrap
(Tag p_410164_) boolean
asList()
void
clear()
copy()
boolean
get
(int p_128781_) getCompound
(int p_128729_) getCompoundOrEmpty
(int p_410248_) getDouble
(int p_128773_) double
getDoubleOr
(int p_410727_, double p_410555_) getFloat
(int p_128776_) float
getFloatOr
(int p_410012_, float p_409704_) byte
getId()
getInt
(int p_128764_) Optional
<int[]> getIntArray
(int p_128768_) int
getIntOr
(int p_409647_, int p_410162_) getList
(int p_128745_) getListOrEmpty
(int p_410667_) Optional
<long[]> getLongArray
(int p_177992_) private Tag
getNullable
(int p_410208_) getOptional
(int p_410804_) getShort
(int p_128758_) short
getShortOr
(int p_410773_, short p_410394_) getString
(int p_128779_) getStringOr
(int p_410678_, String p_409906_) getType()
int
hashCode()
(专用程序包) byte
boolean
isEmpty()
private static boolean
isWrapper
(CompoundTag p_410439_) remove
(int p_128751_) boolean
int
size()
int
stream()
toString()
private static Tag
tryUnwrap
(CompoundTag p_410108_) private static CompoundTag
wrapElement
(Tag p_410663_) private static Tag
wrapIfNeeded
(byte p_410100_, Tag p_409984_) void
write
(DataOutput p_128734_) 从类继承的方法 java.util.AbstractList
add, addAll, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, subList
从类继承的方法 java.util.AbstractCollection
addAll, contains, containsAll, remove, removeAll, retainAll, toArray, toArray
从接口继承的方法 java.util.Collection
parallelStream, removeIf, toArray
从接口继承的方法 net.minecraft.nbt.CollectionTag
iterator
从接口继承的方法 java.util.List
addAll, addFirst, addLast, contains, containsAll, getFirst, getLast, remove, removeAll, removeFirst, removeLast, replaceAll, retainAll, reversed, sort, spliterator, toArray, toArray
从接口继承的方法 net.minecraft.nbt.Tag
acceptAsRoot, asBoolean, asByte, asByteArray, asCompound, asDouble, asFloat, asInt, asIntArray, asLong, asLongArray, asNumber, asShort, asString
-
字段详细资料
-
WRAPPER_MARKER
- 另请参阅:
-
SELF_SIZE_IN_BYTES
private static final int SELF_SIZE_IN_BYTES- 另请参阅:
-
TYPE
-
list
-
-
构造器详细资料
-
ListTag
public ListTag() -
ListTag
-
-
方法详细资料
-
tryUnwrap
-
isWrapper
-
wrapIfNeeded
-
wrapElement
-
write
- 指定者:
write
在接口中Tag
- 抛出:
IOException
-
identifyRawElementType
byte identifyRawElementType() -
addAndUnwrap
-
sizeInBytes
public int sizeInBytes()- 指定者:
sizeInBytes
在接口中Tag
-
getId
public byte getId() -
getType
-
toString
- 指定者:
toString
在接口中Tag
- 覆盖:
toString
在类中AbstractCollection<Tag>
-
remove
- 指定者:
remove
在接口中CollectionTag
- 指定者:
remove
在接口中List<Tag>
- 覆盖:
remove
在类中AbstractList<Tag>
-
isEmpty
public boolean isEmpty()- 指定者:
isEmpty
在接口中Collection<Tag>
- 指定者:
isEmpty
在接口中CollectionTag
- 指定者:
isEmpty
在接口中List<Tag>
- 覆盖:
isEmpty
在类中AbstractCollection<Tag>
-
getCompound
-
getCompoundOrEmpty
-
getList
-
getListOrEmpty
-
getShort
-
getShortOr
public short getShortOr(int p_410773_, short p_410394_) -
getInt
-
getIntOr
public int getIntOr(int p_409647_, int p_410162_) -
getIntArray
-
getLongArray
-
getDouble
-
getDoubleOr
public double getDoubleOr(int p_410727_, double p_410555_) -
getFloat
-
getFloatOr
public float getFloatOr(int p_410012_, float p_409704_) -
getString
-
getStringOr
-
getNullable
-
getOptional
-
size
public int size()- 指定者:
size
在接口中Collection<Tag>
- 指定者:
size
在接口中CollectionTag
- 指定者:
size
在接口中List<Tag>
- 指定者:
size
在类中AbstractCollection<Tag>
-
get
- 指定者:
get
在接口中CollectionTag
- 指定者:
get
在接口中List<Tag>
- 指定者:
get
在类中AbstractList<Tag>
-
set
-
add
-
setTag
- 指定者:
setTag
在接口中CollectionTag
-
addTag
- 指定者:
addTag
在接口中CollectionTag
-
copy
-
asList
-
equals
- 指定者:
equals
在接口中Collection<Tag>
- 指定者:
equals
在接口中List<Tag>
- 覆盖:
equals
在类中AbstractList<Tag>
-
hashCode
public int hashCode()- 指定者:
hashCode
在接口中Collection<Tag>
- 指定者:
hashCode
在接口中List<Tag>
- 覆盖:
hashCode
在类中AbstractList<Tag>
-
stream
- 指定者:
stream
在接口中Collection<Tag>
- 指定者:
stream
在接口中CollectionTag
-
compoundStream
-
accept
-
clear
public void clear()- 指定者:
clear
在接口中Collection<Tag>
- 指定者:
clear
在接口中CollectionTag
- 指定者:
clear
在接口中List<Tag>
- 覆盖:
clear
在类中AbstractList<Tag>
-
accept
-