Class Ingredient

java.lang.Object
net.minecraft.world.item.crafting.Ingredient
All Implemented Interfaces:
Predicate<ItemStack>
Direct Known Subclasses:
AbstractIngredient

public class Ingredient extends Object implements Predicate<ItemStack>
  • Field Details

    • INVALIDATION_COUNTER

      private static final AtomicInteger INVALIDATION_COUNTER
    • EMPTY

      public static final Ingredient EMPTY
    • values

      private final Ingredient.Value[] values
    • itemStacks

      @Nullable private ItemStack[] itemStacks
    • stackingIds

      @Nullable private it.unimi.dsi.fastutil.ints.IntList stackingIds
    • VANILLA_CODEC

      public static final com.mojang.serialization.Codec<Ingredient> VANILLA_CODEC
      The vanilla codec that doesn't support custom Ingredient types.
    • CODEC

      public static final com.mojang.serialization.Codec<Ingredient> CODEC
    • VANILLA_CODEC_NONEMPTY

      private static final com.mojang.serialization.Codec<Ingredient> VANILLA_CODEC_NONEMPTY
    • CODEC_NONEMPTY

      public static final com.mojang.serialization.Codec<Ingredient> CODEC_NONEMPTY
    • invalidationCounter

      private int invalidationCounter
    • isVanilla

      private final boolean isVanilla
  • Constructor Details

  • Method Details