Package net.minecraft.loot
Class LootFunction.Serializer<T extends LootFunction>
java.lang.Object
net.minecraft.loot.LootFunction.Serializer<T>
- All Implemented Interfaces:
ILootSerializer<T>
- Direct Known Subclasses:
ApplyBonus.Serializer
,CopyBlockState.Serializer
,CopyName.Serializer
,CopyNbt.Serializer
,EnchantRandomly.Serializer
,EnchantWithLevels.Serializer
,ExplorationMap.Serializer
,ExplosionDecay.Serializer
,FillPlayerHead.Serializer
,LimitCount.Serializer
,LootingEnchantBonus.Serializer
,SetAttributes.Serializer
,SetContents.Serializer
,SetCount.Serializer
,SetDamage.Serializer
,SetLootTable.Serializer
,SetLore.Serializer
,SetName.Serializer
,SetNBT.Serializer
,SetStewEffect.Serializer
,Smelt.Serializer
- Enclosing class:
- LootFunction
public abstract static class LootFunction.Serializer<T extends LootFunction>
extends Object
implements ILootSerializer<T>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal T
deserialize
(com.google.gson.JsonObject p_230423_1_, com.google.gson.JsonDeserializationContext p_230423_2_) abstract T
deserialize
(com.google.gson.JsonObject p_186530_1_, com.google.gson.JsonDeserializationContext p_186530_2_, ILootCondition[] p_186530_3_) void
serialize
(com.google.gson.JsonObject p_230424_1_, T p_230424_2_, com.google.gson.JsonSerializationContext p_230424_3_)
-
Constructor Details
-
Serializer
public Serializer()
-
-
Method Details
-
serialize
public void serialize(com.google.gson.JsonObject p_230424_1_, T p_230424_2_, com.google.gson.JsonSerializationContext p_230424_3_) - Specified by:
serialize
in interfaceILootSerializer<T extends LootFunction>
-
deserialize
public final T deserialize(com.google.gson.JsonObject p_230423_1_, com.google.gson.JsonDeserializationContext p_230423_2_) - Specified by:
deserialize
in interfaceILootSerializer<T extends LootFunction>
-
deserialize
public abstract T deserialize(com.google.gson.JsonObject p_186530_1_, com.google.gson.JsonDeserializationContext p_186530_2_, ILootCondition[] p_186530_3_)
-