类 ConstantLootNumberProvider.CustomSerializer

    • 构造器详细资料

      • CustomSerializer

        public CustomSerializer()
    • 方法详细资料

      • toJson

        public JsonElement toJson​(ConstantLootNumberProvider constantLootNumberProvider,
                                  JsonSerializationContext jsonSerializationContext)
        指定者:
        toJson 在接口中 JsonSerializing.CustomSerializer<ConstantLootNumberProvider>
        Mappings:
        Namespace Name Mixin selector
        official a Ldla$a;a(Ldla;Lcom/google/gson/JsonSerializationContext;)Lcom/google/gson/JsonElement;
        intermediary method_32450 Lnet/minecraft/class_44$class_5655;method_32450(Lnet/minecraft/class_44;Lcom/google/gson/JsonSerializationContext;)Lcom/google/gson/JsonElement;
        named toJson Lnet/minecraft/loot/provider/number/ConstantLootNumberProvider$CustomSerializer;toJson(Lnet/minecraft/loot/provider/number/ConstantLootNumberProvider;Lcom/google/gson/JsonSerializationContext;)Lcom/google/gson/JsonElement;
      • fromJson

        public ConstantLootNumberProvider fromJson​(JsonElement jsonElement,
                                                   JsonDeserializationContext jsonDeserializationContext)
        指定者:
        fromJson 在接口中 JsonSerializing.CustomSerializer<ConstantLootNumberProvider>
        Mappings:
        Namespace Name Mixin selector
        official b Ldla$a;b(Lcom/google/gson/JsonElement;Lcom/google/gson/JsonDeserializationContext;)Ldla;
        intermediary method_32451 Lnet/minecraft/class_44$class_5655;method_32451(Lcom/google/gson/JsonElement;Lcom/google/gson/JsonDeserializationContext;)Lnet/minecraft/class_44;
        named fromJson Lnet/minecraft/loot/provider/number/ConstantLootNumberProvider$CustomSerializer;fromJson(Lcom/google/gson/JsonElement;Lcom/google/gson/JsonDeserializationContext;)Lnet/minecraft/loot/provider/number/ConstantLootNumberProvider;