Package net.minecraft.loot
Class LootContext.EntityTarget.Serializer
java.lang.Object
com.google.gson.TypeAdapter<LootContext.EntityTarget>
net.minecraft.loot.LootContext.EntityTarget.Serializer
- Enclosing class:
- LootContext.EntityTarget
public static class LootContext.EntityTarget.Serializer
extends com.google.gson.TypeAdapter<LootContext.EntityTarget>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionread
(com.google.gson.stream.JsonReader p_read_1_) void
write
(com.google.gson.stream.JsonWriter p_write_1_, LootContext.EntityTarget p_write_2_) Methods inherited from class com.google.gson.TypeAdapter
fromJson, fromJson, fromJsonTree, nullSafe, toJson, toJson, toJsonTree
-
Constructor Details
-
Serializer
public Serializer()
-
-
Method Details
-
write
public void write(com.google.gson.stream.JsonWriter p_write_1_, LootContext.EntityTarget p_write_2_) throws IOException - Specified by:
write
in classcom.google.gson.TypeAdapter<LootContext.EntityTarget>
- Throws:
IOException
-
read
public LootContext.EntityTarget read(com.google.gson.stream.JsonReader p_read_1_) throws IOException - Specified by:
read
in classcom.google.gson.TypeAdapter<LootContext.EntityTarget>
- Throws:
IOException
-