类 LootContext.EntityTarget.Serializer
java.lang.Object
com.google.gson.TypeAdapter<LootContext.EntityTarget>
net.minecraft.world.level.storage.loot.LootContext.EntityTarget.Serializer
public static class LootContext.EntityTarget.Serializer
extends com.google.gson.TypeAdapter<LootContext.EntityTarget>
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明read
(com.google.gson.stream.JsonReader pReader) void
write
(com.google.gson.stream.JsonWriter pWriter, LootContext.EntityTarget pEntityTarget) 从类继承的方法 com.google.gson.TypeAdapter
fromJson, fromJson, fromJsonTree, nullSafe, toJson, toJson, toJsonTree
-
构造器详细资料
-
Serializer
public Serializer()
-
-
方法详细资料
-
write
public void write(com.google.gson.stream.JsonWriter pWriter, LootContext.EntityTarget pEntityTarget) throws IOException - 指定者:
write
在类中com.google.gson.TypeAdapter<LootContext.EntityTarget>
- 抛出:
IOException
-
read
- 指定者:
read
在类中com.google.gson.TypeAdapter<LootContext.EntityTarget>
- 抛出:
IOException
-