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