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.EntityTarget
read(JsonReader jsonReader)
void
write(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:
write
in classTypeAdapter<LootContext.EntityTarget>
- Throws:
IOException
-
read
- Specified by:
read
in classTypeAdapter<LootContext.EntityTarget>
- Throws:
IOException
-