类 ByteTag

  • 所有已实现的接口:
    Tag

    public class ByteTag
    extends AbstractNumberTag
    Represents an NBT byte.
    Mappings:
    Namespace Name
    official mt
    intermediary net/minecraft/class_2481
    named net/minecraft/nbt/ByteTag
    • 字段详细资料

      • field_33189

        private static final int field_33189
        另请参阅:
        常量字段值
        Mappings:
        Namespace Name Mixin selector
        official w Lmt;w:I
        intermediary field_33189 Lnet/minecraft/class_2481;field_33189:I
        named field_33189 Lnet/minecraft/nbt/ByteTag;field_33189:I
      • TYPE

        public static final NbtType<ByteTag> TYPE
        Mappings:
        Namespace Name Mixin selector
        official a Lmt;a:Lnp;
        intermediary field_21025 Lnet/minecraft/class_2481;field_21025:Lnet/minecraft/class_4614;
        named TYPE Lnet/minecraft/nbt/ByteTag;TYPE:Lnet/minecraft/nbt/NbtType;
      • ZERO

        public static final ByteTag ZERO
        Mappings:
        Namespace Name Mixin selector
        official b Lmt;b:Lmt;
        intermediary field_21026 Lnet/minecraft/class_2481;field_21026:Lnet/minecraft/class_2481;
        named ZERO Lnet/minecraft/nbt/ByteTag;ZERO:Lnet/minecraft/nbt/ByteTag;
      • ONE

        public static final ByteTag ONE
        Mappings:
        Namespace Name Mixin selector
        official c Lmt;c:Lmt;
        intermediary field_21027 Lnet/minecraft/class_2481;field_21027:Lnet/minecraft/class_2481;
        named ONE Lnet/minecraft/nbt/ByteTag;ONE:Lnet/minecraft/nbt/ByteTag;
      • value

        private final byte value
        Mappings:
        Namespace Name Mixin selector
        official x Lmt;x:B
        intermediary field_11498 Lnet/minecraft/class_2481;field_11498:B
        named value Lnet/minecraft/nbt/ByteTag;value:B
    • 构造器详细资料

      • ByteTag

        private ByteTag​(byte value)
        Mappings:
        Namespace Name Mixin selector
        official <init> Lmt;<init>(B)V
        intermediary <init> Lnet/minecraft/class_2481;<init>(B)V
        named <init> Lnet/minecraft/nbt/ByteTag;<init>(B)V
    • 方法详细资料

      • of

        public static ByteTag of​(byte value)
        Mappings:
        Namespace Name Mixin selector
        official a Lmt;a(B)Lmt;
        intermediary method_23233 Lnet/minecraft/class_2481;method_23233(B)Lnet/minecraft/class_2481;
        named of Lnet/minecraft/nbt/ByteTag;of(B)Lnet/minecraft/nbt/ByteTag;
      • of

        public static ByteTag of​(boolean value)
        Mappings:
        Namespace Name Mixin selector
        official a Lmt;a(Z)Lmt;
        intermediary method_23234 Lnet/minecraft/class_2481;method_23234(Z)Lnet/minecraft/class_2481;
        named of Lnet/minecraft/nbt/ByteTag;of(Z)Lnet/minecraft/nbt/ByteTag;
      • 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<ByteTag> 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 ByteTag copy()
        从接口复制的说明: Tag
        Copies this NBT element.
        返回:
        the copied element
        Mappings:
        Namespace Name Mixin selector
        official d Lmt;d()Lmt;
        intermediary method_10530 Lnet/minecraft/class_2481;method_10530()Lnet/minecraft/class_2481;
        named copy Lnet/minecraft/nbt/ByteTag;copy()Lnet/minecraft/nbt/ByteTag;
      • equals

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

        public int hashCode()
        覆盖:
        hashCode 在类中 Object
        Mappings:
        Namespace Name Mixin selector
        official hashCode Lmt;hashCode()I
        intermediary hashCode Lnet/minecraft/class_2481;hashCode()I
        named hashCode Lnet/minecraft/nbt/ByteTag;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;