Package net.minecraft.text
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 te$bintermediary net/minecraft/class_2583$class_2584named net/minecraft/text/Style$Serializer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static @Nullable ClickEventgetClickEvent(JsonObject root) private static @Nullable IdentifiergetFont(JsonObject root) private static @Nullable HoverEventgetHoverEvent(JsonObject root) method_10990(Style style, Type type, JsonSerializationContext jsonSerializationContext) method_10991(JsonElement jsonElement, Type type, JsonDeserializationContext jsonDeserializationContext) parseColor(JsonObject root) parseInsertion(JsonObject root) parseNullableBoolean(JsonObject root, String key) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.google.gson.JsonDeserializer
deserializeMethods inherited from interface com.google.gson.JsonSerializer
serialize
-
Constructor Details
-
Serializer
public Serializer()
-
-
Method Details
-
method_10991
@Nullable public @Nullable Style method_10991(JsonElement jsonElement, Type type, JsonDeserializationContext jsonDeserializationContext) throws JsonParseException - Throws:
JsonParseException- Mappings:
Namespace Name Mixin selector official aLte$b;a(Lcom/google/gson/JsonElement;Ljava/lang/reflect/Type;Lcom/google/gson/JsonDeserializationContext;)Lte;intermediary method_10991Lnet/minecraft/class_2583$class_2584;method_10991(Lcom/google/gson/JsonElement;Ljava/lang/reflect/Type;Lcom/google/gson/JsonDeserializationContext;)Lnet/minecraft/class_2583;named method_10991Lnet/minecraft/text/Style$Serializer;method_10991(Lcom/google/gson/JsonElement;Ljava/lang/reflect/Type;Lcom/google/gson/JsonDeserializationContext;)Lnet/minecraft/text/Style;
-
getFont
- Mappings:
Namespace Name Mixin selector official aLte$b;a(Lcom/google/gson/JsonObject;)Labv;intermediary method_27710Lnet/minecraft/class_2583$class_2584;method_27710(Lcom/google/gson/JsonObject;)Lnet/minecraft/class_2960;named getFontLnet/minecraft/text/Style$Serializer;getFont(Lcom/google/gson/JsonObject;)Lnet/minecraft/util/Identifier;
-
getHoverEvent
- Mappings:
Namespace Name Mixin selector official bLte$b;b(Lcom/google/gson/JsonObject;)Lsn;intermediary method_27712Lnet/minecraft/class_2583$class_2584;method_27712(Lcom/google/gson/JsonObject;)Lnet/minecraft/class_2568;named getHoverEventLnet/minecraft/text/Style$Serializer;getHoverEvent(Lcom/google/gson/JsonObject;)Lnet/minecraft/text/HoverEvent;
-
getClickEvent
- Mappings:
Namespace Name Mixin selector official cLte$b;c(Lcom/google/gson/JsonObject;)Lsg;intermediary method_27713Lnet/minecraft/class_2583$class_2584;method_27713(Lcom/google/gson/JsonObject;)Lnet/minecraft/class_2558;named getClickEventLnet/minecraft/text/Style$Serializer;getClickEvent(Lcom/google/gson/JsonObject;)Lnet/minecraft/text/ClickEvent;
-
parseInsertion
- Mappings:
Namespace Name Mixin selector official dLte$b;d(Lcom/google/gson/JsonObject;)Ljava/lang/String;intermediary method_27714Lnet/minecraft/class_2583$class_2584;method_27714(Lcom/google/gson/JsonObject;)Ljava/lang/String;named parseInsertionLnet/minecraft/text/Style$Serializer;parseInsertion(Lcom/google/gson/JsonObject;)Ljava/lang/String;
-
parseColor
- Mappings:
Namespace Name Mixin selector official eLte$b;e(Lcom/google/gson/JsonObject;)Ltg;intermediary method_27715Lnet/minecraft/class_2583$class_2584;method_27715(Lcom/google/gson/JsonObject;)Lnet/minecraft/class_5251;named parseColorLnet/minecraft/text/Style$Serializer;parseColor(Lcom/google/gson/JsonObject;)Lnet/minecraft/text/TextColor;
-
parseNullableBoolean
- Mappings:
Namespace Name Mixin selector official aLte$b;a(Lcom/google/gson/JsonObject;Ljava/lang/String;)Ljava/lang/Boolean;intermediary method_27711Lnet/minecraft/class_2583$class_2584;method_27711(Lcom/google/gson/JsonObject;Ljava/lang/String;)Ljava/lang/Boolean;named parseNullableBooleanLnet/minecraft/text/Style$Serializer;parseNullableBoolean(Lcom/google/gson/JsonObject;Ljava/lang/String;)Ljava/lang/Boolean;
-
method_10990
@Nullable public @Nullable JsonElement method_10990(Style style, Type type, JsonSerializationContext jsonSerializationContext) - Mappings:
Namespace Name Mixin selector official aLte$b;a(Lte;Ljava/lang/reflect/Type;Lcom/google/gson/JsonSerializationContext;)Lcom/google/gson/JsonElement;intermediary method_10990Lnet/minecraft/class_2583$class_2584;method_10990(Lnet/minecraft/class_2583;Ljava/lang/reflect/Type;Lcom/google/gson/JsonSerializationContext;)Lcom/google/gson/JsonElement;named method_10990Lnet/minecraft/text/Style$Serializer;method_10990(Lnet/minecraft/text/Style;Ljava/lang/reflect/Type;Lcom/google/gson/JsonSerializationContext;)Lcom/google/gson/JsonElement;
-