Class ITextComponent.Serializer

    • Field Detail

      • GSON

        private static final com.google.gson.Gson GSON
      • JSON_READER_POS

        private static final java.lang.reflect.Field JSON_READER_POS
      • JSON_READER_LINESTART

        private static final java.lang.reflect.Field JSON_READER_LINESTART
    • Constructor Detail

      • Serializer

        public Serializer()
    • Method Detail

      • deserialize

        public IFormattableTextComponent deserialize​(com.google.gson.JsonElement p_deserialize_1_,
                                                     java.lang.reflect.Type p_deserialize_2_,
                                                     com.google.gson.JsonDeserializationContext p_deserialize_3_)
                                              throws com.google.gson.JsonParseException
        Specified by:
        deserialize in interface com.google.gson.JsonDeserializer<IFormattableTextComponent>
        Throws:
        com.google.gson.JsonParseException
      • serializeStyle

        private void serializeStyle​(Style p_150695_1_,
                                    com.google.gson.JsonObject p_150695_2_,
                                    com.google.gson.JsonSerializationContext p_150695_3_)
      • serialize

        public com.google.gson.JsonElement serialize​(ITextComponent p_serialize_1_,
                                                     java.lang.reflect.Type p_serialize_2_,
                                                     com.google.gson.JsonSerializationContext p_serialize_3_)
        Specified by:
        serialize in interface com.google.gson.JsonSerializer<ITextComponent>
      • toJson

        public static java.lang.String toJson​(ITextComponent p_150696_0_)
      • toJsonTree

        public static com.google.gson.JsonElement toJsonTree​(ITextComponent p_200528_0_)
      • getPos

        private static int getPos​(com.google.gson.stream.JsonReader p_197673_0_)