Package net.minecraft.recipe
Class Ingredient
java.lang.Object
net.minecraft.recipe.Ingredient
public final class Ingredient extends Object implements Predicate<ItemStack>
- Mappings:
Namespace Name official bqk
intermediary net/minecraft/class_1856
named net/minecraft/recipe/Ingredient
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static interface
Ingredient.Entry
(package private) static class
Ingredient.StackEntry
(package private) static class
Ingredient.TagEntry
-
Field Summary
Fields Modifier and Type Field Description static Ingredient
EMPTY
private Ingredient.Entry[]
entries
private IntList
ids
private ItemStack[]
matchingStacks
-
Constructor Summary
Constructors Modifier Constructor Description private
Ingredient(Stream<? extends Ingredient.Entry> entries)
-
Method Summary
Modifier and Type Method Description private void
cacheMatchingStacks()
private static Ingredient.Entry
entryFromJson(JsonObject json)
static Ingredient
fromJson(JsonElement json)
static Ingredient
fromPacket(PacketByteBuf buf)
static Ingredient
fromTag(Tag<Item> tag)
IntList
getIds()
ItemStack[]
getMatchingStacksClient()
boolean
isEmpty()
private static Ingredient
ofEntries(Stream<? extends Ingredient.Entry> entries)
static Ingredient
ofItems(ItemConvertible[] items)
static Ingredient
ofStacks(Stream<ItemStack> stacks)
static Ingredient
ofStacks(ItemStack[] stacks)
boolean
test(ItemStack itemStack)
JsonElement
toJson()
void
write(PacketByteBuf buf)
-
Field Details
-
EMPTY
- Mappings:
Namespace Name Mixin selector official a
Lbqk;a:Lbqk;
intermediary field_9017
Lnet/minecraft/class_1856;field_9017:Lnet/minecraft/class_1856;
named EMPTY
Lnet/minecraft/recipe/Ingredient;EMPTY:Lnet/minecraft/recipe/Ingredient;
-
entries
- Mappings:
Namespace Name Mixin selector official b
Lbqk;b:[Lbqk$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 c
Lbqk;c:[Lbnv;
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 d
Lbqk;d: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>
Lbqk;<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
-
-
Method Details
-
getMatchingStacksClient
- Mappings:
Namespace Name Mixin selector official a
Lbqk;a()[Lbnv;
intermediary method_8105
Lnet/minecraft/class_1856;method_8105()[Lnet/minecraft/class_1799;
named getMatchingStacksClient
Lnet/minecraft/recipe/Ingredient;getMatchingStacksClient()[Lnet/minecraft/item/ItemStack;
-
cacheMatchingStacks
private void cacheMatchingStacks()- Mappings:
Namespace Name Mixin selector official f
Lbqk;f()V
intermediary method_8096
Lnet/minecraft/class_1856;method_8096()V
named cacheMatchingStacks
Lnet/minecraft/recipe/Ingredient;cacheMatchingStacks()V
-
test
-
getIds
- Mappings:
Namespace Name Mixin selector official b
Lbqk;b()Lit/unimi/dsi/fastutil/ints/IntList;
intermediary method_8100
Lnet/minecraft/class_1856;method_8100()Lit/unimi/dsi/fastutil/ints/IntList;
named getIds
Lnet/minecraft/recipe/Ingredient;getIds()Lit/unimi/dsi/fastutil/ints/IntList;
-
write
- Mappings:
Namespace Name Mixin selector official a
Lbqk;a(Lnw;)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
-
toJson
- Mappings:
Namespace Name Mixin selector official c
Lbqk;c()Lcom/google/gson/JsonElement;
intermediary method_8089
Lnet/minecraft/class_1856;method_8089()Lcom/google/gson/JsonElement;
named toJson
Lnet/minecraft/recipe/Ingredient;toJson()Lcom/google/gson/JsonElement;
-
isEmpty
public boolean isEmpty()- Mappings:
Namespace Name Mixin selector official d
Lbqk;d()Z
intermediary method_8103
Lnet/minecraft/class_1856;method_8103()Z
named isEmpty
Lnet/minecraft/recipe/Ingredient;isEmpty()Z
-
ofEntries
- Mappings:
Namespace Name Mixin selector official b
Lbqk;b(Ljava/util/stream/Stream;)Lbqk;
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;
-
ofItems
- Mappings:
Namespace Name Mixin selector official a
Lbqk;a([Lbtu;)Lbqk;
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
Lbqk;a([Lbnv;)Lbqk;
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
Lbqk;a(Ljava/util/stream/Stream;)Lbqk;
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
Lbqk;a(Lafc;)Lbqk;
intermediary method_8106
Lnet/minecraft/class_1856;method_8106(Lnet/minecraft/class_3494;)Lnet/minecraft/class_1856;
named fromTag
Lnet/minecraft/recipe/Ingredient;fromTag(Lnet/minecraft/tag/Tag;)Lnet/minecraft/recipe/Ingredient;
-
fromPacket
- Mappings:
Namespace Name Mixin selector official b
Lbqk;b(Lnw;)Lbqk;
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;
-
fromJson
- Mappings:
Namespace Name Mixin selector official a
Lbqk;a(Lcom/google/gson/JsonElement;)Lbqk;
intermediary method_8102
Lnet/minecraft/class_1856;method_8102(Lcom/google/gson/JsonElement;)Lnet/minecraft/class_1856;
named fromJson
Lnet/minecraft/recipe/Ingredient;fromJson(Lcom/google/gson/JsonElement;)Lnet/minecraft/recipe/Ingredient;
-
entryFromJson
- Mappings:
Namespace Name Mixin selector official a
Lbqk;a(Lcom/google/gson/JsonObject;)Lbqk$c;
intermediary method_8107
Lnet/minecraft/class_1856;method_8107(Lcom/google/gson/JsonObject;)Lnet/minecraft/class_1856$class_1859;
named entryFromJson
Lnet/minecraft/recipe/Ingredient;entryFromJson(Lcom/google/gson/JsonObject;)Lnet/minecraft/recipe/Ingredient$Entry;
-