Class ForgeModConditionalIngredient.Serializer

java.lang.Object
at.petrak.hexcasting.forge.recipe.ForgeModConditionalIngredient.Serializer
All Implemented Interfaces:
net.minecraftforge.common.crafting.IIngredientSerializer<net.minecraft.world.item.crafting.Ingredient>
Enclosing class:
ForgeModConditionalIngredient

public static class ForgeModConditionalIngredient.Serializer extends Object implements net.minecraftforge.common.crafting.IIngredientSerializer<net.minecraft.world.item.crafting.Ingredient>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull net.minecraft.world.item.crafting.Ingredient
    parse(@NotNull com.google.gson.JsonObject json)
     
    @NotNull net.minecraft.world.item.crafting.Ingredient
    parse(@NotNull net.minecraft.network.FriendlyByteBuf buffer)
     
    void
    write(@NotNull net.minecraft.network.FriendlyByteBuf buffer, @NotNull net.minecraft.world.item.crafting.Ingredient ingredient)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • Serializer

      public Serializer()
  • Method Details

    • parse

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

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

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