Class VanillaIngredientSerializer
- java.lang.Object
-
- net.minecraftforge.common.crafting.VanillaIngredientSerializer
-
- All Implemented Interfaces:
IIngredientSerializer<Ingredient>
public class VanillaIngredientSerializer extends java.lang.Object implements IIngredientSerializer<Ingredient>
-
-
Field Summary
Fields Modifier and Type Field Description static VanillaIngredientSerializerINSTANCE
-
Constructor Summary
Constructors Constructor Description VanillaIngredientSerializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Ingredientparse(com.google.gson.JsonObject json)Ingredientparse(PacketBuffer buffer)voidwrite(PacketBuffer buffer, Ingredient ingredient)
-
-
-
Field Detail
-
INSTANCE
public static final VanillaIngredientSerializer INSTANCE
-
-
Method Detail
-
parse
public Ingredient parse(PacketBuffer buffer)
- Specified by:
parsein interfaceIIngredientSerializer<Ingredient>
-
parse
public Ingredient parse(com.google.gson.JsonObject json)
- Specified by:
parsein interfaceIIngredientSerializer<Ingredient>
-
write
public void write(PacketBuffer buffer, Ingredient ingredient)
- Specified by:
writein interfaceIIngredientSerializer<Ingredient>
-
-