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 dad
  • Field Details

    • 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 a Ldad;a:Lzb;
    • OPTIONAL_PACKET_CODEC

      public static final PacketCodec<RegistryByteBuf,Optional<Ingredient>> OPTIONAL_PACKET_CODEC
      Mappings:
      Namespace Name Mixin selector
      named OPTIONAL_PACKET_CODEC Lnet/minecraft/recipe/Ingredient;OPTIONAL_PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;
      intermediary field_52595 Lnet/minecraft/class_1856;field_52595:Lnet/minecraft/class_9139;
      official b Ldad;b:Lzb;
    • ENTRIES_CODEC

      public static final com.mojang.serialization.Codec<RegistryEntryList<Item>> ENTRIES_CODEC
      Mappings:
      Namespace Name Mixin selector
      named ENTRIES_CODEC Lnet/minecraft/recipe/Ingredient;ENTRIES_CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_52596 Lnet/minecraft/class_1856;field_52596:Lcom/mojang/serialization/Codec;
      official c Ldad;c:Lcom/mojang/serialization/Codec;
    • CODEC

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

      private final RegistryEntryList<Item> entries
      Mappings:
      Namespace Name Mixin selector
      named entries Lnet/minecraft/recipe/Ingredient;entries:Lnet/minecraft/registry/entry/RegistryEntryList;
      intermediary field_9019 Lnet/minecraft/class_1856;field_9019:Lnet/minecraft/class_6885;
      official e Ldad;e:Ljr;
    • matchingStacks

      @Nullable private @Nullable List<RegistryEntry<Item>> matchingStacks
      Mappings:
      Namespace Name Mixin selector
      named matchingStacks Lnet/minecraft/recipe/Ingredient;matchingStacks:Ljava/util/List;
      intermediary field_9018 Lnet/minecraft/class_1856;field_9018:Ljava/util/List;
      official f Ldad;f:Ljava/util/List;
  • Constructor Details

    • Ingredient

      private Ingredient(RegistryEntryList<Item> entries)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/recipe/Ingredient;<init>(Lnet/minecraft/registry/entry/RegistryEntryList;)V
      intermediary <init> Lnet/minecraft/class_1856;<init>(Lnet/minecraft/class_6885;)V
      official <init> Ldad;<init>(Ljr;)V
  • Method Details

    • matches

      public static boolean matches(Optional<Ingredient> ingredient, ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      named matches Lnet/minecraft/recipe/Ingredient;matches(Ljava/util/Optional;Lnet/minecraft/item/ItemStack;)Z
      intermediary method_61676 Lnet/minecraft/class_1856;method_61676(Ljava/util/Optional;Lnet/minecraft/class_1799;)Z
      official a Ldad;a(Ljava/util/Optional;Lcvp;)Z
    • getMatchingStacks

      public List<RegistryEntry<Item>> getMatchingStacks()
      Mappings:
      Namespace Name Mixin selector
      named getMatchingStacks Lnet/minecraft/recipe/Ingredient;getMatchingStacks()Ljava/util/List;
      intermediary method_8105 Lnet/minecraft/class_1856;method_8105()Ljava/util/List;
      official a Ldad;a()Ljava/util/List;
    • test

      public boolean test(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 Ldad;a(Lcvp;)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 Ldad;equals(Ljava/lang/Object;)Z
    • ofItem

      public static Ingredient ofItem(ItemConvertible item)
      Mappings:
      Namespace Name Mixin selector
      named ofItem Lnet/minecraft/recipe/Ingredient;ofItem(Lnet/minecraft/item/ItemConvertible;)Lnet/minecraft/recipe/Ingredient;
      intermediary method_8101 Lnet/minecraft/class_1856;method_8101(Lnet/minecraft/class_1935;)Lnet/minecraft/class_1856;
      official a Ldad;a(Ldef;)Ldad;
    • 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 Ldad;a([Ldef;)Ldad;
    • ofItems

      public static Ingredient ofItems(Stream<? extends ItemConvertible> stacks)
      Mappings:
      Namespace Name Mixin selector
      named ofItems Lnet/minecraft/recipe/Ingredient;ofItems(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 Ldad;a(Ljava/util/stream/Stream;)Ldad;
    • fromTag

      public static Ingredient fromTag(RegistryEntryList<Item> tag)
      Mappings:
      Namespace Name Mixin selector
      named fromTag Lnet/minecraft/recipe/Ingredient;fromTag(Lnet/minecraft/registry/entry/RegistryEntryList;)Lnet/minecraft/recipe/Ingredient;
      intermediary method_8106 Lnet/minecraft/class_1856;method_8106(Lnet/minecraft/class_6885;)Lnet/minecraft/class_1856;
      official a Ldad;a(Ljr;)Ldad;