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 Details

    • getInstance

      public static FoodIngredient.Serializer getInstance()
    • parse

      @NotNull public @NotNull FoodIngredient parse(@NotNull @NotNull com.google.gson.JsonObject json)
      Specified by:
      parse in interface net.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:
      parse in interface net.minecraftforge.common.crafting.IIngredientSerializer<FoodIngredient>
    • write

      public void write(@NotNull @NotNull net.minecraft.network.FriendlyByteBuf buffer, @NotNull @NotNull FoodIngredient ingredient)
      Specified by:
      write in interface net.minecraftforge.common.crafting.IIngredientSerializer<FoodIngredient>