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 SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionread(com.google.gson.stream.JsonReader p_read_1_) voidwrite(com.google.gson.stream.JsonWriter p_write_1_, LootContext.EntityTarget p_write_2_) Methods inherited from class com.google.gson.TypeAdapterfromJson, fromJson, fromJsonTree, nullSafe, toJson, toJson, toJsonTree
- 
Constructor Details- 
Serializerpublic Serializer()
 
- 
- 
Method Details- 
writepublic void write(com.google.gson.stream.JsonWriter p_write_1_, LootContext.EntityTarget p_write_2_) throws IOException - Specified by:
- writein class- com.google.gson.TypeAdapter<LootContext.EntityTarget>
- Throws:
- IOException
 
- 
readpublic LootContext.EntityTarget read(com.google.gson.stream.JsonReader p_read_1_) throws IOException - Specified by:
- readin class- com.google.gson.TypeAdapter<LootContext.EntityTarget>
- Throws:
- IOException
 
 
-