Class ForgeUnsealedIngredient

java.lang.Object
net.minecraft.world.item.crafting.Ingredient
net.minecraftforge.common.crafting.AbstractIngredient
at.petrak.hexcasting.forge.recipe.ForgeUnsealedIngredient
All Implemented Interfaces:
Predicate<net.minecraft.world.item.ItemStack>

public class ForgeUnsealedIngredient extends net.minecraftforge.common.crafting.AbstractIngredient
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     

    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
    Modifier and Type
    Field
    Description
    static final net.minecraft.resources.ResourceLocation
     

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

    EMPTY, values
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    @NotNull net.minecraftforge.common.crafting.IIngredientSerializer<? extends net.minecraft.world.item.crafting.Ingredient>
     
    boolean
     
    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
     

    Methods inherited from class net.minecraftforge.common.crafting.AbstractIngredient

    fromJson, fromNetwork, fromValues, of, of, of, of, of

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

    checkInvalidation, fromJson, getItems, getStackingIds, invalidate, invalidateAll, isEmpty, isVanilla, markValid, merge, toNetwork, valueFromJson

    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
  • Field Details

    • ID

      public static final net.minecraft.resources.ResourceLocation ID
  • Constructor Details

    • ForgeUnsealedIngredient

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

    • of

      public static ForgeUnsealedIngredient 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
    • isSimple

      public boolean isSimple()
      Specified by:
      isSimple in class net.minecraftforge.common.crafting.AbstractIngredient
    • getSerializer

      @NotNull public @NotNull net.minecraftforge.common.crafting.IIngredientSerializer<? extends net.minecraft.world.item.crafting.Ingredient> getSerializer()
      Specified by:
      getSerializer in class net.minecraftforge.common.crafting.AbstractIngredient
    • toJson

      @NotNull public @NotNull com.google.gson.JsonElement toJson()
      Specified by:
      toJson in class net.minecraftforge.common.crafting.AbstractIngredient