Class ConditionalIngredient

java.lang.Object
net.minecraft.world.item.crafting.Ingredient
net.minecraftforge.common.crafting.AbstractIngredient
codechicken.lib.datagen.ConditionalIngredient
All Implemented Interfaces:
Predicate<net.minecraft.world.item.ItemStack>

public class ConditionalIngredient extends net.minecraftforge.common.crafting.AbstractIngredient
Created by covers1624 on 24/9/22.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     
    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 inherited from class net.minecraft.world.item.crafting.Ingredient

    EMPTY
  • Method Summary

    Modifier and Type
    Method
    Description
     
    net.minecraft.world.item.ItemStack[]
     
    net.minecraftforge.common.crafting.IIngredientSerializer<? extends net.minecraft.world.item.crafting.Ingredient>
     
    boolean
     
    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, getStackingIds, invalidate, invalidateAll, isEmpty, isVanilla, markValid, merge, test, 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
  • Method Details

    • builder

      public static ConditionalIngredient.Builder builder()
    • toJson

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

      public net.minecraft.world.item.ItemStack[] getItems()
      Overrides:
      getItems in class net.minecraft.world.item.crafting.Ingredient
    • isSimple

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

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