类 ShortTag
- java.lang.Object
-
- net.minecraft.nbt.AbstractNumberTag
-
- net.minecraft.nbt.ShortTag
-
- 所有已实现的接口:
Tag
public class ShortTag extends AbstractNumberTag
Represents an NBT 16-bit integer.- Mappings:
Namespace Name official njintermediary net/minecraft/class_2516named net/minecraft/nbt/ShortTag
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 (专用程序包) static classShortTag.Cache
-
字段概要
字段 修饰符和类型 字段 说明 private static intfield_33231static NbtType<ShortTag>TYPEprivate shortvalue-
从接口继承的字段 net.minecraft.nbt.Tag
BYTE_ARRAY_TYPE, BYTE_TYPE, COMPOUND_TYPE, DOUBLE_TYPE, field_33246, field_33247, field_33248, field_33249, field_33264, FLOAT_TYPE, INT_ARRAY_TYPE, INT_TYPE, LIST_TYPE, LONG_ARRAY_TYPE, LONG_TYPE, NULL_TYPE, NUMBER_TYPE, SHORT_TYPE, STRING_TYPE
-
-
构造器概要
构造器 限定符 构造器 说明 privateShortTag(short value)
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 voidaccept(NbtElementVisitor visitor)bytebyteValue()Gets the value as an 8-bit integer.ShortTagcopy()Copies this NBT element.doubledoubleValue()Gets the value as a 64-bit floating-point number.booleanequals(Object o)floatfloatValue()Gets the value as a 32-bit floating-point number.NbtType<ShortTag>getNbtType()Gets the NBT type definition of this NBT element.bytegetType()Gets the type of this NBT element.inthashCode()intintValue()Gets the value as a 32-bit integer.longlongValue()Gets the value as a 64-bit integer.NumbernumberValue()Gets the value as a generic number.static ShortTagof(short value)shortshortValue()Gets the value as a 16-bit integer.voidwrite(DataOutput output)-
从类继承的方法 net.minecraft.nbt.AbstractNumberTag
toString
-
-
-
-
字段详细资料
-
field_33231
private static final int field_33231
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official bLnj;b:Iintermediary field_33231Lnet/minecraft/class_2516;field_33231:Inamed field_33231Lnet/minecraft/nbt/ShortTag;field_33231:I
-
TYPE
public static final NbtType<ShortTag> TYPE
- Mappings:
Namespace Name Mixin selector official aLnj;a:Lnp;intermediary field_21043Lnet/minecraft/class_2516;field_21043:Lnet/minecraft/class_4614;named TYPELnet/minecraft/nbt/ShortTag;TYPE:Lnet/minecraft/nbt/NbtType;
-
value
private final short value
- Mappings:
Namespace Name Mixin selector official cLnj;c:Sintermediary field_11588Lnet/minecraft/class_2516;field_11588:Snamed valueLnet/minecraft/nbt/ShortTag;value:S
-
-
方法详细资料
-
of
public static ShortTag of(short value)
- Mappings:
Namespace Name Mixin selector official aLnj;a(S)Lnj;intermediary method_23254Lnet/minecraft/class_2516;method_23254(S)Lnet/minecraft/class_2516;named ofLnet/minecraft/nbt/ShortTag;of(S)Lnet/minecraft/nbt/ShortTag;
-
write
public 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
-
getType
public 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
public NbtType<ShortTag> 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
public ShortTag copy()
从接口复制的说明:TagCopies this NBT element.- 返回:
- the copied element
- Mappings:
Namespace Name Mixin selector official dLnj;d()Lnj;intermediary method_10704Lnet/minecraft/class_2516;method_10704()Lnet/minecraft/class_2516;named copyLnet/minecraft/nbt/ShortTag;copy()Lnet/minecraft/nbt/ShortTag;
-
equals
public boolean equals(Object o)
-
hashCode
public int hashCode()
-
accept
public 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
-
longValue
public long longValue()
Gets the value as a 64-bit integer.- 指定者:
longValue在类中AbstractNumberTag- 返回:
- the value as a long
- Mappings:
Namespace Name Mixin selector official eLni;e()Jintermediary method_10699Lnet/minecraft/class_2514;method_10699()Jnamed longValueLnet/minecraft/nbt/AbstractNumberTag;longValue()J
-
intValue
public int intValue()
Gets the value as a 32-bit integer.- 指定者:
intValue在类中AbstractNumberTag- 返回:
- the value as an int
- Mappings:
Namespace Name Mixin selector official fLni;f()Iintermediary method_10701Lnet/minecraft/class_2514;method_10701()Inamed intValueLnet/minecraft/nbt/AbstractNumberTag;intValue()I
-
shortValue
public short shortValue()
Gets the value as a 16-bit integer.- 指定者:
shortValue在类中AbstractNumberTag- 返回:
- the value as a short
- Mappings:
Namespace Name Mixin selector official gLni;g()Sintermediary method_10696Lnet/minecraft/class_2514;method_10696()Snamed shortValueLnet/minecraft/nbt/AbstractNumberTag;shortValue()S
-
byteValue
public byte byteValue()
Gets the value as an 8-bit integer.- 指定者:
byteValue在类中AbstractNumberTag- 返回:
- the value as a byte
- Mappings:
Namespace Name Mixin selector official hLni;h()Bintermediary method_10698Lnet/minecraft/class_2514;method_10698()Bnamed byteValueLnet/minecraft/nbt/AbstractNumberTag;byteValue()B
-
doubleValue
public double doubleValue()
Gets the value as a 64-bit floating-point number.- 指定者:
doubleValue在类中AbstractNumberTag- 返回:
- the value as a double
- Mappings:
Namespace Name Mixin selector official iLni;i()Dintermediary method_10697Lnet/minecraft/class_2514;method_10697()Dnamed doubleValueLnet/minecraft/nbt/AbstractNumberTag;doubleValue()D
-
floatValue
public float floatValue()
Gets the value as a 32-bit floating-point number.- 指定者:
floatValue在类中AbstractNumberTag- 返回:
- the value as a float
- Mappings:
Namespace Name Mixin selector official jLni;j()Fintermediary method_10700Lnet/minecraft/class_2514;method_10700()Fnamed floatValueLnet/minecraft/nbt/AbstractNumberTag;floatValue()F
-
numberValue
public Number numberValue()
Gets the value as a generic number.- 指定者:
numberValue在类中AbstractNumberTag- 返回:
- the value as a
Number - Mappings:
Namespace Name Mixin selector official kLni;k()Ljava/lang/Number;intermediary method_10702Lnet/minecraft/class_2514;method_10702()Ljava/lang/Number;named numberValueLnet/minecraft/nbt/AbstractNumberTag;numberValue()Ljava/lang/Number;
-
-