类 DoubleTag

  • 所有已实现的接口:
    Tag

    public class DoubleTag
    extends AbstractNumberTag
    Represents an NBT 64-bit floating-point number.
    Mappings:
    Namespace Name
    official mw
    intermediary net/minecraft/class_2489
    named net/minecraft/nbt/DoubleTag
    • 字段详细资料

      • field_33192

        private static final int field_33192
        另请参阅:
        常量字段值
        Mappings:
        Namespace Name Mixin selector
        official c Lmw;c:I
        intermediary field_33192 Lnet/minecraft/class_2489;field_33192:I
        named field_33192 Lnet/minecraft/nbt/DoubleTag;field_33192:I
      • ZERO

        public static final DoubleTag ZERO
        Mappings:
        Namespace Name Mixin selector
        official a Lmw;a:Lmw;
        intermediary field_21030 Lnet/minecraft/class_2489;field_21030:Lnet/minecraft/class_2489;
        named ZERO Lnet/minecraft/nbt/DoubleTag;ZERO:Lnet/minecraft/nbt/DoubleTag;
      • TYPE

        public static final NbtType<DoubleTag> TYPE
        Mappings:
        Namespace Name Mixin selector
        official b Lmw;b:Lnp;
        intermediary field_21031 Lnet/minecraft/class_2489;field_21031:Lnet/minecraft/class_4614;
        named TYPE Lnet/minecraft/nbt/DoubleTag;TYPE:Lnet/minecraft/nbt/NbtType;
      • value

        private final double value
        Mappings:
        Namespace Name Mixin selector
        official w Lmw;w:D
        intermediary field_11520 Lnet/minecraft/class_2489;field_11520:D
        named value Lnet/minecraft/nbt/DoubleTag;value:D
    • 构造器详细资料

      • DoubleTag

        private DoubleTag​(double value)
        Mappings:
        Namespace Name Mixin selector
        official <init> Lmw;<init>(D)V
        intermediary <init> Lnet/minecraft/class_2489;<init>(D)V
        named <init> Lnet/minecraft/nbt/DoubleTag;<init>(D)V
    • 方法详细资料

      • of

        public static DoubleTag of​(double value)
        Mappings:
        Namespace Name Mixin selector
        official a Lmw;a(D)Lmw;
        intermediary method_23241 Lnet/minecraft/class_2489;method_23241(D)Lnet/minecraft/class_2489;
        named of Lnet/minecraft/nbt/DoubleTag;of(D)Lnet/minecraft/nbt/DoubleTag;
      • 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<DoubleTag> 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 DoubleTag copy()
        从接口复制的说明: Tag
        Copies this NBT element.
        返回:
        the copied element
        Mappings:
        Namespace Name Mixin selector
        official d Lmw;d()Lmw;
        intermediary method_10585 Lnet/minecraft/class_2489;method_10585()Lnet/minecraft/class_2489;
        named copy Lnet/minecraft/nbt/DoubleTag;copy()Lnet/minecraft/nbt/DoubleTag;
      • equals

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

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