Class LootContext.EntityTarget.Serializer
java.lang.Object
com.google.gson.TypeAdapter<LootContext.EntityTarget>
net.minecraft.world.level.storage.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_79013_) void
write
(com.google.gson.stream.JsonWriter p_79015_, LootContext.EntityTarget p_79016_) 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_79015_, LootContext.EntityTarget p_79016_) throws IOException - Specified by:
write
in classcom.google.gson.TypeAdapter<LootContext.EntityTarget>
- Throws:
IOException
-
read
- Specified by:
read
in classcom.google.gson.TypeAdapter<LootContext.EntityTarget>
- Throws:
IOException
-