Package net.minecraft.loot.context
Class LootContext.EntityTarget.Serializer
java.lang.Object
com.google.gson.TypeAdapter<LootContext.EntityTarget>
net.minecraft.loot.context.LootContext.EntityTarget.Serializer
- Enclosing class:
- LootContext.EntityTarget
public static class LootContext.EntityTarget.Serializer extends TypeAdapter<LootContext.EntityTarget>
-
Constructor Summary
Constructors Constructor Description Serializer() -
Method Summary
Modifier and Type Method Description LootContext.EntityTargetread(JsonReader jsonReader)voidwrite(JsonWriter jsonWriter, LootContext.EntityTarget entityTarget)Methods inherited from class com.google.gson.TypeAdapter
fromJson, fromJson, fromJsonTree, nullSafe, toJson, toJson, toJsonTree
-
Constructor Details
-
Serializer
public Serializer()
-
-
Method Details
-
write
- Specified by:
writein classTypeAdapter<LootContext.EntityTarget>- Throws:
IOException
-
read
- Specified by:
readin classTypeAdapter<LootContext.EntityTarget>- Throws:
IOException
-