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
Constructors Constructor Description Serializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LootContext.EntityTarget
read(com.google.gson.stream.JsonReader p_read_1_)
void
write(com.google.gson.stream.JsonWriter p_write_1_, LootContext.EntityTarget p_write_2_)
-
-
-
Method Detail
-
write
public void write(com.google.gson.stream.JsonWriter p_write_1_, LootContext.EntityTarget p_write_2_) throws java.io.IOException
- Specified by:
write
in classcom.google.gson.TypeAdapter<LootContext.EntityTarget>
- Throws:
java.io.IOException
-
read
public LootContext.EntityTarget read(com.google.gson.stream.JsonReader p_read_1_) throws java.io.IOException
- Specified by:
read
in classcom.google.gson.TypeAdapter<LootContext.EntityTarget>
- Throws:
java.io.IOException
-
-