Class ShortNBT

  • All Implemented Interfaces:
    INBT

    public class ShortNBT
    extends NumberNBT
    • Field Detail

      • data

        private final short data
    • Constructor Detail

      • ShortNBT

        private ShortNBT​(short p_i45135_1_)
    • Method Detail

      • valueOf

        public static ShortNBT valueOf​(short p_229701_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