Package net.minecraft.recipe
Class Ingredient
java.lang.Object
net.minecraft.recipe.Ingredient
- Mappings:
Namespace Name official cpz
intermediary net/minecraft/class_1856
named net/minecraft/recipe/Ingredient
-
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[]
-
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
fromPacket
(PacketByteBuf buf) static Ingredient
boolean
isEmpty()
private static Ingredient
ofEntries
(Stream<? extends Ingredient.Entry> entries) static Ingredient
ofItems
(ItemConvertible[] items) static Ingredient
static Ingredient
boolean
void
write
(PacketByteBuf buf)
-
Field Details
-
EMPTY
- Mappings:
Namespace Name Mixin selector official a
Lcpz;a:Lcpz;
intermediary field_9017
Lnet/minecraft/class_1856;field_9017:Lnet/minecraft/class_1856;
named EMPTY
Lnet/minecraft/recipe/Ingredient;EMPTY:Lnet/minecraft/recipe/Ingredient;
-
ALLOW_EMPTY_CODEC
- Mappings:
Namespace Name Mixin selector official b
Lcpz;b:Lcom/mojang/serialization/Codec;
intermediary field_46095
Lnet/minecraft/class_1856;field_46095:Lcom/mojang/serialization/Codec;
named ALLOW_EMPTY_CODEC
Lnet/minecraft/recipe/Ingredient;ALLOW_EMPTY_CODEC:Lcom/mojang/serialization/Codec;
-
DISALLOW_EMPTY_CODEC
- Mappings:
Namespace Name Mixin selector official c
Lcpz;c:Lcom/mojang/serialization/Codec;
intermediary field_46096
Lnet/minecraft/class_1856;field_46096:Lcom/mojang/serialization/Codec;
named DISALLOW_EMPTY_CODEC
Lnet/minecraft/recipe/Ingredient;DISALLOW_EMPTY_CODEC:Lcom/mojang/serialization/Codec;
-
entries
- Mappings:
Namespace Name Mixin selector official d
Lcpz;d:[Lcpz$c;
intermediary field_9019
Lnet/minecraft/class_1856;field_9019:[Lnet/minecraft/class_1856$class_1859;
named entries
Lnet/minecraft/recipe/Ingredient;entries:[Lnet/minecraft/recipe/Ingredient$Entry;
-
matchingStacks
- Mappings:
Namespace Name Mixin selector official e
Lcpz;e:[Lcmy;
intermediary field_9018
Lnet/minecraft/class_1856;field_9018:[Lnet/minecraft/class_1799;
named matchingStacks
Lnet/minecraft/recipe/Ingredient;matchingStacks:[Lnet/minecraft/item/ItemStack;
-
ids
- Mappings:
Namespace Name Mixin selector official f
Lcpz;f:Lit/unimi/dsi/fastutil/ints/IntList;
intermediary field_9016
Lnet/minecraft/class_1856;field_9016:Lit/unimi/dsi/fastutil/ints/IntList;
named ids
Lnet/minecraft/recipe/Ingredient;ids:Lit/unimi/dsi/fastutil/ints/IntList;
-
-
Constructor Details
-
Ingredient
- Mappings:
Namespace Name Mixin selector official <init>
Lcpz;<init>(Ljava/util/stream/Stream;)V
intermediary <init>
Lnet/minecraft/class_1856;<init>(Ljava/util/stream/Stream;)V
named <init>
Lnet/minecraft/recipe/Ingredient;<init>(Ljava/util/stream/Stream;)V
-
Ingredient
- Mappings:
Namespace Name Mixin selector official <init>
Lcpz;<init>([Lcpz$c;)V
intermediary <init>
Lnet/minecraft/class_1856;<init>([Lnet/minecraft/class_1856$class_1859;)V
named <init>
Lnet/minecraft/recipe/Ingredient;<init>([Lnet/minecraft/recipe/Ingredient$Entry;)V
-
-
Method Details
-
getMatchingStacks
- Mappings:
Namespace Name Mixin selector official a
Lcpz;a()[Lcmy;
intermediary method_8105
Lnet/minecraft/class_1856;method_8105()[Lnet/minecraft/class_1799;
named getMatchingStacks
Lnet/minecraft/recipe/Ingredient;getMatchingStacks()[Lnet/minecraft/item/ItemStack;
-
test
-
getMatchingItemIds
- Mappings:
Namespace Name Mixin selector official b
Lcpz;b()Lit/unimi/dsi/fastutil/ints/IntList;
intermediary method_8100
Lnet/minecraft/class_1856;method_8100()Lit/unimi/dsi/fastutil/ints/IntList;
named getMatchingItemIds
Lnet/minecraft/recipe/Ingredient;getMatchingItemIds()Lit/unimi/dsi/fastutil/ints/IntList;
-
write
- Mappings:
Namespace Name Mixin selector official a
Lcpz;a(Lui;)V
intermediary method_8088
Lnet/minecraft/class_1856;method_8088(Lnet/minecraft/class_2540;)V
named write
Lnet/minecraft/recipe/Ingredient;write(Lnet/minecraft/network/PacketByteBuf;)V
-
isEmpty
public boolean isEmpty()- Mappings:
Namespace Name Mixin selector official c
Lcpz;c()Z
intermediary method_8103
Lnet/minecraft/class_1856;method_8103()Z
named isEmpty
Lnet/minecraft/recipe/Ingredient;isEmpty()Z
-
equals
-
ofEntries
- Mappings:
Namespace Name Mixin selector official b
Lcpz;b(Ljava/util/stream/Stream;)Lcpz;
intermediary method_8092
Lnet/minecraft/class_1856;method_8092(Ljava/util/stream/Stream;)Lnet/minecraft/class_1856;
named ofEntries
Lnet/minecraft/recipe/Ingredient;ofEntries(Ljava/util/stream/Stream;)Lnet/minecraft/recipe/Ingredient;
-
empty
- Mappings:
Namespace Name Mixin selector official d
Lcpz;d()Lcpz;
intermediary method_35226
Lnet/minecraft/class_1856;method_35226()Lnet/minecraft/class_1856;
named empty
Lnet/minecraft/recipe/Ingredient;empty()Lnet/minecraft/recipe/Ingredient;
-
ofItems
- Mappings:
Namespace Name Mixin selector official a
Lcpz;a([Lcto;)Lcpz;
intermediary method_8091
Lnet/minecraft/class_1856;method_8091([Lnet/minecraft/class_1935;)Lnet/minecraft/class_1856;
named ofItems
Lnet/minecraft/recipe/Ingredient;ofItems([Lnet/minecraft/item/ItemConvertible;)Lnet/minecraft/recipe/Ingredient;
-
ofStacks
- Mappings:
Namespace Name Mixin selector official a
Lcpz;a([Lcmy;)Lcpz;
intermediary method_8101
Lnet/minecraft/class_1856;method_8101([Lnet/minecraft/class_1799;)Lnet/minecraft/class_1856;
named ofStacks
Lnet/minecraft/recipe/Ingredient;ofStacks([Lnet/minecraft/item/ItemStack;)Lnet/minecraft/recipe/Ingredient;
-
ofStacks
- Mappings:
Namespace Name Mixin selector official a
Lcpz;a(Ljava/util/stream/Stream;)Lcpz;
intermediary method_26964
Lnet/minecraft/class_1856;method_26964(Ljava/util/stream/Stream;)Lnet/minecraft/class_1856;
named ofStacks
Lnet/minecraft/recipe/Ingredient;ofStacks(Ljava/util/stream/Stream;)Lnet/minecraft/recipe/Ingredient;
-
fromTag
- Mappings:
Namespace Name Mixin selector official a
Lcpz;a(Lasw;)Lcpz;
intermediary method_8106
Lnet/minecraft/class_1856;method_8106(Lnet/minecraft/class_6862;)Lnet/minecraft/class_1856;
named fromTag
Lnet/minecraft/recipe/Ingredient;fromTag(Lnet/minecraft/registry/tag/TagKey;)Lnet/minecraft/recipe/Ingredient;
-
fromPacket
- Mappings:
Namespace Name Mixin selector official b
Lcpz;b(Lui;)Lcpz;
intermediary method_8086
Lnet/minecraft/class_1856;method_8086(Lnet/minecraft/class_2540;)Lnet/minecraft/class_1856;
named fromPacket
Lnet/minecraft/recipe/Ingredient;fromPacket(Lnet/minecraft/network/PacketByteBuf;)Lnet/minecraft/recipe/Ingredient;
-
createCodec
- Mappings:
Namespace Name Mixin selector official a
Lcpz;a(Z)Lcom/mojang/serialization/Codec;
intermediary method_53725
Lnet/minecraft/class_1856;method_53725(Z)Lcom/mojang/serialization/Codec;
named createCodec
Lnet/minecraft/recipe/Ingredient;createCodec(Z)Lcom/mojang/serialization/Codec;
-