Class StringNBT

  • All Implemented Interfaces:
    INBT

    public class StringNBT
    extends java.lang.Object
    implements INBT
    • Field Detail

      • EMPTY

        private static final StringNBT EMPTY
      • data

        private final java.lang.String data
    • Constructor Detail

      • StringNBT

        private StringNBT​(java.lang.String p_i1389_1_)
    • Method Detail

      • valueOf

        public static StringNBT valueOf​(java.lang.String p_229705_0_)
      • write

        public void write​(java.io.DataOutput p_74734_1_)
                   throws java.io.IOException
        Specified by:
        write in interface INBT
        Throws:
        java.io.IOException
      • getId

        public byte getId()
        Specified by:
        getId in interface INBT
      • 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
      • getAsString

        public java.lang.String getAsString()
        Specified by:
        getAsString in interface INBT
      • quoteAndEscape

        public static java.lang.String quoteAndEscape​(java.lang.String p_197654_0_)