Class NbtDouble


public class NbtDouble extends AbstractNbtNumber
Mappings:
Namespace Name
official fz
intermediary net/minecraft/class_348
named net/minecraft/nbt/NbtDouble
  • Field Details

    • value

      private double value
      Mappings:
      Namespace Name Mixin selector
      official b Lfz;b:D
      intermediary field_996 Lnet/minecraft/class_348;field_996:D
      named value Lnet/minecraft/nbt/NbtDouble;value:D
  • Constructor Details

    • NbtDouble

      NbtDouble()
    • NbtDouble

      public NbtDouble(double value)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lfz;<init>(D)V
      intermediary <init> Lnet/minecraft/class_348;<init>(D)V
      named <init> Lnet/minecraft/nbt/NbtDouble;<init>(D)V
  • Method Details

    • write

      void write(DataOutput output) throws IOException
      Specified by:
      write in class NbtElement
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official a Lgn;a(Ljava/io/DataOutput;)V
      intermediary method_1650 Lnet/minecraft/class_605;method_1650(Ljava/io/DataOutput;)V
      named write Lnet/minecraft/nbt/NbtElement;write(Ljava/io/DataOutput;)V
    • read

      void read(DataInput input, int depth, PositionTracker tracker) throws IOException
      Specified by:
      read in class NbtElement
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official a Lgn;a(Ljava/io/DataInput;ILgh;)V
      intermediary method_1649 Lnet/minecraft/class_605;method_1649(Ljava/io/DataInput;ILnet/minecraft/class_1944;)V
      named read Lnet/minecraft/nbt/NbtElement;read(Ljava/io/DataInput;ILnet/minecraft/nbt/PositionTracker;)V
    • getType

      public byte getType()
      Specified by:
      getType in class NbtElement
      Mappings:
      Namespace Name Mixin selector
      official a Lgn;a()B
      intermediary method_1645 Lnet/minecraft/class_605;method_1645()B
      named getType Lnet/minecraft/nbt/NbtElement;getType()B
    • toString

      public String toString()
      Specified by:
      toString in class NbtElement
      Mappings:
      Namespace Name Mixin selector
      official toString Lgn;toString()Ljava/lang/String;
      intermediary toString Lnet/minecraft/class_605;toString()Ljava/lang/String;
      named toString Lnet/minecraft/nbt/NbtElement;toString()Ljava/lang/String;
    • copy

      public NbtDouble copy()
      Specified by:
      copy in class NbtElement
      Mappings:
      Namespace Name Mixin selector
      official c Lfz;c()Lfz;
      intermediary method_13471 Lnet/minecraft/class_348;method_13471()Lnet/minecraft/class_348;
      named copy Lnet/minecraft/nbt/NbtDouble;copy()Lnet/minecraft/nbt/NbtDouble;
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class NbtElement
      Mappings:
      Namespace Name Mixin selector
      official equals Lgn;equals(Ljava/lang/Object;)Z
      intermediary equals Lnet/minecraft/class_605;equals(Ljava/lang/Object;)Z
      named equals Lnet/minecraft/nbt/NbtElement;equals(Ljava/lang/Object;)Z
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class NbtElement
      Mappings:
      Namespace Name Mixin selector
      official hashCode Lgn;hashCode()I
      intermediary hashCode Lnet/minecraft/class_605;hashCode()I
      named hashCode Lnet/minecraft/nbt/NbtElement;hashCode()I
    • longValue

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

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

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

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

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

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