public class VanillaIngredientSerializer extends java.lang.Object implements IIngredientSerializer<Ingredient>
Modifier and Type | Field and Description |
---|---|
static VanillaIngredientSerializer |
INSTANCE |
Constructor and Description |
---|
VanillaIngredientSerializer() |
Modifier and Type | Method and Description |
---|---|
Ingredient |
parse(com.google.gson.JsonObject json) |
Ingredient |
parse(PacketBuffer buffer) |
void |
write(PacketBuffer buffer,
Ingredient ingredient) |
public static final VanillaIngredientSerializer INSTANCE
public Ingredient parse(PacketBuffer buffer)
parse
in interface IIngredientSerializer<Ingredient>
public Ingredient parse(com.google.gson.JsonObject json)
parse
in interface IIngredientSerializer<Ingredient>
public void write(PacketBuffer buffer, Ingredient ingredient)
write
in interface IIngredientSerializer<Ingredient>