Package net.minecraft.recipe
Class RecipeFinder
java.lang.Object
net.minecraft.recipe.RecipeFinder
public class RecipeFinder extends Object
- Mappings:
Namespace Name official bhn
intermediary net/minecraft/class_1662
named net/minecraft/recipe/RecipeFinder
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) class
RecipeFinder.Filter
-
Field Summary
Fields Modifier and Type Field Description Int2IntMap
idToAmountMap
-
Constructor Summary
Constructors Constructor Description RecipeFinder()
-
Method Summary
Modifier and Type Method Description private void
addItem(int id, int amount)
void
addItem(ItemStack stack)
void
addItem(ItemStack stack, int count)
void
addNormalItem(ItemStack stack)
void
clear()
private boolean
contains(int id)
int
countRecipeCrafts(Recipe<?> recipe, int limit, IntList outMatchingInputIds)
int
countRecipeCrafts(Recipe<?> recipe, IntList outMatchingInputIds)
boolean
findRecipe(Recipe<?> recipe, IntList outMatchingInputIds)
boolean
findRecipe(Recipe<?> recipe, IntList outMatchingInputIds, int amount)
static int
getItemId(ItemStack stack)
static ItemStack
getStackFromId(int id)
private int
take(int id, int amount)
-
Field Details
-
idToAmountMap
- Mappings:
Namespace Name Mixin selector official a
Lbhn;a:Lit/unimi/dsi/fastutil/ints/Int2IntMap;
intermediary field_7550
Lnet/minecraft/class_1662;field_7550:Lit/unimi/dsi/fastutil/ints/Int2IntMap;
named idToAmountMap
Lnet/minecraft/recipe/RecipeFinder;idToAmountMap:Lit/unimi/dsi/fastutil/ints/Int2IntMap;
-
-
Constructor Details
-
RecipeFinder
public RecipeFinder()
-
-
Method Details
-
addNormalItem
- Mappings:
Namespace Name Mixin selector official a
Lbhn;a(Lbnv;)V
intermediary method_7404
Lnet/minecraft/class_1662;method_7404(Lnet/minecraft/class_1799;)V
named addNormalItem
Lnet/minecraft/recipe/RecipeFinder;addNormalItem(Lnet/minecraft/item/ItemStack;)V
-
addItem
- Mappings:
Namespace Name Mixin selector official b
Lbhn;b(Lbnv;)V
intermediary method_7400
Lnet/minecraft/class_1662;method_7400(Lnet/minecraft/class_1799;)V
named addItem
Lnet/minecraft/recipe/RecipeFinder;addItem(Lnet/minecraft/item/ItemStack;)V
-
addItem
- Mappings:
Namespace Name Mixin selector official a
Lbhn;a(Lbnv;I)V
intermediary method_20478
Lnet/minecraft/class_1662;method_20478(Lnet/minecraft/class_1799;I)V
named addItem
Lnet/minecraft/recipe/RecipeFinder;addItem(Lnet/minecraft/item/ItemStack;I)V
-
getItemId
- Mappings:
Namespace Name Mixin selector official c
Lbhn;c(Lbnv;)I
intermediary method_7408
Lnet/minecraft/class_1662;method_7408(Lnet/minecraft/class_1799;)I
named getItemId
Lnet/minecraft/recipe/RecipeFinder;getItemId(Lnet/minecraft/item/ItemStack;)I
-
contains
private boolean contains(int id)- Mappings:
Namespace Name Mixin selector official b
Lbhn;b(I)Z
intermediary method_7410
Lnet/minecraft/class_1662;method_7410(I)Z
named contains
Lnet/minecraft/recipe/RecipeFinder;contains(I)Z
-
take
private int take(int id, int amount)- Mappings:
Namespace Name Mixin selector official a
Lbhn;a(II)I
intermediary method_7411
Lnet/minecraft/class_1662;method_7411(II)I
named take
Lnet/minecraft/recipe/RecipeFinder;take(II)I
-
addItem
private void addItem(int id, int amount)- Mappings:
Namespace Name Mixin selector official b
Lbhn;b(II)V
intermediary method_7401
Lnet/minecraft/class_1662;method_7401(II)V
named addItem
Lnet/minecraft/recipe/RecipeFinder;addItem(II)V
-
findRecipe
- Mappings:
Namespace Name Mixin selector official a
Lbhn;a(Lbqn;Lit/unimi/dsi/fastutil/ints/IntList;)Z
intermediary method_7402
Lnet/minecraft/class_1662;method_7402(Lnet/minecraft/class_1860;Lit/unimi/dsi/fastutil/ints/IntList;)Z
named findRecipe
Lnet/minecraft/recipe/RecipeFinder;findRecipe(Lnet/minecraft/recipe/Recipe;Lit/unimi/dsi/fastutil/ints/IntList;)Z
-
findRecipe
- Mappings:
Namespace Name Mixin selector official a
Lbhn;a(Lbqn;Lit/unimi/dsi/fastutil/ints/IntList;I)Z
intermediary method_7406
Lnet/minecraft/class_1662;method_7406(Lnet/minecraft/class_1860;Lit/unimi/dsi/fastutil/ints/IntList;I)Z
named findRecipe
Lnet/minecraft/recipe/RecipeFinder;findRecipe(Lnet/minecraft/recipe/Recipe;Lit/unimi/dsi/fastutil/ints/IntList;I)Z
-
countRecipeCrafts
- Mappings:
Namespace Name Mixin selector official b
Lbhn;b(Lbqn;Lit/unimi/dsi/fastutil/ints/IntList;)I
intermediary method_7407
Lnet/minecraft/class_1662;method_7407(Lnet/minecraft/class_1860;Lit/unimi/dsi/fastutil/ints/IntList;)I
named countRecipeCrafts
Lnet/minecraft/recipe/RecipeFinder;countRecipeCrafts(Lnet/minecraft/recipe/Recipe;Lit/unimi/dsi/fastutil/ints/IntList;)I
-
countRecipeCrafts
- Mappings:
Namespace Name Mixin selector official a
Lbhn;a(Lbqn;ILit/unimi/dsi/fastutil/ints/IntList;)I
intermediary method_7403
Lnet/minecraft/class_1662;method_7403(Lnet/minecraft/class_1860;ILit/unimi/dsi/fastutil/ints/IntList;)I
named countRecipeCrafts
Lnet/minecraft/recipe/RecipeFinder;countRecipeCrafts(Lnet/minecraft/recipe/Recipe;ILit/unimi/dsi/fastutil/ints/IntList;)I
-
getStackFromId
- Mappings:
Namespace Name Mixin selector official a
Lbhn;a(I)Lbnv;
intermediary method_7405
Lnet/minecraft/class_1662;method_7405(I)Lnet/minecraft/class_1799;
named getStackFromId
Lnet/minecraft/recipe/RecipeFinder;getStackFromId(I)Lnet/minecraft/item/ItemStack;
-
clear
public void clear()- Mappings:
Namespace Name Mixin selector official a
Lbhn;a()V
intermediary method_7409
Lnet/minecraft/class_1662;method_7409()V
named clear
Lnet/minecraft/recipe/RecipeFinder;clear()V
-