Class NumericTag

java.lang.Object
net.minecraft.nbt.NumericTag
All Implemented Interfaces:
Tag
Direct Known Subclasses:
ByteTag, DoubleTag, FloatTag, IntTag, LongTag, ShortTag

public abstract class NumericTag extends Object implements Tag
  • Constructor Details

    • NumericTag

      protected NumericTag()
  • Method Details

    • getAsLong

      public abstract long getAsLong()
    • getAsInt

      public abstract int getAsInt()
    • getAsShort

      public abstract short getAsShort()
    • getAsByte

      public abstract byte getAsByte()
    • getAsDouble

      public abstract double getAsDouble()
    • getAsFloat

      public abstract float getAsFloat()
    • getAsNumber

      public abstract Number getAsNumber()
    • toString

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