Class LongNBT

  • All Implemented Interfaces:
    INBT

    public class LongNBT
    extends NumberNBT
    • Field Detail

      • data

        private final long data
    • Constructor Detail

      • LongNBT

        private LongNBT​(long p_i45134_1_)
    • Method Detail

      • valueOf

        public static LongNBT valueOf​(long p_229698_0_)
      • write

        public void write​(java.io.DataOutput p_74734_1_)
                   throws java.io.IOException
        Throws:
        java.io.IOException
      • getId

        public byte getId()
      • toString

        public java.lang.String toString()
        Specified by:
        toString in interface INBT
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object p_equals_1_)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • getPrettyDisplay

        public ITextComponent getPrettyDisplay​(java.lang.String p_199850_1_,
                                               int p_199850_2_)
      • getAsNumber

        public java.lang.Number getAsNumber()
        Specified by:
        getAsNumber in class NumberNBT