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 cyu
-
Nested Class Summary
Modifier and TypeClassDescriptionprivate static interface
private static final record
private static final record
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<Ingredient> static final com.mojang.serialization.Codec
<Ingredient> static final Ingredient
private final Ingredient.Entry[]
static final PacketCodec
<RegistryByteBuf, Ingredient> -
Constructor Summary
ModifierConstructorDescriptionprivate
Ingredient
(Stream<? extends Ingredient.Entry> entries) private
Ingredient
(Ingredient.Entry[] entries) -
Method Summary
Modifier and TypeMethodDescriptionprivate static com.mojang.serialization.Codec
<Ingredient> createCodec
(boolean allowEmpty) static Ingredient
empty()
boolean
static Ingredient
boolean
isEmpty()
private static Ingredient
ofEntries
(Stream<? extends Ingredient.Entry> entries) static Ingredient
ofItems
(ItemConvertible[] items) static Ingredient
static Ingredient
boolean
-
Field Details
-
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
- 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:Lyw;
-
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
- 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
- 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
- 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:[Lcuo;
-
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
- 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
- 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
- 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()[Lcuo;
-
test
-
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
-
ofEntries
- 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
- 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
- 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([Ldct;)Lcyu;
-
ofStacks
- 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([Lcuo;)Lcyu;
-
ofStacks
- 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
- 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(Lawt;)Lcyu;
-
createCodec
- 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;
-