Package net.minecraft.recipe
Class RecipeMatcher.Matcher
java.lang.Object
net.minecraft.recipe.RecipeMatcher.Matcher
- Enclosing class:
RecipeMatcher
- Mappings:
Namespace Name named net/minecraft/recipe/RecipeMatcher$Matcher
intermediary net/minecraft/class_1662$class_1663
official cnd$a
-
Field Summary
Modifier and TypeFieldDescriptionprivate final IntList
private final List
<Ingredient> private final Recipe
<?> private final int[]
private final BitSet
private final int
private final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
addRequirement
(boolean reversed, int itemId) private boolean
checkRequirement
(boolean reversed, int itemIndex, int ingredientIndex) private boolean
checkRequirements
(int multiplier) int
countCrafts
(int minimum, @Nullable IntList output) private int[]
private void
flipRequirement
(boolean reversed, int itemIndex, int ingredientIndex) private int
private boolean
getRequirement
(int itemId) private int
getRequirementIndex
(boolean reversed, int itemId) private int
getRequirementIndex
(boolean reversed, int itemIndex, int ingredientIndex) private int
getRequirementIndex
(int itemId) private boolean
isRequirementUnfulfilled
(boolean reversed, int itemId) boolean
private boolean
needsRequirement
(boolean reversed, int itemIndex, int ingredientIndex) private void
unfulfillRequirement
(int itemId)
-
Field Details
-
recipe
- Mappings:
Namespace Name Mixin selector named recipe
Lnet/minecraft/recipe/RecipeMatcher$Matcher;recipe:Lnet/minecraft/recipe/Recipe;
intermediary field_7555
Lnet/minecraft/class_1662$class_1663;field_7555:Lnet/minecraft/class_1860;
official b
Lcnd$a;b:Lcyx;
-
ingredients
- Mappings:
Namespace Name Mixin selector named ingredients
Lnet/minecraft/recipe/RecipeMatcher$Matcher;ingredients:Ljava/util/List;
intermediary field_7552
Lnet/minecraft/class_1662$class_1663;field_7552:Ljava/util/List;
official c
Lcnd$a;c:Ljava/util/List;
-
totalIngredients
private final int totalIngredients- Mappings:
Namespace Name Mixin selector named totalIngredients
Lnet/minecraft/recipe/RecipeMatcher$Matcher;totalIngredients:I
intermediary field_7556
Lnet/minecraft/class_1662$class_1663;field_7556:I
official d
Lcnd$a;d:I
-
requiredItems
private final int[] requiredItems- Mappings:
Namespace Name Mixin selector named requiredItems
Lnet/minecraft/recipe/RecipeMatcher$Matcher;requiredItems:[I
intermediary field_7551
Lnet/minecraft/class_1662$class_1663;field_7551:[I
official e
Lcnd$a;e:[I
-
totalRequiredItems
private final int totalRequiredItems- Mappings:
Namespace Name Mixin selector named totalRequiredItems
Lnet/minecraft/recipe/RecipeMatcher$Matcher;totalRequiredItems:I
intermediary field_7553
Lnet/minecraft/class_1662$class_1663;field_7553:I
official f
Lcnd$a;f:I
-
requirementsMatrix
- Mappings:
Namespace Name Mixin selector named requirementsMatrix
Lnet/minecraft/recipe/RecipeMatcher$Matcher;requirementsMatrix:Ljava/util/BitSet;
intermediary field_7558
Lnet/minecraft/class_1662$class_1663;field_7558:Ljava/util/BitSet;
official g
Lcnd$a;g:Ljava/util/BitSet;
-
ingredientItemLookup
- Mappings:
Namespace Name Mixin selector named ingredientItemLookup
Lnet/minecraft/recipe/RecipeMatcher$Matcher;ingredientItemLookup:Lit/unimi/dsi/fastutil/ints/IntList;
intermediary field_7557
Lnet/minecraft/class_1662$class_1663;field_7557:Lit/unimi/dsi/fastutil/ints/IntList;
official h
Lcnd$a;h:Lit/unimi/dsi/fastutil/ints/IntList;
-
-
Constructor Details
-
Matcher
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/recipe/RecipeMatcher$Matcher;<init>(Lnet/minecraft/recipe/RecipeMatcher;Lnet/minecraft/recipe/Recipe;)V
intermediary <init>
Lnet/minecraft/class_1662$class_1663;<init>(Lnet/minecraft/class_1662;Lnet/minecraft/class_1860;)V
official <init>
Lcnd$a;<init>(Lcnd;Lcyx;)V
-
-
Method Details
-
match
- Mappings:
Namespace Name Mixin selector named match
Lnet/minecraft/recipe/RecipeMatcher$Matcher;match(ILit/unimi/dsi/fastutil/ints/IntList;)Z
intermediary method_7417
Lnet/minecraft/class_1662$class_1663;method_7417(ILit/unimi/dsi/fastutil/ints/IntList;)Z
official a
Lcnd$a;a(ILit/unimi/dsi/fastutil/ints/IntList;)Z
-
createItemRequirementList
private int[] createItemRequirementList()- Mappings:
Namespace Name Mixin selector named createItemRequirementList
Lnet/minecraft/recipe/RecipeMatcher$Matcher;createItemRequirementList()[I
intermediary method_7422
Lnet/minecraft/class_1662$class_1663;method_7422()[I
official a
Lcnd$a;a()[I
-
checkRequirements
private boolean checkRequirements(int multiplier) - Mappings:
Namespace Name Mixin selector named checkRequirements
Lnet/minecraft/recipe/RecipeMatcher$Matcher;checkRequirements(I)Z
intermediary method_7423
Lnet/minecraft/class_1662$class_1663;method_7423(I)Z
official a
Lcnd$a;a(I)Z
-
getRequirement
private boolean getRequirement(int itemId) - Mappings:
Namespace Name Mixin selector named getRequirement
Lnet/minecraft/recipe/RecipeMatcher$Matcher;getRequirement(I)Z
intermediary method_7416
Lnet/minecraft/class_1662$class_1663;method_7416(I)Z
official b
Lcnd$a;b(I)Z
-
unfulfillRequirement
private void unfulfillRequirement(int itemId) - Mappings:
Namespace Name Mixin selector named unfulfillRequirement
Lnet/minecraft/recipe/RecipeMatcher$Matcher;unfulfillRequirement(I)V
intermediary method_7421
Lnet/minecraft/class_1662$class_1663;method_7421(I)V
official c
Lcnd$a;c(I)V
-
getRequirementIndex
private int getRequirementIndex(int itemId) - Mappings:
Namespace Name Mixin selector named getRequirementIndex
Lnet/minecraft/recipe/RecipeMatcher$Matcher;getRequirementIndex(I)I
intermediary method_7419
Lnet/minecraft/class_1662$class_1663;method_7419(I)I
official d
Lcnd$a;d(I)I
-
needsRequirement
private boolean needsRequirement(boolean reversed, int itemIndex, int ingredientIndex) - Mappings:
Namespace Name Mixin selector named needsRequirement
Lnet/minecraft/recipe/RecipeMatcher$Matcher;needsRequirement(ZII)Z
intermediary method_7418
Lnet/minecraft/class_1662$class_1663;method_7418(ZII)Z
official a
Lcnd$a;a(ZII)Z
-
checkRequirement
private boolean checkRequirement(boolean reversed, int itemIndex, int ingredientIndex) - Mappings:
Namespace Name Mixin selector named checkRequirement
Lnet/minecraft/recipe/RecipeMatcher$Matcher;checkRequirement(ZII)Z
intermediary method_7425
Lnet/minecraft/class_1662$class_1663;method_7425(ZII)Z
official b
Lcnd$a;b(ZII)Z
-
flipRequirement
private void flipRequirement(boolean reversed, int itemIndex, int ingredientIndex) - Mappings:
Namespace Name Mixin selector named flipRequirement
Lnet/minecraft/recipe/RecipeMatcher$Matcher;flipRequirement(ZII)V
intermediary method_7414
Lnet/minecraft/class_1662$class_1663;method_7414(ZII)V
official c
Lcnd$a;c(ZII)V
-
getRequirementIndex
private int getRequirementIndex(boolean reversed, int itemIndex, int ingredientIndex) - Mappings:
Namespace Name Mixin selector named getRequirementIndex
Lnet/minecraft/recipe/RecipeMatcher$Matcher;getRequirementIndex(ZII)I
intermediary method_7420
Lnet/minecraft/class_1662$class_1663;method_7420(ZII)I
official d
Lcnd$a;d(ZII)I
-
addRequirement
private void addRequirement(boolean reversed, int itemId) - Mappings:
Namespace Name Mixin selector named addRequirement
Lnet/minecraft/recipe/RecipeMatcher$Matcher;addRequirement(ZI)V
intermediary method_7413
Lnet/minecraft/class_1662$class_1663;method_7413(ZI)V
official a
Lcnd$a;a(ZI)V
-
isRequirementUnfulfilled
private boolean isRequirementUnfulfilled(boolean reversed, int itemId) - Mappings:
Namespace Name Mixin selector named isRequirementUnfulfilled
Lnet/minecraft/recipe/RecipeMatcher$Matcher;isRequirementUnfulfilled(ZI)Z
intermediary method_7426
Lnet/minecraft/class_1662$class_1663;method_7426(ZI)Z
official b
Lcnd$a;b(ZI)Z
-
getRequirementIndex
private int getRequirementIndex(boolean reversed, int itemId) - Mappings:
Namespace Name Mixin selector named getRequirementIndex
Lnet/minecraft/recipe/RecipeMatcher$Matcher;getRequirementIndex(ZI)I
intermediary method_7424
Lnet/minecraft/class_1662$class_1663;method_7424(ZI)I
official c
Lcnd$a;c(ZI)I
-
countCrafts
- Mappings:
Namespace Name Mixin selector named countCrafts
Lnet/minecraft/recipe/RecipeMatcher$Matcher;countCrafts(ILit/unimi/dsi/fastutil/ints/IntList;)I
intermediary method_7427
Lnet/minecraft/class_1662$class_1663;method_7427(ILit/unimi/dsi/fastutil/ints/IntList;)I
official b
Lcnd$a;b(ILit/unimi/dsi/fastutil/ints/IntList;)I
-
getMaximumCrafts
private int getMaximumCrafts()- Mappings:
Namespace Name Mixin selector named getMaximumCrafts
Lnet/minecraft/recipe/RecipeMatcher$Matcher;getMaximumCrafts()I
intermediary method_7415
Lnet/minecraft/class_1662$class_1663;method_7415()I
official b
Lcnd$a;b()I
-