Package net.minecraft.recipe
Class Ingredient
java.lang.Object
net.minecraft.recipe.Ingredient
- Mappings:
Namespace Name named net/minecraft/recipe/Ingredient
intermediary net/minecraft/class_1856
official dbz
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<Ingredient> private final RegistryEntryList
<Item> static final com.mojang.serialization.Codec
<RegistryEntryList<Item>> private @Nullable List
<RegistryEntry<Item>> static final PacketCodec
<RegistryByteBuf, Optional<Ingredient>> static final PacketCodec
<RegistryByteBuf, Ingredient> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static SlotDisplay
createDisplayWithRemainder
(RegistryEntry<Item> displayedItem) boolean
static Ingredient
fromTag
(RegistryEntryList<Item> tag) static boolean
matches
(Optional<Ingredient> ingredient, ItemStack stack) static Ingredient
ofItem
(ItemConvertible item) static Ingredient
ofItems
(Stream<? extends ItemConvertible> stacks) static Ingredient
ofItems
(ItemConvertible[] items) boolean
static SlotDisplay
toDisplay
(Optional<Ingredient> ingredient)
-
Field Details
-
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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
-
equals
-
ofItem
- 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
- 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
- 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
- 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
- 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
- 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
- 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;
-