类 LootPool.Serializer

    • 构造器详细资料

      • Serializer

        public Serializer()
    • 方法详细资料

      • deserialize

        public LootPool deserialize​(JsonElement jsonElement,
                                    Type type,
                                    JsonDeserializationContext jsonDeserializationContext)
                             throws JsonParseException
        指定者:
        deserialize 在接口中 JsonDeserializer<LootPool>
        抛出:
        JsonParseException
        Mappings:
        Namespace Name Mixin selector
        official a Ldhr$b;a(Lcom/google/gson/JsonElement;Ljava/lang/reflect/Type;Lcom/google/gson/JsonDeserializationContext;)Ldhr;
        intermediary method_358 Lnet/minecraft/class_55$class_57;method_358(Lcom/google/gson/JsonElement;Ljava/lang/reflect/Type;Lcom/google/gson/JsonDeserializationContext;)Lnet/minecraft/class_55;
        named deserialize Lnet/minecraft/loot/LootPool$Serializer;deserialize(Lcom/google/gson/JsonElement;Ljava/lang/reflect/Type;Lcom/google/gson/JsonDeserializationContext;)Lnet/minecraft/loot/LootPool;
      • serialize

        public JsonElement serialize​(LootPool lootPool,
                                     Type type,
                                     JsonSerializationContext jsonSerializationContext)
        指定者:
        serialize 在接口中 JsonSerializer<LootPool>
        Mappings:
        Namespace Name Mixin selector
        official a Ldhr$b;a(Ldhr;Ljava/lang/reflect/Type;Lcom/google/gson/JsonSerializationContext;)Lcom/google/gson/JsonElement;
        intermediary method_357 Lnet/minecraft/class_55$class_57;method_357(Lnet/minecraft/class_55;Ljava/lang/reflect/Type;Lcom/google/gson/JsonSerializationContext;)Lcom/google/gson/JsonElement;
        named serialize Lnet/minecraft/loot/LootPool$Serializer;serialize(Lnet/minecraft/loot/LootPool;Ljava/lang/reflect/Type;Lcom/google/gson/JsonSerializationContext;)Lcom/google/gson/JsonElement;