类 AbstractNumberTag

  • 所有已实现的接口:
    Tag
    直接已知子类:
    ByteTag, DoubleTag, FloatTag, IntTag, LongTag, ShortTag

    public abstract class AbstractNumberTag
    extends Object
    implements Tag
    Represents an NBT number.

    The type NUMBER_TYPE can be used to check for the existence of any numeric element in a NBT compound object.

    Mappings:
    Namespace Name
    official ni
    intermediary net/minecraft/class_2514
    named net/minecraft/nbt/AbstractNumberTag
    • 构造器详细资料

      • AbstractNumberTag

        protected AbstractNumberTag()
    • 方法详细资料

      • longValue

        public abstract long longValue()
        Gets the value as a 64-bit integer.
        返回:
        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 abstract int intValue()
        Gets the value as a 32-bit integer.
        返回:
        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 abstract short shortValue()
        Gets the value as a 16-bit integer.
        返回:
        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 abstract byte byteValue()
        Gets the value as an 8-bit integer.
        返回:
        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 abstract double doubleValue()
        Gets the value as a 64-bit floating-point number.
        返回:
        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 abstract float floatValue()
        Gets the value as a 32-bit floating-point number.
        返回:
        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 abstract Number numberValue()
        Gets the value as a generic number.
        返回:
        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;
      • toString

        public String toString()
        指定者:
        toString 在接口中 Tag
        覆盖:
        toString 在类中 Object
        Mappings:
        Namespace Name Mixin selector
        official toString Lnn;toString()Ljava/lang/String;
        intermediary toString Lnet/minecraft/class_2520;toString()Ljava/lang/String;
        named toString Lnet/minecraft/nbt/Tag;toString()Ljava/lang/String;