Package net.minecraft.loot.condition
Class AlternativeLootCondition.Serializer<T extends AlternativeLootCondition>
java.lang.Object
net.minecraft.loot.condition.AlternativeLootCondition.Serializer<T>
- All Implemented Interfaces:
JsonSerializer<T>
- Direct Known Subclasses:
AllOfLootCondition.Serializer
,AnyOfLootCondition.Serializer
- Enclosing class:
AlternativeLootCondition
public abstract static class AlternativeLootCondition.Serializer<T extends AlternativeLootCondition>
extends Object
implements JsonSerializer<T>
- Mappings:
Namespace Name official ecb$b
intermediary net/minecraft/class_186$class_188
named net/minecraft/loot/condition/AlternativeLootCondition$Serializer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfromJson
(JsonObject jsonObject, JsonDeserializationContext jsonDeserializationContext) protected abstract T
fromTerms
(LootCondition[] terms) void
toJson
(JsonObject jsonObject, AlternativeLootCondition alternativeLootCondition, JsonSerializationContext jsonSerializationContext)
-
Constructor Details
-
Serializer
public Serializer()
-
-
Method Details
-
toJson
public void toJson(JsonObject jsonObject, AlternativeLootCondition alternativeLootCondition, JsonSerializationContext jsonSerializationContext) - Specified by:
toJson
in interfaceJsonSerializer<T extends AlternativeLootCondition>
- Mappings:
Namespace Name Mixin selector official a
Lecb$b;a(Lcom/google/gson/JsonObject;Lecb;Lcom/google/gson/JsonSerializationContext;)V
intermediary method_828
Lnet/minecraft/class_186$class_188;method_828(Lcom/google/gson/JsonObject;Lnet/minecraft/class_186;Lcom/google/gson/JsonSerializationContext;)V
named toJson
Lnet/minecraft/loot/condition/AlternativeLootCondition$Serializer;toJson(Lcom/google/gson/JsonObject;Lnet/minecraft/loot/condition/AlternativeLootCondition;Lcom/google/gson/JsonSerializationContext;)V
-
fromJson
- Specified by:
fromJson
in interfaceJsonSerializer<T extends AlternativeLootCondition>
- Mappings:
Namespace Name Mixin selector official b
Lecb$b;b(Lcom/google/gson/JsonObject;Lcom/google/gson/JsonDeserializationContext;)Lecb;
intermediary method_829
Lnet/minecraft/class_186$class_188;method_829(Lcom/google/gson/JsonObject;Lcom/google/gson/JsonDeserializationContext;)Lnet/minecraft/class_186;
named fromJson
Lnet/minecraft/loot/condition/AlternativeLootCondition$Serializer;fromJson(Lcom/google/gson/JsonObject;Lcom/google/gson/JsonDeserializationContext;)Lnet/minecraft/loot/condition/AlternativeLootCondition;
-
fromTerms
- Mappings:
Namespace Name Mixin selector official b
Lecb$b;b([Leck;)Lecb;
intermediary method_51726
Lnet/minecraft/class_186$class_188;method_51726([Lnet/minecraft/class_5341;)Lnet/minecraft/class_186;
named fromTerms
Lnet/minecraft/loot/condition/AlternativeLootCondition$Serializer;fromTerms([Lnet/minecraft/loot/condition/LootCondition;)Lnet/minecraft/loot/condition/AlternativeLootCondition;
-