Package net.minecraft.loot.function
Class ConditionalLootFunction.Serializer<T extends ConditionalLootFunction>
java.lang.Object
net.minecraft.loot.function.ConditionalLootFunction.Serializer<T>
- All Implemented Interfaces:
JsonSerializer<T>
- Direct Known Subclasses:
ApplyBonusLootFunction.Serializer
,CopyNameLootFunction.Serializer
,CopyNbtLootFunction.Serializer
,CopyStateFunction.Serializer
,EnchantRandomlyLootFunction.Serializer
,EnchantWithLevelsLootFunction.Serializer
,ExplorationMapLootFunction.Serializer
,ExplosionDecayLootFunction.Serializer
,FillPlayerHeadLootFunction.Serializer
,FurnaceSmeltLootFunction.Serializer
,LimitCountLootFunction.Serializer
,LootingEnchantLootFunction.Serializer
,SetAttributesLootFunction.Serializer
,SetContentsLootFunction.Serializer
,SetCountLootFunction.Serializer
,SetDamageLootFunction.Serializer
,SetLootTableLootFunction.Serializer
,SetLoreLootFunction.Serializer
,SetNameLootFunction.Serializer
,SetNbtLootFunction.Serializer
,SetStewEffectLootFunction.Serializer
- Enclosing class:
- ConditionalLootFunction
public abstract static class ConditionalLootFunction.Serializer<T extends ConditionalLootFunction> extends Object implements JsonSerializer<T>
-
Constructor Summary
Constructors Constructor Description Serializer()
-
Method Summary
Modifier and Type Method Description T
fromJson(JsonObject jsonObject, JsonDeserializationContext jsonDeserializationContext)
abstract T
fromJson(JsonObject json, JsonDeserializationContext context, LootCondition[] conditions)
void
toJson(JsonObject jsonObject, T t, JsonSerializationContext jsonSerializationContext)
-
Constructor Details
-
Serializer
public Serializer()
-
-
Method Details
-
toJson
- Specified by:
toJson
in interfaceJsonSerializer<T extends ConditionalLootFunction>
-
fromJson
public final T fromJson(JsonObject jsonObject, JsonDeserializationContext jsonDeserializationContext)- Specified by:
fromJson
in interfaceJsonSerializer<T extends ConditionalLootFunction>
-
fromJson
public abstract T fromJson(JsonObject json, JsonDeserializationContext context, LootCondition[] conditions)
-