接口 Tag
-
- 所有已知实现类:
AbstractListTag,AbstractNumberTag,ByteArrayTag,ByteTag,CompoundTag,DoubleTag,EndTag,FloatTag,IntArrayTag,IntTag,ListTag,LongArrayTag,LongTag,ShortTag,StringTag
public interface TagRepresents an NBT element.- Mappings:
Namespace Name official nnintermediary net/minecraft/class_2520named net/minecraft/nbt/Tag
-
-
字段概要
字段 修饰符和类型 字段 说明 static byteBYTE_ARRAY_TYPEThe numeric ID of an NBT byte array value.static byteBYTE_TYPEThe numeric ID of an NBT byte value.static byteCOMPOUND_TYPEThe numeric ID of an NBT compound value.static byteDOUBLE_TYPEThe numeric ID of an NBT double value.static intfield_33246static intfield_33247static intfield_33248static intfield_33249static intfield_33264static byteFLOAT_TYPEThe numeric ID of an NBT float value.static byteINT_ARRAY_TYPEThe numeric ID of an NBT integer array value.static byteINT_TYPEThe numeric ID of an NBT integer value.static byteLIST_TYPEThe numeric ID of an NBT list value.static byteLONG_ARRAY_TYPEThe numeric ID of an NBT long array value.static byteLONG_TYPEThe numeric ID of an NBT long value.static byteNULL_TYPEThe numeric ID of an NBT null value.static byteNUMBER_TYPEA wildcard NBT numeric ID that can be used for checking whether an NBT element is anAbstractNbtNumber.static byteSHORT_TYPEThe numeric ID of an NBT short value.static byteSTRING_TYPEThe numeric ID of an NBT string value.
-
方法概要
所有方法 实例方法 抽象方法 默认方法 修饰符和类型 方法 说明 voidaccept(NbtElementVisitor visitor)default StringasString()Tagcopy()Copies this NBT element.NbtType<?>getNbtType()Gets the NBT type definition of this NBT element.bytegetType()Gets the type of this NBT element.StringtoString()voidwrite(DataOutput output)
-
-
-
字段详细资料
-
field_33246
static final int field_33246
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official dLnn;d:Iintermediary field_33246Lnet/minecraft/class_2520;field_33246:Inamed field_33246Lnet/minecraft/nbt/Tag;field_33246:I
-
field_33247
static final int field_33247
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official eLnn;e:Iintermediary field_33247Lnet/minecraft/class_2520;field_33247:Inamed field_33247Lnet/minecraft/nbt/Tag;field_33247:I
-
field_33248
static final int field_33248
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official fLnn;f:Iintermediary field_33248Lnet/minecraft/class_2520;field_33248:Inamed field_33248Lnet/minecraft/nbt/Tag;field_33248:I
-
field_33249
static final int field_33249
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official gLnn;g:Iintermediary field_33249Lnet/minecraft/class_2520;field_33249:Inamed field_33249Lnet/minecraft/nbt/Tag;field_33249:I
-
NULL_TYPE
static final byte NULL_TYPE
The numeric ID of an NBT null value. Is 0.- 另请参阅:
NbtNull, 常量字段值- Mappings:
Namespace Name Mixin selector official hLnn;h:Bintermediary field_33250Lnet/minecraft/class_2520;field_33250:Bnamed NULL_TYPELnet/minecraft/nbt/Tag;NULL_TYPE:B
-
BYTE_TYPE
static final byte BYTE_TYPE
The numeric ID of an NBT byte value. Is 1.- 另请参阅:
NbtByte, 常量字段值- Mappings:
Namespace Name Mixin selector official iLnn;i:Bintermediary field_33251Lnet/minecraft/class_2520;field_33251:Bnamed BYTE_TYPELnet/minecraft/nbt/Tag;BYTE_TYPE:B
-
SHORT_TYPE
static final byte SHORT_TYPE
The numeric ID of an NBT short value. Is 2.- 另请参阅:
NbtShort, 常量字段值- Mappings:
Namespace Name Mixin selector official jLnn;j:Bintermediary field_33252Lnet/minecraft/class_2520;field_33252:Bnamed SHORT_TYPELnet/minecraft/nbt/Tag;SHORT_TYPE:B
-
INT_TYPE
static final byte INT_TYPE
The numeric ID of an NBT integer value. Is 3.- 另请参阅:
NbtInt, 常量字段值- Mappings:
Namespace Name Mixin selector official kLnn;k:Bintermediary field_33253Lnet/minecraft/class_2520;field_33253:Bnamed INT_TYPELnet/minecraft/nbt/Tag;INT_TYPE:B
-
LONG_TYPE
static final byte LONG_TYPE
The numeric ID of an NBT long value. Is 4.- 另请参阅:
NbtLong, 常量字段值- Mappings:
Namespace Name Mixin selector official lLnn;l:Bintermediary field_33254Lnet/minecraft/class_2520;field_33254:Bnamed LONG_TYPELnet/minecraft/nbt/Tag;LONG_TYPE:B
-
FLOAT_TYPE
static final byte FLOAT_TYPE
The numeric ID of an NBT float value. Is 5.- 另请参阅:
NbtFloat, 常量字段值- Mappings:
Namespace Name Mixin selector official mLnn;m:Bintermediary field_33255Lnet/minecraft/class_2520;field_33255:Bnamed FLOAT_TYPELnet/minecraft/nbt/Tag;FLOAT_TYPE:B
-
DOUBLE_TYPE
static final byte DOUBLE_TYPE
The numeric ID of an NBT double value. Is 6.- 另请参阅:
NbtDouble, 常量字段值- Mappings:
Namespace Name Mixin selector official nLnn;n:Bintermediary field_33256Lnet/minecraft/class_2520;field_33256:Bnamed DOUBLE_TYPELnet/minecraft/nbt/Tag;DOUBLE_TYPE:B
-
BYTE_ARRAY_TYPE
static final byte BYTE_ARRAY_TYPE
The numeric ID of an NBT byte array value. Is 7.- 另请参阅:
NbtByteArray, 常量字段值- Mappings:
Namespace Name Mixin selector official oLnn;o:Bintermediary field_33257Lnet/minecraft/class_2520;field_33257:Bnamed BYTE_ARRAY_TYPELnet/minecraft/nbt/Tag;BYTE_ARRAY_TYPE:B
-
STRING_TYPE
static final byte STRING_TYPE
The numeric ID of an NBT string value. Is 8.- 另请参阅:
NbtString, 常量字段值- Mappings:
Namespace Name Mixin selector official pLnn;p:Bintermediary field_33258Lnet/minecraft/class_2520;field_33258:Bnamed STRING_TYPELnet/minecraft/nbt/Tag;STRING_TYPE:B
-
LIST_TYPE
static final byte LIST_TYPE
The numeric ID of an NBT list value. Is 9.- 另请参阅:
NbtList, 常量字段值- Mappings:
Namespace Name Mixin selector official qLnn;q:Bintermediary field_33259Lnet/minecraft/class_2520;field_33259:Bnamed LIST_TYPELnet/minecraft/nbt/Tag;LIST_TYPE:B
-
COMPOUND_TYPE
static final byte COMPOUND_TYPE
The numeric ID of an NBT compound value. Is 10.- 另请参阅:
NbtCompound, 常量字段值- Mappings:
Namespace Name Mixin selector official rLnn;r:Bintermediary field_33260Lnet/minecraft/class_2520;field_33260:Bnamed COMPOUND_TYPELnet/minecraft/nbt/Tag;COMPOUND_TYPE:B
-
INT_ARRAY_TYPE
static final byte INT_ARRAY_TYPE
The numeric ID of an NBT integer array value. Is 11.- 另请参阅:
NbtIntArray, 常量字段值- Mappings:
Namespace Name Mixin selector official sLnn;s:Bintermediary field_33261Lnet/minecraft/class_2520;field_33261:Bnamed INT_ARRAY_TYPELnet/minecraft/nbt/Tag;INT_ARRAY_TYPE:B
-
LONG_ARRAY_TYPE
static final byte LONG_ARRAY_TYPE
The numeric ID of an NBT long array value. Is 12.- 另请参阅:
NbtLongArray, 常量字段值- Mappings:
Namespace Name Mixin selector official tLnn;t:Bintermediary field_33262Lnet/minecraft/class_2520;field_33262:Bnamed LONG_ARRAY_TYPELnet/minecraft/nbt/Tag;LONG_ARRAY_TYPE:B
-
NUMBER_TYPE
static final byte NUMBER_TYPE
A wildcard NBT numeric ID that can be used for checking whether an NBT element is anAbstractNbtNumber. Is 99.- 另请参阅:
NbtCompound#getType(String),NbtCompound#contains(String, int), 常量字段值- Mappings:
Namespace Name Mixin selector official uLnn;u:Bintermediary field_33263Lnet/minecraft/class_2520;field_33263:Bnamed NUMBER_TYPELnet/minecraft/nbt/Tag;NUMBER_TYPE:B
-
field_33264
static final int field_33264
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official vLnn;v:Iintermediary field_33264Lnet/minecraft/class_2520;field_33264:Inamed field_33264Lnet/minecraft/nbt/Tag;field_33264:I
-
-
方法详细资料
-
write
void write(DataOutput output) throws IOException
- 抛出:
IOException- Mappings:
Namespace Name Mixin selector official aLnn;a(Ljava/io/DataOutput;)Vintermediary method_10713Lnet/minecraft/class_2520;method_10713(Ljava/io/DataOutput;)Vnamed writeLnet/minecraft/nbt/Tag;write(Ljava/io/DataOutput;)V
-
toString
String toString()
-
getType
byte getType()
Gets the type of this NBT element.- 返回:
- the type
- Mappings:
Namespace Name Mixin selector official aLnn;a()Bintermediary method_10711Lnet/minecraft/class_2520;method_10711()Bnamed getTypeLnet/minecraft/nbt/Tag;getType()B
-
getNbtType
NbtType<?> getNbtType()
Gets the NBT type definition of this NBT element.- 返回:
- the element type definition
- Mappings:
Namespace Name Mixin selector official bLnn;b()Lnp;intermediary method_23258Lnet/minecraft/class_2520;method_23258()Lnet/minecraft/class_4614;named getNbtTypeLnet/minecraft/nbt/Tag;getNbtType()Lnet/minecraft/nbt/NbtType;
-
copy
Tag copy()
Copies this NBT element.- 返回:
- the copied element
- Mappings:
Namespace Name Mixin selector official cLnn;c()Lnn;intermediary method_10707Lnet/minecraft/class_2520;method_10707()Lnet/minecraft/class_2520;named copyLnet/minecraft/nbt/Tag;copy()Lnet/minecraft/nbt/Tag;
-
asString
default String asString()
- Mappings:
Namespace Name Mixin selector official e_Lnn;e_()Ljava/lang/String;intermediary method_10714Lnet/minecraft/class_2520;method_10714()Ljava/lang/String;named asStringLnet/minecraft/nbt/Tag;asString()Ljava/lang/String;
-
accept
void accept(NbtElementVisitor visitor)
- Mappings:
Namespace Name Mixin selector official aLnn;a(Lnr;)Vintermediary method_32289Lnet/minecraft/class_2520;method_32289(Lnet/minecraft/class_5627;)Vnamed acceptLnet/minecraft/nbt/Tag;accept(Lnet/minecraft/nbt/visitor/NbtElementVisitor;)V
-
-