Class Ingredient

java.lang.Object
net.minecraft.recipe.Ingredient
All Implemented Interfaces:
Predicate<ItemStack>

public final class Ingredient extends Object implements Predicate<ItemStack>
Mappings:
Namespace Name
official cpz
intermediary net/minecraft/class_1856
named net/minecraft/recipe/Ingredient
  • Field Details

    • EMPTY

      public static final Ingredient EMPTY
      Mappings:
      Namespace Name Mixin selector
      official a Lcpz;a:Lcpz;
      intermediary field_9017 Lnet/minecraft/class_1856;field_9017:Lnet/minecraft/class_1856;
      named EMPTY Lnet/minecraft/recipe/Ingredient;EMPTY:Lnet/minecraft/recipe/Ingredient;
    • ALLOW_EMPTY_CODEC

      public static final com.mojang.serialization.Codec<Ingredient> ALLOW_EMPTY_CODEC
      Mappings:
      Namespace Name Mixin selector
      official b Lcpz;b:Lcom/mojang/serialization/Codec;
      intermediary field_46095 Lnet/minecraft/class_1856;field_46095:Lcom/mojang/serialization/Codec;
      named ALLOW_EMPTY_CODEC Lnet/minecraft/recipe/Ingredient;ALLOW_EMPTY_CODEC:Lcom/mojang/serialization/Codec;
    • DISALLOW_EMPTY_CODEC

      public static final com.mojang.serialization.Codec<Ingredient> DISALLOW_EMPTY_CODEC
      Mappings:
      Namespace Name Mixin selector
      official c Lcpz;c:Lcom/mojang/serialization/Codec;
      intermediary field_46096 Lnet/minecraft/class_1856;field_46096:Lcom/mojang/serialization/Codec;
      named DISALLOW_EMPTY_CODEC Lnet/minecraft/recipe/Ingredient;DISALLOW_EMPTY_CODEC:Lcom/mojang/serialization/Codec;
    • entries

      private final Ingredient.Entry[] entries
      Mappings:
      Namespace Name Mixin selector
      official d Lcpz;d:[Lcpz$c;
      intermediary field_9019 Lnet/minecraft/class_1856;field_9019:[Lnet/minecraft/class_1856$class_1859;
      named entries Lnet/minecraft/recipe/Ingredient;entries:[Lnet/minecraft/recipe/Ingredient$Entry;
    • matchingStacks

      @Nullable private @Nullable ItemStack[] matchingStacks
      Mappings:
      Namespace Name Mixin selector
      official e Lcpz;e:[Lcmy;
      intermediary field_9018 Lnet/minecraft/class_1856;field_9018:[Lnet/minecraft/class_1799;
      named matchingStacks Lnet/minecraft/recipe/Ingredient;matchingStacks:[Lnet/minecraft/item/ItemStack;
    • ids

      Mappings:
      Namespace Name Mixin selector
      official f Lcpz;f:Lit/unimi/dsi/fastutil/ints/IntList;
      intermediary field_9016 Lnet/minecraft/class_1856;field_9016:Lit/unimi/dsi/fastutil/ints/IntList;
      named ids Lnet/minecraft/recipe/Ingredient;ids:Lit/unimi/dsi/fastutil/ints/IntList;
  • Constructor Details

    • Ingredient

      private Ingredient(Stream<? extends Ingredient.Entry> entries)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcpz;<init>(Ljava/util/stream/Stream;)V
      intermediary <init> Lnet/minecraft/class_1856;<init>(Ljava/util/stream/Stream;)V
      named <init> Lnet/minecraft/recipe/Ingredient;<init>(Ljava/util/stream/Stream;)V
    • Ingredient

      private Ingredient(Ingredient.Entry[] entries)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcpz;<init>([Lcpz$c;)V
      intermediary <init> Lnet/minecraft/class_1856;<init>([Lnet/minecraft/class_1856$class_1859;)V
      named <init> Lnet/minecraft/recipe/Ingredient;<init>([Lnet/minecraft/recipe/Ingredient$Entry;)V
  • Method Details

    • getMatchingStacks

      public ItemStack[] getMatchingStacks()
      Mappings:
      Namespace Name Mixin selector
      official a Lcpz;a()[Lcmy;
      intermediary method_8105 Lnet/minecraft/class_1856;method_8105()[Lnet/minecraft/class_1799;
      named getMatchingStacks Lnet/minecraft/recipe/Ingredient;getMatchingStacks()[Lnet/minecraft/item/ItemStack;
    • test

      public boolean test(@Nullable @Nullable ItemStack itemStack)
      Specified by:
      test in interface Predicate<ItemStack>
      Mappings:
      Namespace Name Mixin selector
      official a Lcpz;a(Lcmy;)Z
      intermediary method_8093 Lnet/minecraft/class_1856;method_8093(Lnet/minecraft/class_1799;)Z
      named test Lnet/minecraft/recipe/Ingredient;test(Lnet/minecraft/item/ItemStack;)Z
    • getMatchingItemIds

      public IntList getMatchingItemIds()
      Mappings:
      Namespace Name Mixin selector
      official b Lcpz;b()Lit/unimi/dsi/fastutil/ints/IntList;
      intermediary method_8100 Lnet/minecraft/class_1856;method_8100()Lit/unimi/dsi/fastutil/ints/IntList;
      named getMatchingItemIds Lnet/minecraft/recipe/Ingredient;getMatchingItemIds()Lit/unimi/dsi/fastutil/ints/IntList;
    • write

      public void write(PacketByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      official a Lcpz;a(Lui;)V
      intermediary method_8088 Lnet/minecraft/class_1856;method_8088(Lnet/minecraft/class_2540;)V
      named write Lnet/minecraft/recipe/Ingredient;write(Lnet/minecraft/network/PacketByteBuf;)V
    • isEmpty

      public boolean isEmpty()
      Mappings:
      Namespace Name Mixin selector
      official c Lcpz;c()Z
      intermediary method_8103 Lnet/minecraft/class_1856;method_8103()Z
      named isEmpty Lnet/minecraft/recipe/Ingredient;isEmpty()Z
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
      Mappings:
      Namespace Name Mixin selector
      official equals Lcpz;equals(Ljava/lang/Object;)Z
      intermediary equals Lnet/minecraft/class_1856;equals(Ljava/lang/Object;)Z
      named equals Lnet/minecraft/recipe/Ingredient;equals(Ljava/lang/Object;)Z
    • ofEntries

      private static Ingredient ofEntries(Stream<? extends Ingredient.Entry> entries)
      Mappings:
      Namespace Name Mixin selector
      official b Lcpz;b(Ljava/util/stream/Stream;)Lcpz;
      intermediary method_8092 Lnet/minecraft/class_1856;method_8092(Ljava/util/stream/Stream;)Lnet/minecraft/class_1856;
      named ofEntries Lnet/minecraft/recipe/Ingredient;ofEntries(Ljava/util/stream/Stream;)Lnet/minecraft/recipe/Ingredient;
    • empty

      public static Ingredient empty()
      Mappings:
      Namespace Name Mixin selector
      official d Lcpz;d()Lcpz;
      intermediary method_35226 Lnet/minecraft/class_1856;method_35226()Lnet/minecraft/class_1856;
      named empty Lnet/minecraft/recipe/Ingredient;empty()Lnet/minecraft/recipe/Ingredient;
    • ofItems

      public static Ingredient ofItems(ItemConvertible[] items)
      Mappings:
      Namespace Name Mixin selector
      official a Lcpz;a([Lcto;)Lcpz;
      intermediary method_8091 Lnet/minecraft/class_1856;method_8091([Lnet/minecraft/class_1935;)Lnet/minecraft/class_1856;
      named ofItems Lnet/minecraft/recipe/Ingredient;ofItems([Lnet/minecraft/item/ItemConvertible;)Lnet/minecraft/recipe/Ingredient;
    • ofStacks

      public static Ingredient ofStacks(ItemStack[] stacks)
      Mappings:
      Namespace Name Mixin selector
      official a Lcpz;a([Lcmy;)Lcpz;
      intermediary method_8101 Lnet/minecraft/class_1856;method_8101([Lnet/minecraft/class_1799;)Lnet/minecraft/class_1856;
      named ofStacks Lnet/minecraft/recipe/Ingredient;ofStacks([Lnet/minecraft/item/ItemStack;)Lnet/minecraft/recipe/Ingredient;
    • ofStacks

      public static Ingredient ofStacks(Stream<ItemStack> stacks)
      Mappings:
      Namespace Name Mixin selector
      official a Lcpz;a(Ljava/util/stream/Stream;)Lcpz;
      intermediary method_26964 Lnet/minecraft/class_1856;method_26964(Ljava/util/stream/Stream;)Lnet/minecraft/class_1856;
      named ofStacks Lnet/minecraft/recipe/Ingredient;ofStacks(Ljava/util/stream/Stream;)Lnet/minecraft/recipe/Ingredient;
    • fromTag

      public static Ingredient fromTag(TagKey<Item> tag)
      Mappings:
      Namespace Name Mixin selector
      official a Lcpz;a(Lasw;)Lcpz;
      intermediary method_8106 Lnet/minecraft/class_1856;method_8106(Lnet/minecraft/class_6862;)Lnet/minecraft/class_1856;
      named fromTag Lnet/minecraft/recipe/Ingredient;fromTag(Lnet/minecraft/registry/tag/TagKey;)Lnet/minecraft/recipe/Ingredient;
    • fromPacket

      public static Ingredient fromPacket(PacketByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      official b Lcpz;b(Lui;)Lcpz;
      intermediary method_8086 Lnet/minecraft/class_1856;method_8086(Lnet/minecraft/class_2540;)Lnet/minecraft/class_1856;
      named fromPacket Lnet/minecraft/recipe/Ingredient;fromPacket(Lnet/minecraft/network/PacketByteBuf;)Lnet/minecraft/recipe/Ingredient;
    • createCodec

      private static com.mojang.serialization.Codec<Ingredient> createCodec(boolean allowEmpty)
      Mappings:
      Namespace Name Mixin selector
      official a Lcpz;a(Z)Lcom/mojang/serialization/Codec;
      intermediary method_53725 Lnet/minecraft/class_1856;method_53725(Z)Lcom/mojang/serialization/Codec;
      named createCodec Lnet/minecraft/recipe/Ingredient;createCodec(Z)Lcom/mojang/serialization/Codec;