Package net.minecraft.recipe
Class RecipeMatcher.Matcher
java.lang.Object
net.minecraft.recipe.RecipeMatcher.Matcher
- Enclosing class:
RecipeMatcher
- Mappings:
Namespace Name official byq$aintermediary net/minecraft/class_1662$class_1663named net/minecraft/recipe/RecipeMatcher$Matcher
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final IntListprivate final List<Ingredient>private final Recipe<?>private final int[]private final BitSetprivate final intprivate final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidaddRequirement(boolean reversed, int itemId) private booleancheckRequirement(boolean reversed, int itemIndex, int ingredientIndex) private booleancheckRequirements(int multiplier) intcountCrafts(int minimum, @Nullable IntList output) private int[]private voidflipRequirement(boolean reversed, int itemIndex, int ingredientIndex) private intprivate booleangetRequirement(int itemId) private intgetRequirementIndex(boolean reversed, int itemId) private intgetRequirementIndex(boolean reversed, int itemIndex, int ingredientIndex) private intgetRequirementIndex(int itemId) private booleanisRequirementUnfulfilled(boolean reversed, int itemId) booleanprivate booleanneedsRequirement(boolean reversed, int itemIndex, int ingredientIndex) private voidunfulfillRequirement(int itemId)
-
Field Details
-
recipe
- Mappings:
Namespace Name Mixin selector official bLbyq$a;b:Lcja;intermediary field_7555Lnet/minecraft/class_1662$class_1663;field_7555:Lnet/minecraft/class_1860;named recipeLnet/minecraft/recipe/RecipeMatcher$Matcher;recipe:Lnet/minecraft/recipe/Recipe;
-
ingredients
- Mappings:
Namespace Name Mixin selector official cLbyq$a;c:Ljava/util/List;intermediary field_7552Lnet/minecraft/class_1662$class_1663;field_7552:Ljava/util/List;named ingredientsLnet/minecraft/recipe/RecipeMatcher$Matcher;ingredients:Ljava/util/List;
-
totalIngredients
private final int totalIngredients- Mappings:
Namespace Name Mixin selector official dLbyq$a;d:Iintermediary field_7556Lnet/minecraft/class_1662$class_1663;field_7556:Inamed totalIngredientsLnet/minecraft/recipe/RecipeMatcher$Matcher;totalIngredients:I
-
requiredItems
private final int[] requiredItems- Mappings:
Namespace Name Mixin selector official eLbyq$a;e:[Iintermediary field_7551Lnet/minecraft/class_1662$class_1663;field_7551:[Inamed requiredItemsLnet/minecraft/recipe/RecipeMatcher$Matcher;requiredItems:[I
-
totalRequiredItems
private final int totalRequiredItems- Mappings:
Namespace Name Mixin selector official fLbyq$a;f:Iintermediary field_7553Lnet/minecraft/class_1662$class_1663;field_7553:Inamed totalRequiredItemsLnet/minecraft/recipe/RecipeMatcher$Matcher;totalRequiredItems:I
-
requirementsMatrix
- Mappings:
Namespace Name Mixin selector official gLbyq$a;g:Ljava/util/BitSet;intermediary field_7558Lnet/minecraft/class_1662$class_1663;field_7558:Ljava/util/BitSet;named requirementsMatrixLnet/minecraft/recipe/RecipeMatcher$Matcher;requirementsMatrix:Ljava/util/BitSet;
-
ingredientItemLookup
- Mappings:
Namespace Name Mixin selector official hLbyq$a;h:Lit/unimi/dsi/fastutil/ints/IntList;intermediary field_7557Lnet/minecraft/class_1662$class_1663;field_7557:Lit/unimi/dsi/fastutil/ints/IntList;named ingredientItemLookupLnet/minecraft/recipe/RecipeMatcher$Matcher;ingredientItemLookup:Lit/unimi/dsi/fastutil/ints/IntList;
-
-
Constructor Details
-
Matcher
- Mappings:
Namespace Name Mixin selector official <init>Lbyq$a;<init>(Lbyq;Lcja;)Vintermediary <init>Lnet/minecraft/class_1662$class_1663;<init>(Lnet/minecraft/class_1662;Lnet/minecraft/class_1860;)Vnamed <init>Lnet/minecraft/recipe/RecipeMatcher$Matcher;<init>(Lnet/minecraft/recipe/RecipeMatcher;Lnet/minecraft/recipe/Recipe;)V
-
-
Method Details
-
match
- Mappings:
Namespace Name Mixin selector official aLbyq$a;a(ILit/unimi/dsi/fastutil/ints/IntList;)Zintermediary method_7417Lnet/minecraft/class_1662$class_1663;method_7417(ILit/unimi/dsi/fastutil/ints/IntList;)Znamed matchLnet/minecraft/recipe/RecipeMatcher$Matcher;match(ILit/unimi/dsi/fastutil/ints/IntList;)Z
-
createItemRequirementList
private int[] createItemRequirementList()- Mappings:
Namespace Name Mixin selector official aLbyq$a;a()[Iintermediary method_7422Lnet/minecraft/class_1662$class_1663;method_7422()[Inamed createItemRequirementListLnet/minecraft/recipe/RecipeMatcher$Matcher;createItemRequirementList()[I
-
checkRequirements
private boolean checkRequirements(int multiplier) - Mappings:
Namespace Name Mixin selector official aLbyq$a;a(I)Zintermediary method_7423Lnet/minecraft/class_1662$class_1663;method_7423(I)Znamed checkRequirementsLnet/minecraft/recipe/RecipeMatcher$Matcher;checkRequirements(I)Z
-
getRequirement
private boolean getRequirement(int itemId) - Mappings:
Namespace Name Mixin selector official bLbyq$a;b(I)Zintermediary method_7416Lnet/minecraft/class_1662$class_1663;method_7416(I)Znamed getRequirementLnet/minecraft/recipe/RecipeMatcher$Matcher;getRequirement(I)Z
-
unfulfillRequirement
private void unfulfillRequirement(int itemId) - Mappings:
Namespace Name Mixin selector official cLbyq$a;c(I)Vintermediary method_7421Lnet/minecraft/class_1662$class_1663;method_7421(I)Vnamed unfulfillRequirementLnet/minecraft/recipe/RecipeMatcher$Matcher;unfulfillRequirement(I)V
-
getRequirementIndex
private int getRequirementIndex(int itemId) - Mappings:
Namespace Name Mixin selector official dLbyq$a;d(I)Iintermediary method_7419Lnet/minecraft/class_1662$class_1663;method_7419(I)Inamed getRequirementIndexLnet/minecraft/recipe/RecipeMatcher$Matcher;getRequirementIndex(I)I
-
needsRequirement
private boolean needsRequirement(boolean reversed, int itemIndex, int ingredientIndex) - Mappings:
Namespace Name Mixin selector official aLbyq$a;a(ZII)Zintermediary method_7418Lnet/minecraft/class_1662$class_1663;method_7418(ZII)Znamed needsRequirementLnet/minecraft/recipe/RecipeMatcher$Matcher;needsRequirement(ZII)Z
-
checkRequirement
private boolean checkRequirement(boolean reversed, int itemIndex, int ingredientIndex) - Mappings:
Namespace Name Mixin selector official bLbyq$a;b(ZII)Zintermediary method_7425Lnet/minecraft/class_1662$class_1663;method_7425(ZII)Znamed checkRequirementLnet/minecraft/recipe/RecipeMatcher$Matcher;checkRequirement(ZII)Z
-
flipRequirement
private void flipRequirement(boolean reversed, int itemIndex, int ingredientIndex) - Mappings:
Namespace Name Mixin selector official cLbyq$a;c(ZII)Vintermediary method_7414Lnet/minecraft/class_1662$class_1663;method_7414(ZII)Vnamed flipRequirementLnet/minecraft/recipe/RecipeMatcher$Matcher;flipRequirement(ZII)V
-
getRequirementIndex
private int getRequirementIndex(boolean reversed, int itemIndex, int ingredientIndex) - Mappings:
Namespace Name Mixin selector official dLbyq$a;d(ZII)Iintermediary method_7420Lnet/minecraft/class_1662$class_1663;method_7420(ZII)Inamed getRequirementIndexLnet/minecraft/recipe/RecipeMatcher$Matcher;getRequirementIndex(ZII)I
-
addRequirement
private void addRequirement(boolean reversed, int itemId) - Mappings:
Namespace Name Mixin selector official aLbyq$a;a(ZI)Vintermediary method_7413Lnet/minecraft/class_1662$class_1663;method_7413(ZI)Vnamed addRequirementLnet/minecraft/recipe/RecipeMatcher$Matcher;addRequirement(ZI)V
-
isRequirementUnfulfilled
private boolean isRequirementUnfulfilled(boolean reversed, int itemId) - Mappings:
Namespace Name Mixin selector official bLbyq$a;b(ZI)Zintermediary method_7426Lnet/minecraft/class_1662$class_1663;method_7426(ZI)Znamed isRequirementUnfulfilledLnet/minecraft/recipe/RecipeMatcher$Matcher;isRequirementUnfulfilled(ZI)Z
-
getRequirementIndex
private int getRequirementIndex(boolean reversed, int itemId) - Mappings:
Namespace Name Mixin selector official cLbyq$a;c(ZI)Iintermediary method_7424Lnet/minecraft/class_1662$class_1663;method_7424(ZI)Inamed getRequirementIndexLnet/minecraft/recipe/RecipeMatcher$Matcher;getRequirementIndex(ZI)I
-
countCrafts
- Mappings:
Namespace Name Mixin selector official bLbyq$a;b(ILit/unimi/dsi/fastutil/ints/IntList;)Iintermediary method_7427Lnet/minecraft/class_1662$class_1663;method_7427(ILit/unimi/dsi/fastutil/ints/IntList;)Inamed countCraftsLnet/minecraft/recipe/RecipeMatcher$Matcher;countCrafts(ILit/unimi/dsi/fastutil/ints/IntList;)I
-
getMaximumCrafts
private int getMaximumCrafts()- Mappings:
Namespace Name Mixin selector official bLbyq$a;b()Iintermediary method_7415Lnet/minecraft/class_1662$class_1663;method_7415()Inamed getMaximumCraftsLnet/minecraft/recipe/RecipeMatcher$Matcher;getMaximumCrafts()I
-