Package net.minecraft.recipe
Class RecipeMatcher.Matcher
java.lang.Object
net.minecraft.recipe.RecipeMatcher.Matcher
- Enclosing class:
- RecipeMatcher<T>
- Mappings:
- Namespace - Name - named - net/minecraft/recipe/RecipeMatcher$Matcher- intermediary - net/minecraft/class_1662$class_1663- official - cpc$c
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final BitSetprivate final IntListprivate final List<? extends RecipeMatcher.RawIngredient<T>> private final intprivate final int
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprivate voidclear(int start, int offset) private voidprivate voidintcountCrafts(int max, @Nullable RecipeMatcher.ItemCallback<T> itemCallback) findIngredientItemLookup(int itemIndex) private intprivate intprivate intgetMatchIndex(int itemIndex, int ingredientIndex) private intgetMissingIndex(int itemIndex, int ingredientIndex) private intprivate intprivate booleangetRequirement(int itemId) private intgetRequirementIndex(int itemId) private intprivate intprivate intgetVisitedIngredientIndex(int index) private intprivate intprivate intgetVisitedItemIndex(int index) private intprivate intprivate booleanhasVisitedIngredient(int index) private voidprivate static booleanisItem(int index) private booleanisMissing(int itemIndex, int ingredientIndex) private booleanisRequirementUnfulfilled(int index) private voidmarkIngredientVisited(int index) private voidmarkItemVisited(int index) private voidmarkMissing(int itemIndex, int ingredientIndex) private voidmarkNotMissing(int itemIndex, int ingredientIndex) booleanmatch(int quantity, @Nullable RecipeMatcher.ItemCallback<T> itemCallback) private booleanmatches(int itemIndex, int ingredientIndex) private voidsetMatch(int itemIndex, int ingredientIndex) tryFindIngredientItemLookup(int min) private voidunfulfillRequirement(int itemId) 
- 
Field Details- 
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- Lcpc$c;c:Ljava/util/List;
 
- 
totalIngredientsprivate 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- Lcpc$c;d:I
 
- 
requiredItems- Mappings:
- Namespace - Name - Mixin selector - named - requiredItems- Lnet/minecraft/recipe/RecipeMatcher$Matcher;requiredItems:Ljava/util/List;- intermediary - field_7551- Lnet/minecraft/class_1662$class_1663;field_7551:Ljava/util/List;- official - e- Lcpc$c;e:Ljava/util/List;
 
- 
totalRequiredItemsprivate 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- Lcpc$c;f:I
 
- 
bits- Mappings:
- Namespace - Name - Mixin selector - named - bits- Lnet/minecraft/recipe/RecipeMatcher$Matcher;bits:Ljava/util/BitSet;- intermediary - field_7558- Lnet/minecraft/class_1662$class_1663;field_7558:Ljava/util/BitSet;- official - g- Lcpc$c;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- Lcpc$c;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;Ljava/util/List;)V- intermediary - <init>- Lnet/minecraft/class_1662$class_1663;<init>(Lnet/minecraft/class_1662;Ljava/util/List;)V- official - <init>- Lcpc$c;<init>(Lcpc;Ljava/util/List;)V
 
 
- 
- 
Method Details- 
initItemMatchprivate void initItemMatch()- Mappings:
- Namespace - Name - Mixin selector - named - initItemMatch- Lnet/minecraft/recipe/RecipeMatcher$Matcher;initItemMatch()V- intermediary - method_61505- Lnet/minecraft/class_1662$class_1663;method_61505()V- official - a- Lcpc$c;a()V
 
- 
match- Mappings:
- Namespace - Name - Mixin selector - named - match- Lnet/minecraft/recipe/RecipeMatcher$Matcher;match(ILnet/minecraft/recipe/RecipeMatcher$ItemCallback;)Z- intermediary - method_7417- Lnet/minecraft/class_1662$class_1663;method_7417(ILnet/minecraft/class_1662$class_9874;)Z- official - a- Lcpc$c;a(ILcpc$b;)Z
 
- 
isItemprivate static boolean isItem(int index) - Mappings:
- Namespace - Name - Mixin selector - named - isItem- Lnet/minecraft/recipe/RecipeMatcher$Matcher;isItem(I)Z- intermediary - method_61506- Lnet/minecraft/class_1662$class_1663;method_61506(I)Z- official - a- Lcpc$c;a(I)Z
 
- 
tryFindIngredientItemLookup- Mappings:
- Namespace - Name - Mixin selector - named - tryFindIngredientItemLookup- Lnet/minecraft/recipe/RecipeMatcher$Matcher;tryFindIngredientItemLookup(I)Lit/unimi/dsi/fastutil/ints/IntList;- intermediary - method_61509- Lnet/minecraft/class_1662$class_1663;method_61509(I)Lit/unimi/dsi/fastutil/ints/IntList;- official - b- Lcpc$c;b(I)Lit/unimi/dsi/fastutil/ints/IntList;
 
- 
findIngredientItemLookup- Mappings:
- Namespace - Name - Mixin selector - named - findIngredientItemLookup- Lnet/minecraft/recipe/RecipeMatcher$Matcher;findIngredientItemLookup(I)Lit/unimi/dsi/fastutil/ints/IntList;- intermediary - method_61511- Lnet/minecraft/class_1662$class_1663;method_61511(I)Lit/unimi/dsi/fastutil/ints/IntList;- official - c- Lcpc$c;c(I)Lit/unimi/dsi/fastutil/ints/IntList;
 
- 
getVisitedIngredientIndexOffsetprivate int getVisitedIngredientIndexOffset()- Mappings:
- Namespace - Name - Mixin selector - named - getVisitedIngredientIndexOffset- Lnet/minecraft/recipe/RecipeMatcher$Matcher;getVisitedIngredientIndexOffset()I- intermediary - method_61510- Lnet/minecraft/class_1662$class_1663;method_61510()I- official - b- Lcpc$c;b()I
 
- 
getVisitedIngredientIndexCountprivate int getVisitedIngredientIndexCount()- Mappings:
- Namespace - Name - Mixin selector - named - getVisitedIngredientIndexCount- Lnet/minecraft/recipe/RecipeMatcher$Matcher;getVisitedIngredientIndexCount()I- intermediary - method_61513- Lnet/minecraft/class_1662$class_1663;method_61513()I- official - c- Lcpc$c;c()I
 
- 
getVisitedItemIndexOffsetprivate int getVisitedItemIndexOffset()- Mappings:
- Namespace - Name - Mixin selector - named - getVisitedItemIndexOffset- Lnet/minecraft/recipe/RecipeMatcher$Matcher;getVisitedItemIndexOffset()I- intermediary - method_61515- Lnet/minecraft/class_1662$class_1663;method_61515()I- official - d- Lcpc$c;d()I
 
- 
getVisitedItemIndexCountprivate int getVisitedItemIndexCount()- Mappings:
- Namespace - Name - Mixin selector - named - getVisitedItemIndexCount- Lnet/minecraft/recipe/RecipeMatcher$Matcher;getVisitedItemIndexCount()I- intermediary - method_61517- Lnet/minecraft/class_1662$class_1663;method_61517()I- official - e- Lcpc$c;e()I
 
- 
getRequirementIndexOffsetprivate int getRequirementIndexOffset()- Mappings:
- Namespace - Name - Mixin selector - named - getRequirementIndexOffset- Lnet/minecraft/recipe/RecipeMatcher$Matcher;getRequirementIndexOffset()I- intermediary - method_61519- Lnet/minecraft/class_1662$class_1663;method_61519()I- official - f- Lcpc$c;f()I
 
- 
getRequirementIndexCountprivate int getRequirementIndexCount()- Mappings:
- Namespace - Name - Mixin selector - named - getRequirementIndexCount- Lnet/minecraft/recipe/RecipeMatcher$Matcher;getRequirementIndexCount()I- intermediary - method_61522- Lnet/minecraft/class_1662$class_1663;method_61522()I- official - g- Lcpc$c;g()I
 
- 
getItemMatchIndexOffsetprivate int getItemMatchIndexOffset()- Mappings:
- Namespace - Name - Mixin selector - named - getItemMatchIndexOffset- Lnet/minecraft/recipe/RecipeMatcher$Matcher;getItemMatchIndexOffset()I- intermediary - method_61525- Lnet/minecraft/class_1662$class_1663;method_61525()I- official - h- Lcpc$c;h()I
 
- 
getItemMatchIndexCountprivate int getItemMatchIndexCount()- Mappings:
- Namespace - Name - Mixin selector - named - getItemMatchIndexCount- Lnet/minecraft/recipe/RecipeMatcher$Matcher;getItemMatchIndexCount()I- intermediary - method_61527- Lnet/minecraft/class_1662$class_1663;method_61527()I- official - i- Lcpc$c;i()I
 
- 
getMissingIndexOffsetprivate int getMissingIndexOffset()- Mappings:
- Namespace - Name - Mixin selector - named - getMissingIndexOffset- Lnet/minecraft/recipe/RecipeMatcher$Matcher;getMissingIndexOffset()I- intermediary - method_61529- Lnet/minecraft/class_1662$class_1663;method_61529()I- official - j- Lcpc$c;j()I
 
- 
getMissingIndexCountprivate int getMissingIndexCount()- Mappings:
- Namespace - Name - Mixin selector - named - getMissingIndexCount- Lnet/minecraft/recipe/RecipeMatcher$Matcher;getMissingIndexCount()I- intermediary - method_61530- Lnet/minecraft/class_1662$class_1663;method_61530()I- official - k- Lcpc$c;k()I
 
- 
getRequirementprivate 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 - d- Lcpc$c;d(I)Z
 
- 
unfulfillRequirementprivate 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 - e- Lcpc$c;e(I)V
 
- 
getRequirementIndexprivate 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 - f- Lcpc$c;f(I)I
 
- 
clearRequirementsprivate void clearRequirements()- Mappings:
- Namespace - Name - Mixin selector - named - clearRequirements- Lnet/minecraft/recipe/RecipeMatcher$Matcher;clearRequirements()V- intermediary - method_61532- Lnet/minecraft/class_1662$class_1663;method_61532()V- official - l- Lcpc$c;l()V
 
- 
setMatchprivate void setMatch(int itemIndex, int ingredientIndex) - Mappings:
- Namespace - Name - Mixin selector - named - setMatch- Lnet/minecraft/recipe/RecipeMatcher$Matcher;setMatch(II)V- intermediary - method_61507- Lnet/minecraft/class_1662$class_1663;method_61507(II)V- official - a- Lcpc$c;a(II)V
 
- 
matchesprivate boolean matches(int itemIndex, int ingredientIndex) - Mappings:
- Namespace - Name - Mixin selector - named - matches- Lnet/minecraft/recipe/RecipeMatcher$Matcher;matches(II)Z- intermediary - method_7418- Lnet/minecraft/class_1662$class_1663;method_7418(II)Z- official - b- Lcpc$c;b(II)Z
 
- 
getMatchIndexprivate int getMatchIndex(int itemIndex, int ingredientIndex) - Mappings:
- Namespace - Name - Mixin selector - named - getMatchIndex- Lnet/minecraft/recipe/RecipeMatcher$Matcher;getMatchIndex(II)I- intermediary - method_61512- Lnet/minecraft/class_1662$class_1663;method_61512(II)I- official - c- Lcpc$c;c(II)I
 
- 
isMissingprivate boolean isMissing(int itemIndex, int ingredientIndex) - Mappings:
- Namespace - Name - Mixin selector - named - isMissing- Lnet/minecraft/recipe/RecipeMatcher$Matcher;isMissing(II)Z- intermediary - method_61514- Lnet/minecraft/class_1662$class_1663;method_61514(II)Z- official - d- Lcpc$c;d(II)Z
 
- 
markMissingprivate void markMissing(int itemIndex, int ingredientIndex) - Mappings:
- Namespace - Name - Mixin selector - named - markMissing- Lnet/minecraft/recipe/RecipeMatcher$Matcher;markMissing(II)V- intermediary - method_61516- Lnet/minecraft/class_1662$class_1663;method_61516(II)V- official - e- Lcpc$c;e(II)V
 
- 
markNotMissingprivate void markNotMissing(int itemIndex, int ingredientIndex) - Mappings:
- Namespace - Name - Mixin selector - named - markNotMissing- Lnet/minecraft/recipe/RecipeMatcher$Matcher;markNotMissing(II)V- intermediary - method_61518- Lnet/minecraft/class_1662$class_1663;method_61518(II)V- official - f- Lcpc$c;f(II)V
 
- 
getMissingIndexprivate int getMissingIndex(int itemIndex, int ingredientIndex) - Mappings:
- Namespace - Name - Mixin selector - named - getMissingIndex- Lnet/minecraft/recipe/RecipeMatcher$Matcher;getMissingIndex(II)I- intermediary - method_61521- Lnet/minecraft/class_1662$class_1663;method_61521(II)I- official - g- Lcpc$c;g(II)I
 
- 
markIngredientVisitedprivate void markIngredientVisited(int index) - Mappings:
- Namespace - Name - Mixin selector - named - markIngredientVisited- Lnet/minecraft/recipe/RecipeMatcher$Matcher;markIngredientVisited(I)V- intermediary - method_61520- Lnet/minecraft/class_1662$class_1663;method_61520(I)V- official - g- Lcpc$c;g(I)V
 
- 
hasVisitedIngredientprivate boolean hasVisitedIngredient(int index) - Mappings:
- Namespace - Name - Mixin selector - named - hasVisitedIngredient- Lnet/minecraft/recipe/RecipeMatcher$Matcher;hasVisitedIngredient(I)Z- intermediary - method_61523- Lnet/minecraft/class_1662$class_1663;method_61523(I)Z- official - h- Lcpc$c;h(I)Z
 
- 
getVisitedIngredientIndexprivate int getVisitedIngredientIndex(int index) - Mappings:
- Namespace - Name - Mixin selector - named - getVisitedIngredientIndex- Lnet/minecraft/recipe/RecipeMatcher$Matcher;getVisitedIngredientIndex(I)I- intermediary - method_61526- Lnet/minecraft/class_1662$class_1663;method_61526(I)I- official - i- Lcpc$c;i(I)I
 
- 
markItemVisitedprivate void markItemVisited(int index) - Mappings:
- Namespace - Name - Mixin selector - named - markItemVisited- Lnet/minecraft/recipe/RecipeMatcher$Matcher;markItemVisited(I)V- intermediary - method_61528- Lnet/minecraft/class_1662$class_1663;method_61528(I)V- official - j- Lcpc$c;j(I)V
 
- 
isRequirementUnfulfilledprivate boolean isRequirementUnfulfilled(int index) - Mappings:
- Namespace - Name - Mixin selector - named - isRequirementUnfulfilled- Lnet/minecraft/recipe/RecipeMatcher$Matcher;isRequirementUnfulfilled(I)Z- intermediary - method_7426- Lnet/minecraft/class_1662$class_1663;method_7426(I)Z- official - k- Lcpc$c;k(I)Z
 
- 
getVisitedItemIndexprivate int getVisitedItemIndex(int index) - Mappings:
- Namespace - Name - Mixin selector - named - getVisitedItemIndex- Lnet/minecraft/recipe/RecipeMatcher$Matcher;getVisitedItemIndex(I)I- intermediary - method_61531- Lnet/minecraft/class_1662$class_1663;method_61531(I)I- official - l- Lcpc$c;l(I)I
 
- 
clearVisitedprivate void clearVisited()- Mappings:
- Namespace - Name - Mixin selector - named - clearVisited- Lnet/minecraft/recipe/RecipeMatcher$Matcher;clearVisited()V- intermediary - method_61533- Lnet/minecraft/class_1662$class_1663;method_61533()V- official - m- Lcpc$c;m()V
 
- 
clearprivate void clear(int start, int offset) - Mappings:
- Namespace - Name - Mixin selector - named - clear- Lnet/minecraft/recipe/RecipeMatcher$Matcher;clear(II)V- intermediary - method_61524- Lnet/minecraft/class_1662$class_1663;method_61524(II)V- official - h- Lcpc$c;h(II)V
 
- 
countCrafts- Mappings:
- Namespace - Name - Mixin selector - named - countCrafts- Lnet/minecraft/recipe/RecipeMatcher$Matcher;countCrafts(ILnet/minecraft/recipe/RecipeMatcher$ItemCallback;)I- intermediary - method_7427- Lnet/minecraft/class_1662$class_1663;method_7427(ILnet/minecraft/class_1662$class_9874;)I- official - b- Lcpc$c;b(ILcpc$b;)I
 
 
-