Class FabricUnsealedIngredient

java.lang.Object
net.minecraft.world.item.crafting.Ingredient
at.petrak.hexcasting.fabric.recipe.FabricUnsealedIngredient
All Implemented Interfaces:
Predicate<net.minecraft.world.item.ItemStack>

public class FabricUnsealedIngredient extends net.minecraft.world.item.crafting.Ingredient
  • Nested Class Summary

    Nested classes/interfaces inherited from class net.minecraft.world.item.crafting.Ingredient

    net.minecraft.world.item.crafting.Ingredient.ItemValue, net.minecraft.world.item.crafting.Ingredient.TagValue, net.minecraft.world.item.crafting.Ingredient.Value
  • Field Summary

    Fields inherited from class net.minecraft.world.item.crafting.Ingredient

    EMPTY
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    FabricUnsealedIngredient(net.minecraft.world.item.ItemStack stack)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static net.minecraft.world.item.crafting.Ingredient
    fromJson(com.google.gson.JsonElement element)
     
    static net.minecraft.world.item.crafting.Ingredient
    fromNetwork(net.minecraft.network.FriendlyByteBuf friendlyByteBuf)
     
    of(net.minecraft.world.item.ItemStack stack)
    Creates a new ingredient matching the given stack
    boolean
    test(net.minecraft.world.item.ItemStack input)
     
    @NotNull com.google.gson.JsonElement
     
    void
    toNetwork(net.minecraft.network.FriendlyByteBuf friendlyByteBuf)
     

    Methods inherited from class net.minecraft.world.item.crafting.Ingredient

    getItems, getStackingIds, isEmpty, of, of, of, of, of

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface java.util.function.Predicate

    and, negate, or
  • Constructor Details

    • FabricUnsealedIngredient

      protected FabricUnsealedIngredient(net.minecraft.world.item.ItemStack stack)
  • Method Details

    • of

      public static FabricUnsealedIngredient of(net.minecraft.world.item.ItemStack stack)
      Creates a new ingredient matching the given stack
    • test

      public boolean test(@Nullable net.minecraft.world.item.ItemStack input)
      Specified by:
      test in interface Predicate<net.minecraft.world.item.ItemStack>
      Overrides:
      test in class net.minecraft.world.item.crafting.Ingredient
    • toJson

      @NotNull public @NotNull com.google.gson.JsonElement toJson()
      Overrides:
      toJson in class net.minecraft.world.item.crafting.Ingredient
    • fromNetwork

      public static net.minecraft.world.item.crafting.Ingredient fromNetwork(net.minecraft.network.FriendlyByteBuf friendlyByteBuf)
    • fromJson

      public static net.minecraft.world.item.crafting.Ingredient fromJson(com.google.gson.JsonElement element)
    • toNetwork

      public void toNetwork(net.minecraft.network.FriendlyByteBuf friendlyByteBuf)
      Overrides:
      toNetwork in class net.minecraft.world.item.crafting.Ingredient