类 ListTag
- 所有已实现的接口:
Iterable<Tag>
,Collection<Tag>
,List<Tag>
,SequencedCollection<Tag>
,Tag
-
字段概要
字段修饰符和类型字段说明private static final int
private byte
从类继承的字段 java.util.AbstractList
modCount
从接口继承的字段 net.minecraft.nbt.Tag
ARRAY_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
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明accept
(StreamTagVisitor p_197487_) void
accept
(TagVisitor p_177990_) void
boolean
void
clear()
copy()
boolean
get
(int p_128781_) getCompound
(int p_128729_) double
getDouble
(int p_128773_) byte
float
getFloat
(int p_128776_) byte
getId()
int
getInt
(int p_128764_) int[]
getIntArray
(int p_128768_) getList
(int p_128745_) long[]
getLongArray
(int p_177992_) short
getShort
(int p_128758_) getString
(int p_128779_) getType()
int
hashCode()
boolean
isEmpty()
remove
(int p_128751_) boolean
int
size()
int
toString()
private boolean
updateType
(Tag p_128739_) private void
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, stream, toArray
从接口继承的方法 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, getAsString
-
字段详细资料
-
SELF_SIZE_IN_BYTES
private static final int SELF_SIZE_IN_BYTES- 另请参阅:
-
TYPE
-
list
-
type
private byte type
-
-
构造器详细资料
-
ListTag
-
ListTag
public ListTag()
-
-
方法详细资料
-
write
- 抛出:
IOException
-
sizeInBytes
public int sizeInBytes() -
getId
public byte getId() -
getType
-
toString
- 指定者:
toString
在接口中Tag
- 覆盖:
toString
在类中AbstractCollection<Tag>
-
updateTypeAfterRemove
private void updateTypeAfterRemove() -
remove
-
isEmpty
public boolean isEmpty()- 指定者:
isEmpty
在接口中Collection<Tag>
- 指定者:
isEmpty
在接口中List<Tag>
- 覆盖:
isEmpty
在类中AbstractCollection<Tag>
-
getCompound
-
getList
-
getShort
public short getShort(int p_128758_) -
getInt
public int getInt(int p_128764_) -
getIntArray
public int[] getIntArray(int p_128768_) -
getLongArray
public long[] getLongArray(int p_177992_) -
getDouble
public double getDouble(int p_128773_) -
getFloat
public float getFloat(int p_128776_) -
getString
-
size
public int size()- 指定者:
size
在接口中Collection<Tag>
- 指定者:
size
在接口中List<Tag>
- 指定者:
size
在类中AbstractCollection<Tag>
-
get
-
set
-
add
-
setTag
- 指定者:
setTag
在类中CollectionTag<Tag>
-
addTag
- 指定者:
addTag
在类中CollectionTag<Tag>
-
updateType
-
copy
-
equals
- 指定者:
equals
在接口中Collection<Tag>
- 指定者:
equals
在接口中List<Tag>
- 覆盖:
equals
在类中AbstractList<Tag>
-
hashCode
public int hashCode()- 指定者:
hashCode
在接口中Collection<Tag>
- 指定者:
hashCode
在接口中List<Tag>
- 覆盖:
hashCode
在类中AbstractList<Tag>
-
accept
-
getElementType
public byte getElementType()- 指定者:
getElementType
在类中CollectionTag<Tag>
-
clear
public void clear()- 指定者:
clear
在接口中Collection<Tag>
- 指定者:
clear
在接口中List<Tag>
- 覆盖:
clear
在类中AbstractList<Tag>
-
accept
-