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
named net/minecraft/recipe/Ingredient
intermediary net/minecraft/class_1856
official cyu
  • Field Details

    • EMPTY

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

      public static final PacketCodec<RegistryByteBuf,Ingredient> PACKET_CODEC
      Mappings:
      Namespace Name Mixin selector
      named PACKET_CODEC Lnet/minecraft/recipe/Ingredient;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;
      intermediary field_48355 Lnet/minecraft/class_1856;field_48355:Lnet/minecraft/class_9139;
      official b Lcyu;b:Lzn;
    • ALLOW_EMPTY_CODEC

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

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

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

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

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

    • Ingredient

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

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

    • getMatchingStacks

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

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

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

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

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

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

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

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

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

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

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

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