Class ForgeModConditionalIngredient

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

public class ForgeModConditionalIngredient 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
    ForgeModConditionalIngredient(net.minecraft.world.item.crafting.Ingredient main, String modid, net.minecraft.world.item.crafting.Ingredient ifModLoaded)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static net.minecraft.world.item.crafting.Ingredient
    fromJson(com.google.gson.JsonObject object)
     
    static @NotNull net.minecraft.world.item.crafting.Ingredient
    fromNetwork(net.minecraft.network.FriendlyByteBuf friendlyByteBuf)
     
    @NotNull net.minecraftforge.common.crafting.IIngredientSerializer<? extends net.minecraft.world.item.crafting.Ingredient>
     
    boolean
     
    of(net.minecraft.world.item.crafting.Ingredient main, String modid, net.minecraft.world.item.crafting.Ingredient ifModLoaded)
    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, 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

    • ForgeModConditionalIngredient

      protected ForgeModConditionalIngredient(net.minecraft.world.item.crafting.Ingredient main, String modid, net.minecraft.world.item.crafting.Ingredient ifModLoaded)
  • Method Details

    • of

      public static ForgeModConditionalIngredient of(net.minecraft.world.item.crafting.Ingredient main, String modid, net.minecraft.world.item.crafting.Ingredient ifModLoaded)
      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
    • toJson

      @NotNull public @NotNull com.google.gson.JsonElement toJson()
      Specified by:
      toJson 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
    • fromNetwork

      @NotNull public static @NotNull 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.JsonObject object)