类 ShortTag

  • 所有已实现的接口:
    Tag

    public class ShortTag
    extends AbstractNumberTag
    Represents an NBT 16-bit integer.
    Mappings:
    Namespace Name
    official nj
    intermediary net/minecraft/class_2516
    named net/minecraft/nbt/ShortTag
    • 字段详细资料

      • field_33231

        private static final int field_33231
        另请参阅:
        常量字段值
        Mappings:
        Namespace Name Mixin selector
        official b Lnj;b:I
        intermediary field_33231 Lnet/minecraft/class_2516;field_33231:I
        named field_33231 Lnet/minecraft/nbt/ShortTag;field_33231:I
      • TYPE

        public static final NbtType<ShortTag> TYPE
        Mappings:
        Namespace Name Mixin selector
        official a Lnj;a:Lnp;
        intermediary field_21043 Lnet/minecraft/class_2516;field_21043:Lnet/minecraft/class_4614;
        named TYPE Lnet/minecraft/nbt/ShortTag;TYPE:Lnet/minecraft/nbt/NbtType;
      • value

        private final short value
        Mappings:
        Namespace Name Mixin selector
        official c Lnj;c:S
        intermediary field_11588 Lnet/minecraft/class_2516;field_11588:S
        named value Lnet/minecraft/nbt/ShortTag;value:S
    • 构造器详细资料

      • ShortTag

        private ShortTag​(short value)
        Mappings:
        Namespace Name Mixin selector
        official <init> Lnj;<init>(S)V
        intermediary <init> Lnet/minecraft/class_2516;<init>(S)V
        named <init> Lnet/minecraft/nbt/ShortTag;<init>(S)V
    • 方法详细资料

      • of

        public static ShortTag of​(short value)
        Mappings:
        Namespace Name Mixin selector
        official a Lnj;a(S)Lnj;
        intermediary method_23254 Lnet/minecraft/class_2516;method_23254(S)Lnet/minecraft/class_2516;
        named of Lnet/minecraft/nbt/ShortTag;of(S)Lnet/minecraft/nbt/ShortTag;
      • write

        public void write​(DataOutput output)
                   throws IOException
        抛出:
        IOException
        Mappings:
        Namespace Name Mixin selector
        official a Lnn;a(Ljava/io/DataOutput;)V
        intermediary method_10713 Lnet/minecraft/class_2520;method_10713(Ljava/io/DataOutput;)V
        named write Lnet/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 a Lnn;a()B
        intermediary method_10711 Lnet/minecraft/class_2520;method_10711()B
        named getType Lnet/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 b Lnn;b()Lnp;
        intermediary method_23258 Lnet/minecraft/class_2520;method_23258()Lnet/minecraft/class_4614;
        named getNbtType Lnet/minecraft/nbt/Tag;getNbtType()Lnet/minecraft/nbt/NbtType;
      • copy

        public ShortTag copy()
        从接口复制的说明: Tag
        Copies this NBT element.
        返回:
        the copied element
        Mappings:
        Namespace Name Mixin selector
        official d Lnj;d()Lnj;
        intermediary method_10704 Lnet/minecraft/class_2516;method_10704()Lnet/minecraft/class_2516;
        named copy Lnet/minecraft/nbt/ShortTag;copy()Lnet/minecraft/nbt/ShortTag;
      • equals

        public boolean equals​(Object o)
        覆盖:
        equals 在类中 Object
        Mappings:
        Namespace Name Mixin selector
        official equals Lnj;equals(Ljava/lang/Object;)Z
        intermediary equals Lnet/minecraft/class_2516;equals(Ljava/lang/Object;)Z
        named equals Lnet/minecraft/nbt/ShortTag;equals(Ljava/lang/Object;)Z
      • hashCode

        public int hashCode()
        覆盖:
        hashCode 在类中 Object
        Mappings:
        Namespace Name Mixin selector
        official hashCode Lnj;hashCode()I
        intermediary hashCode Lnet/minecraft/class_2516;hashCode()I
        named hashCode Lnet/minecraft/nbt/ShortTag;hashCode()I
      • accept

        public void accept​(NbtElementVisitor visitor)
        Mappings:
        Namespace Name Mixin selector
        official a Lnn;a(Lnr;)V
        intermediary method_32289 Lnet/minecraft/class_2520;method_32289(Lnet/minecraft/class_5627;)V
        named accept Lnet/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 e Lni;e()J
        intermediary method_10699 Lnet/minecraft/class_2514;method_10699()J
        named longValue Lnet/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 f Lni;f()I
        intermediary method_10701 Lnet/minecraft/class_2514;method_10701()I
        named intValue Lnet/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 g Lni;g()S
        intermediary method_10696 Lnet/minecraft/class_2514;method_10696()S
        named shortValue Lnet/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 h Lni;h()B
        intermediary method_10698 Lnet/minecraft/class_2514;method_10698()B
        named byteValue Lnet/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 i Lni;i()D
        intermediary method_10697 Lnet/minecraft/class_2514;method_10697()D
        named doubleValue Lnet/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 j Lni;j()F
        intermediary method_10700 Lnet/minecraft/class_2514;method_10700()F
        named floatValue Lnet/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 k Lni;k()Ljava/lang/Number;
        intermediary method_10702 Lnet/minecraft/class_2514;method_10702()Ljava/lang/Number;
        named numberValue Lnet/minecraft/nbt/AbstractNumberTag;numberValue()Ljava/lang/Number;