Class PlantIngredient.Serializer

java.lang.Object
com.minecolonies.core.recipes.PlantIngredient.Serializer
All Implemented Interfaces:
net.minecraftforge.common.crafting.IIngredientSerializer<PlantIngredient>
Enclosing class:
PlantIngredient

public static class PlantIngredient.Serializer extends Object implements net.minecraftforge.common.crafting.IIngredientSerializer<PlantIngredient>
  • Method Details

    • getInstance

      public static PlantIngredient.Serializer getInstance()
    • parse

      @NotNull public @NotNull PlantIngredient parse(@NotNull @NotNull com.google.gson.JsonObject json)
      Specified by:
      parse in interface net.minecraftforge.common.crafting.IIngredientSerializer<PlantIngredient>
    • write

      public void write(@NotNull @NotNull com.google.gson.JsonObject json, @NotNull @NotNull PlantIngredient ingredient)
    • parse

      @NotNull public @NotNull PlantIngredient parse(@NotNull @NotNull net.minecraft.network.FriendlyByteBuf buffer)
      Specified by:
      parse in interface net.minecraftforge.common.crafting.IIngredientSerializer<PlantIngredient>
    • write

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