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 dbz
  • 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 Ldbz;a:Lzt;
    • 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 Ldbz;b:Lzt;
    • 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 Ldbz;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 Ldbz;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 Ldbz;e:Lju;
    • matchingItems

      @Nullable private @Nullable List<RegistryEntry<Item>> matchingItems
      Mappings:
      Namespace Name Mixin selector
      named matchingItems Lnet/minecraft/recipe/Ingredient;matchingItems:Ljava/util/List;
      intermediary field_9018 Lnet/minecraft/class_1856;field_9018:Ljava/util/List;
      official f Ldbz;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> Ldbz;<init>(Lju;)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 Ldbz;a(Ljava/util/Optional;Lcxo;)Z
    • getMatchingItems

      public List<RegistryEntry<Item>> getMatchingItems()
      Mappings:
      Namespace Name Mixin selector
      named getMatchingItems Lnet/minecraft/recipe/Ingredient;getMatchingItems()Ljava/util/List;
      intermediary method_8105 Lnet/minecraft/class_1856;method_8105()Ljava/util/List;
      official a Ldbz;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 Ldbz;a(Lcxo;)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 Ldbz;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 Ldbz;a(Ldhg;)Ldbz;
    • 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 Ldbz;a([Ldhg;)Ldbz;
    • 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 Ldbz;a(Ljava/util/stream/Stream;)Ldbz;
    • 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 Ldbz;a(Lju;)Ldbz;
    • toDisplay

      public SlotDisplay toDisplay()
      Mappings:
      Namespace Name Mixin selector
      named toDisplay Lnet/minecraft/recipe/Ingredient;toDisplay()Lnet/minecraft/recipe/display/SlotDisplay;
      intermediary method_64673 Lnet/minecraft/class_1856;method_64673()Lnet/minecraft/class_10302;
      official b Ldbz;b()Lddo;
    • toDisplay

      public static SlotDisplay toDisplay(Optional<Ingredient> ingredient)
      Mappings:
      Namespace Name Mixin selector
      named toDisplay Lnet/minecraft/recipe/Ingredient;toDisplay(Ljava/util/Optional;)Lnet/minecraft/recipe/display/SlotDisplay;
      intermediary method_64980 Lnet/minecraft/class_1856;method_64980(Ljava/util/Optional;)Lnet/minecraft/class_10302;
      official a Ldbz;a(Ljava/util/Optional;)Lddo;
    • createDisplayWithRemainder

      private static SlotDisplay createDisplayWithRemainder(RegistryEntry<Item> displayedItem)
      Mappings:
      Namespace Name Mixin selector
      named createDisplayWithRemainder Lnet/minecraft/recipe/Ingredient;createDisplayWithRemainder(Lnet/minecraft/registry/entry/RegistryEntry;)Lnet/minecraft/recipe/display/SlotDisplay;
      intermediary method_64981 Lnet/minecraft/class_1856;method_64981(Lnet/minecraft/class_6880;)Lnet/minecraft/class_10302;
      official a Ldbz;a(Ljq;)Lddo;