Class AbstractNbtNumber

java.lang.Object
net.minecraft.nbt.NbtElement
net.minecraft.nbt.AbstractNbtNumber
Direct Known Subclasses:
NbtByte, NbtDouble, NbtFloat, NbtInt, NbtLong, NbtShort

abstract class AbstractNbtNumber extends NbtElement
Mappings:
Namespace Name
official ef
intermediary net/minecraft/class_1947
named net/minecraft/nbt/AbstractNbtNumber
  • Constructor Details

    • AbstractNbtNumber

      protected AbstractNbtNumber()
  • Method Details

    • longValue

      public abstract long longValue()
      Gets the value as a 64-bit integer.
      Returns:
      the value as a long
      Mappings:
      Namespace Name Mixin selector
      official d Lef;d()J
      intermediary method_7371 Lnet/minecraft/class_1947;method_7371()J
      named longValue Lnet/minecraft/nbt/AbstractNbtNumber;longValue()J
    • intValue

      public abstract int intValue()
      Gets the value as a 32-bit integer.
      Returns:
      the value as an int
      Mappings:
      Namespace Name Mixin selector
      official e Lef;e()I
      intermediary method_7372 Lnet/minecraft/class_1947;method_7372()I
      named intValue Lnet/minecraft/nbt/AbstractNbtNumber;intValue()I
    • shortValue

      public abstract short shortValue()
      Gets the value as a 16-bit integer.
      Returns:
      the value as a short
      Mappings:
      Namespace Name Mixin selector
      official f Lef;f()S
      intermediary method_7373 Lnet/minecraft/class_1947;method_7373()S
      named shortValue Lnet/minecraft/nbt/AbstractNbtNumber;shortValue()S
    • byteValue

      public abstract byte byteValue()
      Gets the value as an 8-bit integer.
      Returns:
      the value as a byte
      Mappings:
      Namespace Name Mixin selector
      official g Lef;g()B
      intermediary method_7374 Lnet/minecraft/class_1947;method_7374()B
      named byteValue Lnet/minecraft/nbt/AbstractNbtNumber;byteValue()B
    • doubleValue

      public abstract double doubleValue()
      Gets the value as a 64-bit floating-point number.
      Returns:
      the value as a double
      Mappings:
      Namespace Name Mixin selector
      official h Lef;h()D
      intermediary method_7375 Lnet/minecraft/class_1947;method_7375()D
      named doubleValue Lnet/minecraft/nbt/AbstractNbtNumber;doubleValue()D
    • floatValue

      public abstract float floatValue()
      Gets the value as a 32-bit floating-point number.
      Returns:
      the value as a float
      Mappings:
      Namespace Name Mixin selector
      official i Lef;i()F
      intermediary method_7376 Lnet/minecraft/class_1947;method_7376()F
      named floatValue Lnet/minecraft/nbt/AbstractNbtNumber;floatValue()F