Class CountedIngredient.Serializer

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

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

    • getInstance

      public static CountedIngredient.Serializer getInstance()
    • parse

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

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

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

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