Package com.minecolonies.core.recipes
Class FoodIngredient.Serializer
java.lang.Object
com.minecolonies.core.recipes.FoodIngredient.Serializer
- All Implemented Interfaces:
net.minecraftforge.common.crafting.IIngredientSerializer<FoodIngredient>
- Enclosing class:
- FoodIngredient
public static class FoodIngredient.Serializer
extends Object
implements net.minecraftforge.common.crafting.IIngredientSerializer<FoodIngredient>
-
Method Summary
Modifier and TypeMethodDescriptionstatic FoodIngredient.Serializer@NotNull FoodIngredientparse(@NotNull com.google.gson.JsonObject json) @NotNull FoodIngredientparse(@NotNull net.minecraft.network.FriendlyByteBuf buffer) voidwrite(@NotNull com.google.gson.JsonObject json, @NotNull FoodIngredient ingredient) voidwrite(@NotNull net.minecraft.network.FriendlyByteBuf buffer, @NotNull FoodIngredient ingredient)
-
Method Details
-
getInstance
-
parse
- Specified by:
parsein interfacenet.minecraftforge.common.crafting.IIngredientSerializer<FoodIngredient>
-
write
public void write(@NotNull @NotNull com.google.gson.JsonObject json, @NotNull @NotNull FoodIngredient ingredient) -
parse
@NotNull public @NotNull FoodIngredient parse(@NotNull @NotNull net.minecraft.network.FriendlyByteBuf buffer) - Specified by:
parsein interfacenet.minecraftforge.common.crafting.IIngredientSerializer<FoodIngredient>
-
write
public void write(@NotNull @NotNull net.minecraft.network.FriendlyByteBuf buffer, @NotNull @NotNull FoodIngredient ingredient) - Specified by:
writein interfacenet.minecraftforge.common.crafting.IIngredientSerializer<FoodIngredient>
-