类 Style.Serializer
- java.lang.Object
-
- net.minecraft.text.Style.Serializer
-
- 所有已实现的接口:
JsonDeserializer<Style>,JsonSerializer<Style>
- 封闭类:
- Style
public static class Style.Serializer extends Object implements JsonDeserializer<Style>, JsonSerializer<Style>
A JSON serializer forStyle.- Mappings:
Namespace Name official ox$aintermediary net/minecraft/class_2583$class_2584named net/minecraft/text/Style$Serializer
-
-
构造器概要
构造器 构造器 说明 Serializer()
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 @Nullable Styledeserialize(JsonElement jsonElement, Type type, JsonDeserializationContext jsonDeserializationContext)private static @Nullable ClickEventgetClickEvent(JsonObject root)private static @Nullable IdentifiergetFont(JsonObject root)private static @Nullable HoverEventgetHoverEvent(JsonObject root)private static @Nullable TextColorparseColor(JsonObject root)private static @Nullable StringparseInsertion(JsonObject root)private static @Nullable BooleanparseNullableBoolean(JsonObject root, String key)@Nullable JsonElementserialize(Style style, Type type, JsonSerializationContext jsonSerializationContext)
-
-
-
方法详细资料
-
deserialize
@Nullable public @Nullable Style deserialize(JsonElement jsonElement, Type type, JsonDeserializationContext jsonDeserializationContext) throws JsonParseException
- 指定者:
deserialize在接口中JsonDeserializer<Style>- 抛出:
JsonParseException- Mappings:
Namespace Name Mixin selector official aLox$a;a(Lcom/google/gson/JsonElement;Ljava/lang/reflect/Type;Lcom/google/gson/JsonDeserializationContext;)Lox;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 deserializeLnet/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 aLox$a;a(Lcom/google/gson/JsonObject;)Lwp;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
@Nullable private static @Nullable HoverEvent getHoverEvent(JsonObject root)
- Mappings:
Namespace Name Mixin selector official bLox$a;b(Lcom/google/gson/JsonObject;)Lor;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
@Nullable private static @Nullable ClickEvent getClickEvent(JsonObject root)
- Mappings:
Namespace Name Mixin selector official cLox$a;c(Lcom/google/gson/JsonObject;)Lol;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
@Nullable private static @Nullable String parseInsertion(JsonObject root)
- Mappings:
Namespace Name Mixin selector official dLox$a;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
@Nullable private static @Nullable TextColor parseColor(JsonObject root)
- Mappings:
Namespace Name Mixin selector official eLox$a;e(Lcom/google/gson/JsonObject;)Loz;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
@Nullable private static @Nullable Boolean parseNullableBoolean(JsonObject root, String key)
- Mappings:
Namespace Name Mixin selector official aLox$a;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;
-
serialize
@Nullable public @Nullable JsonElement serialize(Style style, Type type, JsonSerializationContext jsonSerializationContext)
- 指定者:
serialize在接口中JsonSerializer<Style>- Mappings:
Namespace Name Mixin selector official aLox$a;a(Lox;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 serializeLnet/minecraft/text/Style$Serializer;serialize(Lnet/minecraft/text/Style;Ljava/lang/reflect/Type;Lcom/google/gson/JsonSerializationContext;)Lcom/google/gson/JsonElement;
-
-