Class Style.Serializer

java.lang.Object
net.minecraft.text.Style.Serializer
All Implemented Interfaces:
JsonDeserializer<Style>, JsonSerializer<Style>
Enclosing class:
Style

public static class Style.Serializer extends Object implements JsonDeserializer<Style>, JsonSerializer<Style>
A JSON serializer for Style.
Mappings:
Namespace Name
official qj$a
intermediary net/minecraft/class_2583$class_2584
named net/minecraft/text/Style$Serializer
  • Constructor Details

    • Serializer

      public Serializer()
  • Method Details

    • deserialize

      @Nullable public @Nullable Style deserialize(JsonElement jsonElement, Type type, JsonDeserializationContext jsonDeserializationContext) throws JsonParseException
      Specified by:
      deserialize in interface JsonDeserializer<Style>
      Throws:
      JsonParseException
      Mappings:
      Namespace Name Mixin selector
      official a Lqj$a;a(Lcom/google/gson/JsonElement;Ljava/lang/reflect/Type;Lcom/google/gson/JsonDeserializationContext;)Lqj;
      intermediary method_10991 Lnet/minecraft/class_2583$class_2584;method_10991(Lcom/google/gson/JsonElement;Ljava/lang/reflect/Type;Lcom/google/gson/JsonDeserializationContext;)Lnet/minecraft/class_2583;
      named deserialize Lnet/minecraft/text/Style$Serializer;deserialize(Lcom/google/gson/JsonElement;Ljava/lang/reflect/Type;Lcom/google/gson/JsonDeserializationContext;)Lnet/minecraft/text/Style;
    • getFont

      @Nullable private static @Nullable Identifier getFont(JsonObject root)
      Mappings:
      Namespace Name Mixin selector
      official a Lqj$a;a(Lcom/google/gson/JsonObject;)Lyh;
      intermediary method_27710 Lnet/minecraft/class_2583$class_2584;method_27710(Lcom/google/gson/JsonObject;)Lnet/minecraft/class_2960;
      named getFont Lnet/minecraft/text/Style$Serializer;getFont(Lcom/google/gson/JsonObject;)Lnet/minecraft/util/Identifier;
    • getHoverEvent

      @Nullable private static @Nullable HoverEvent getHoverEvent(JsonObject root)
      Mappings:
      Namespace Name Mixin selector
      official b Lqj$a;b(Lcom/google/gson/JsonObject;)Lqd;
      intermediary method_27712 Lnet/minecraft/class_2583$class_2584;method_27712(Lcom/google/gson/JsonObject;)Lnet/minecraft/class_2568;
      named getHoverEvent Lnet/minecraft/text/Style$Serializer;getHoverEvent(Lcom/google/gson/JsonObject;)Lnet/minecraft/text/HoverEvent;
    • getClickEvent

      @Nullable private static @Nullable ClickEvent getClickEvent(JsonObject root)
      Mappings:
      Namespace Name Mixin selector
      official c Lqj$a;c(Lcom/google/gson/JsonObject;)Lpx;
      intermediary method_27713 Lnet/minecraft/class_2583$class_2584;method_27713(Lcom/google/gson/JsonObject;)Lnet/minecraft/class_2558;
      named getClickEvent Lnet/minecraft/text/Style$Serializer;getClickEvent(Lcom/google/gson/JsonObject;)Lnet/minecraft/text/ClickEvent;
    • parseInsertion

      @Nullable private static @Nullable String parseInsertion(JsonObject root)
      Mappings:
      Namespace Name Mixin selector
      official d Lqj$a;d(Lcom/google/gson/JsonObject;)Ljava/lang/String;
      intermediary method_27714 Lnet/minecraft/class_2583$class_2584;method_27714(Lcom/google/gson/JsonObject;)Ljava/lang/String;
      named parseInsertion Lnet/minecraft/text/Style$Serializer;parseInsertion(Lcom/google/gson/JsonObject;)Ljava/lang/String;
    • parseColor

      @Nullable private static @Nullable TextColor parseColor(JsonObject root)
      Mappings:
      Namespace Name Mixin selector
      official e Lqj$a;e(Lcom/google/gson/JsonObject;)Lql;
      intermediary method_27715 Lnet/minecraft/class_2583$class_2584;method_27715(Lcom/google/gson/JsonObject;)Lnet/minecraft/class_5251;
      named parseColor Lnet/minecraft/text/Style$Serializer;parseColor(Lcom/google/gson/JsonObject;)Lnet/minecraft/text/TextColor;
    • parseNullableBoolean

      @Nullable private static @Nullable Boolean parseNullableBoolean(JsonObject root, String key)
      Mappings:
      Namespace Name Mixin selector
      official a Lqj$a;a(Lcom/google/gson/JsonObject;Ljava/lang/String;)Ljava/lang/Boolean;
      intermediary method_27711 Lnet/minecraft/class_2583$class_2584;method_27711(Lcom/google/gson/JsonObject;Ljava/lang/String;)Ljava/lang/Boolean;
      named parseNullableBoolean Lnet/minecraft/text/Style$Serializer;parseNullableBoolean(Lcom/google/gson/JsonObject;Ljava/lang/String;)Ljava/lang/Boolean;
    • serialize

      @Nullable public @Nullable JsonElement serialize(Style style, Type type, JsonSerializationContext jsonSerializationContext)
      Specified by:
      serialize in interface JsonSerializer<Style>
      Mappings:
      Namespace Name Mixin selector
      official a Lqj$a;a(Lqj;Ljava/lang/reflect/Type;Lcom/google/gson/JsonSerializationContext;)Lcom/google/gson/JsonElement;
      intermediary method_10990 Lnet/minecraft/class_2583$class_2584;method_10990(Lnet/minecraft/class_2583;Ljava/lang/reflect/Type;Lcom/google/gson/JsonSerializationContext;)Lcom/google/gson/JsonElement;
      named serialize Lnet/minecraft/text/Style$Serializer;serialize(Lnet/minecraft/text/Style;Ljava/lang/reflect/Type;Lcom/google/gson/JsonSerializationContext;)Lcom/google/gson/JsonElement;