Class AbstractNbtNumber

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

public abstract class AbstractNbtNumber extends Object implements NbtElement
Mappings:
Namespace Name
named net/minecraft/nbt/AbstractNbtNumber
intermediary net/minecraft/class_2514
official uq
  • 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
      named longValue Lnet/minecraft/nbt/AbstractNbtNumber;longValue()J
      intermediary method_10699 Lnet/minecraft/class_2514;method_10699()J
      official f Luq;f()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
      named intValue Lnet/minecraft/nbt/AbstractNbtNumber;intValue()I
      intermediary method_10701 Lnet/minecraft/class_2514;method_10701()I
      official g Luq;g()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
      named shortValue Lnet/minecraft/nbt/AbstractNbtNumber;shortValue()S
      intermediary method_10696 Lnet/minecraft/class_2514;method_10696()S
      official h Luq;h()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
      named byteValue Lnet/minecraft/nbt/AbstractNbtNumber;byteValue()B
      intermediary method_10698 Lnet/minecraft/class_2514;method_10698()B
      official i Luq;i()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
      named doubleValue Lnet/minecraft/nbt/AbstractNbtNumber;doubleValue()D
      intermediary method_10697 Lnet/minecraft/class_2514;method_10697()D
      official j Luq;j()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
      named floatValue Lnet/minecraft/nbt/AbstractNbtNumber;floatValue()F
      intermediary method_10700 Lnet/minecraft/class_2514;method_10700()F
      official k Luq;k()F
    • numberValue

      public abstract Number numberValue()
      Gets the value as a generic number.
      Returns:
      the value as a Number
      Mappings:
      Namespace Name Mixin selector
      named numberValue Lnet/minecraft/nbt/AbstractNbtNumber;numberValue()Ljava/lang/Number;
      intermediary method_10702 Lnet/minecraft/class_2514;method_10702()Ljava/lang/Number;
      official l Luq;l()Ljava/lang/Number;
    • toString

      public String toString()
      Specified by:
      toString in interface NbtElement
      Overrides:
      toString in class Object