Class Style.Serializer

  • All Implemented Interfaces:
    com.google.gson.JsonDeserializer<Style>, com.google.gson.JsonSerializer<Style>
    Enclosing class:
    Style

    public static class Style.Serializer
    extends java.lang.Object
    implements com.google.gson.JsonDeserializer<Style>, com.google.gson.JsonSerializer<Style>
    • Constructor Summary

      Constructors 
      Constructor Description
      Serializer()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Style deserialize​(com.google.gson.JsonElement p_deserialize_1_, java.lang.reflect.Type p_deserialize_2_, com.google.gson.JsonDeserializationContext p_deserialize_3_)  
      private static ClickEvent getClickEvent​(com.google.gson.JsonObject p_240735_0_)  
      private static ResourceLocation getFont​(com.google.gson.JsonObject p_240732_0_)  
      private static HoverEvent getHoverEvent​(com.google.gson.JsonObject p_240734_0_)  
      private static java.lang.String getInsertion​(com.google.gson.JsonObject p_240736_0_)  
      private static java.lang.Boolean getOptionalFlag​(com.google.gson.JsonObject p_240733_0_, java.lang.String p_240733_1_)  
      private static Color getTextColor​(com.google.gson.JsonObject p_240737_0_)  
      com.google.gson.JsonElement serialize​(Style p_serialize_1_, java.lang.reflect.Type p_serialize_2_, com.google.gson.JsonSerializationContext p_serialize_3_)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Serializer

        public Serializer()
    • Method Detail

      • deserialize

        @Nullable
        public Style 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<Style>
        Throws:
        com.google.gson.JsonParseException
      • getFont

        @Nullable
        private static ResourceLocation getFont​(com.google.gson.JsonObject p_240732_0_)
      • getHoverEvent

        @Nullable
        private static HoverEvent getHoverEvent​(com.google.gson.JsonObject p_240734_0_)
      • getClickEvent

        @Nullable
        private static ClickEvent getClickEvent​(com.google.gson.JsonObject p_240735_0_)
      • getInsertion

        @Nullable
        private static java.lang.String getInsertion​(com.google.gson.JsonObject p_240736_0_)
      • getTextColor

        @Nullable
        private static Color getTextColor​(com.google.gson.JsonObject p_240737_0_)
      • getOptionalFlag

        @Nullable
        private static java.lang.Boolean getOptionalFlag​(com.google.gson.JsonObject p_240733_0_,
                                                         java.lang.String p_240733_1_)
      • serialize

        @Nullable
        public com.google.gson.JsonElement serialize​(Style 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<Style>