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$Matcherintermediary net/minecraft/class_1662$class_1663official cqa$c
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BitSetprivate final IntListprivate final List<RecipeMatcher.RawIngredient<T>> private final intprivate final int -
Constructor Summary
Constructors -
Method Summary
Modifier 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 intprivate 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 ingredientsLnet/minecraft/recipe/RecipeMatcher$Matcher;ingredients:Ljava/util/List;intermediary field_7552Lnet/minecraft/class_1662$class_1663;field_7552:Ljava/util/List;official cLcqa$c;c:Ljava/util/List;
-
totalIngredients
private final int totalIngredients- Mappings:
Namespace Name Mixin selector named totalIngredientsLnet/minecraft/recipe/RecipeMatcher$Matcher;totalIngredients:Iintermediary field_7556Lnet/minecraft/class_1662$class_1663;field_7556:Iofficial dLcqa$c;d:I
-
requiredItems
- Mappings:
Namespace Name Mixin selector named requiredItemsLnet/minecraft/recipe/RecipeMatcher$Matcher;requiredItems:Ljava/util/List;intermediary field_7551Lnet/minecraft/class_1662$class_1663;field_7551:Ljava/util/List;official eLcqa$c;e:Ljava/util/List;
-
totalRequiredItems
private final int totalRequiredItems- Mappings:
Namespace Name Mixin selector named totalRequiredItemsLnet/minecraft/recipe/RecipeMatcher$Matcher;totalRequiredItems:Iintermediary field_7553Lnet/minecraft/class_1662$class_1663;field_7553:Iofficial fLcqa$c;f:I
-
bits
- Mappings:
Namespace Name Mixin selector named bitsLnet/minecraft/recipe/RecipeMatcher$Matcher;bits:Ljava/util/BitSet;intermediary field_7558Lnet/minecraft/class_1662$class_1663;field_7558:Ljava/util/BitSet;official gLcqa$c;g:Ljava/util/BitSet;
-
ingredientItemLookup
- Mappings:
Namespace Name Mixin selector named ingredientItemLookupLnet/minecraft/recipe/RecipeMatcher$Matcher;ingredientItemLookup:Lit/unimi/dsi/fastutil/ints/IntList;intermediary field_7557Lnet/minecraft/class_1662$class_1663;field_7557:Lit/unimi/dsi/fastutil/ints/IntList;official hLcqa$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;)Vintermediary <init>Lnet/minecraft/class_1662$class_1663;<init>(Lnet/minecraft/class_1662;Ljava/util/List;)Vofficial <init>Lcqa$c;<init>(Lcqa;Ljava/util/List;)V
-
-
Method Details
-
initItemMatch
private void initItemMatch()- Mappings:
Namespace Name Mixin selector named initItemMatchLnet/minecraft/recipe/RecipeMatcher$Matcher;initItemMatch()Vintermediary method_61505Lnet/minecraft/class_1662$class_1663;method_61505()Vofficial aLcqa$c;a()V
-
match
- Mappings:
Namespace Name Mixin selector named matchLnet/minecraft/recipe/RecipeMatcher$Matcher;match(ILnet/minecraft/recipe/RecipeMatcher$ItemCallback;)Zintermediary method_7417Lnet/minecraft/class_1662$class_1663;method_7417(ILnet/minecraft/class_1662$class_9874;)Zofficial aLcqa$c;a(ILcqa$b;)Z
-
isItem
private static boolean isItem(int index) - Mappings:
Namespace Name Mixin selector named isItemLnet/minecraft/recipe/RecipeMatcher$Matcher;isItem(I)Zintermediary method_61506Lnet/minecraft/class_1662$class_1663;method_61506(I)Zofficial aLcqa$c;a(I)Z
-
createItemRequirementList
- Mappings:
Namespace Name Mixin selector named createItemRequirementListLnet/minecraft/recipe/RecipeMatcher$Matcher;createItemRequirementList()Ljava/util/List;intermediary method_7422Lnet/minecraft/class_1662$class_1663;method_7422()Ljava/util/List;official bLcqa$c;b()Ljava/util/List;
-
tryFindIngredientItemLookup
- Mappings:
Namespace Name Mixin selector named tryFindIngredientItemLookupLnet/minecraft/recipe/RecipeMatcher$Matcher;tryFindIngredientItemLookup(I)Lit/unimi/dsi/fastutil/ints/IntList;intermediary method_61509Lnet/minecraft/class_1662$class_1663;method_61509(I)Lit/unimi/dsi/fastutil/ints/IntList;official bLcqa$c;b(I)Lit/unimi/dsi/fastutil/ints/IntList;
-
findIngredientItemLookup
- Mappings:
Namespace Name Mixin selector named findIngredientItemLookupLnet/minecraft/recipe/RecipeMatcher$Matcher;findIngredientItemLookup(I)Lit/unimi/dsi/fastutil/ints/IntList;intermediary method_61511Lnet/minecraft/class_1662$class_1663;method_61511(I)Lit/unimi/dsi/fastutil/ints/IntList;official cLcqa$c;c(I)Lit/unimi/dsi/fastutil/ints/IntList;
-
getVisitedIngredientIndexOffset
private int getVisitedIngredientIndexOffset()- Mappings:
Namespace Name Mixin selector named getVisitedIngredientIndexOffsetLnet/minecraft/recipe/RecipeMatcher$Matcher;getVisitedIngredientIndexOffset()Iintermediary method_61510Lnet/minecraft/class_1662$class_1663;method_61510()Iofficial cLcqa$c;c()I
-
getVisitedIngredientIndexCount
private int getVisitedIngredientIndexCount()- Mappings:
Namespace Name Mixin selector named getVisitedIngredientIndexCountLnet/minecraft/recipe/RecipeMatcher$Matcher;getVisitedIngredientIndexCount()Iintermediary method_61513Lnet/minecraft/class_1662$class_1663;method_61513()Iofficial dLcqa$c;d()I
-
getVisitedItemIndexOffset
private int getVisitedItemIndexOffset()- Mappings:
Namespace Name Mixin selector named getVisitedItemIndexOffsetLnet/minecraft/recipe/RecipeMatcher$Matcher;getVisitedItemIndexOffset()Iintermediary method_61515Lnet/minecraft/class_1662$class_1663;method_61515()Iofficial eLcqa$c;e()I
-
getVisitedItemIndexCount
private int getVisitedItemIndexCount()- Mappings:
Namespace Name Mixin selector named getVisitedItemIndexCountLnet/minecraft/recipe/RecipeMatcher$Matcher;getVisitedItemIndexCount()Iintermediary method_61517Lnet/minecraft/class_1662$class_1663;method_61517()Iofficial fLcqa$c;f()I
-
getRequirementIndexOffset
private int getRequirementIndexOffset()- Mappings:
Namespace Name Mixin selector named getRequirementIndexOffsetLnet/minecraft/recipe/RecipeMatcher$Matcher;getRequirementIndexOffset()Iintermediary method_61519Lnet/minecraft/class_1662$class_1663;method_61519()Iofficial gLcqa$c;g()I
-
getRequirementIndexCount
private int getRequirementIndexCount()- Mappings:
Namespace Name Mixin selector named getRequirementIndexCountLnet/minecraft/recipe/RecipeMatcher$Matcher;getRequirementIndexCount()Iintermediary method_61522Lnet/minecraft/class_1662$class_1663;method_61522()Iofficial hLcqa$c;h()I
-
getItemMatchIndexOffset
private int getItemMatchIndexOffset()- Mappings:
Namespace Name Mixin selector named getItemMatchIndexOffsetLnet/minecraft/recipe/RecipeMatcher$Matcher;getItemMatchIndexOffset()Iintermediary method_61525Lnet/minecraft/class_1662$class_1663;method_61525()Iofficial iLcqa$c;i()I
-
getItemMatchIndexCount
private int getItemMatchIndexCount()- Mappings:
Namespace Name Mixin selector named getItemMatchIndexCountLnet/minecraft/recipe/RecipeMatcher$Matcher;getItemMatchIndexCount()Iintermediary method_61527Lnet/minecraft/class_1662$class_1663;method_61527()Iofficial jLcqa$c;j()I
-
getMissingIndexOffset
private int getMissingIndexOffset()- Mappings:
Namespace Name Mixin selector named getMissingIndexOffsetLnet/minecraft/recipe/RecipeMatcher$Matcher;getMissingIndexOffset()Iintermediary method_61529Lnet/minecraft/class_1662$class_1663;method_61529()Iofficial kLcqa$c;k()I
-
getMissingIndexCount
private int getMissingIndexCount()- Mappings:
Namespace Name Mixin selector named getMissingIndexCountLnet/minecraft/recipe/RecipeMatcher$Matcher;getMissingIndexCount()Iintermediary method_61530Lnet/minecraft/class_1662$class_1663;method_61530()Iofficial lLcqa$c;l()I
-
getRequirement
private boolean getRequirement(int itemId) - Mappings:
Namespace Name Mixin selector named getRequirementLnet/minecraft/recipe/RecipeMatcher$Matcher;getRequirement(I)Zintermediary method_7416Lnet/minecraft/class_1662$class_1663;method_7416(I)Zofficial dLcqa$c;d(I)Z
-
unfulfillRequirement
private void unfulfillRequirement(int itemId) - Mappings:
Namespace Name Mixin selector named unfulfillRequirementLnet/minecraft/recipe/RecipeMatcher$Matcher;unfulfillRequirement(I)Vintermediary method_7421Lnet/minecraft/class_1662$class_1663;method_7421(I)Vofficial eLcqa$c;e(I)V
-
getRequirementIndex
private int getRequirementIndex(int itemId) - Mappings:
Namespace Name Mixin selector named getRequirementIndexLnet/minecraft/recipe/RecipeMatcher$Matcher;getRequirementIndex(I)Iintermediary method_7419Lnet/minecraft/class_1662$class_1663;method_7419(I)Iofficial fLcqa$c;f(I)I
-
clearRequirements
private void clearRequirements()- Mappings:
Namespace Name Mixin selector named clearRequirementsLnet/minecraft/recipe/RecipeMatcher$Matcher;clearRequirements()Vintermediary method_61532Lnet/minecraft/class_1662$class_1663;method_61532()Vofficial mLcqa$c;m()V
-
setMatch
private void setMatch(int itemIndex, int ingredientIndex) - Mappings:
Namespace Name Mixin selector named setMatchLnet/minecraft/recipe/RecipeMatcher$Matcher;setMatch(II)Vintermediary method_61507Lnet/minecraft/class_1662$class_1663;method_61507(II)Vofficial aLcqa$c;a(II)V
-
matches
private boolean matches(int itemIndex, int ingredientIndex) - Mappings:
Namespace Name Mixin selector named matchesLnet/minecraft/recipe/RecipeMatcher$Matcher;matches(II)Zintermediary method_7418Lnet/minecraft/class_1662$class_1663;method_7418(II)Zofficial bLcqa$c;b(II)Z
-
getMatchIndex
private int getMatchIndex(int itemIndex, int ingredientIndex) - Mappings:
Namespace Name Mixin selector named getMatchIndexLnet/minecraft/recipe/RecipeMatcher$Matcher;getMatchIndex(II)Iintermediary method_61512Lnet/minecraft/class_1662$class_1663;method_61512(II)Iofficial cLcqa$c;c(II)I
-
isMissing
private boolean isMissing(int itemIndex, int ingredientIndex) - Mappings:
Namespace Name Mixin selector named isMissingLnet/minecraft/recipe/RecipeMatcher$Matcher;isMissing(II)Zintermediary method_61514Lnet/minecraft/class_1662$class_1663;method_61514(II)Zofficial dLcqa$c;d(II)Z
-
markMissing
private void markMissing(int itemIndex, int ingredientIndex) - Mappings:
Namespace Name Mixin selector named markMissingLnet/minecraft/recipe/RecipeMatcher$Matcher;markMissing(II)Vintermediary method_61516Lnet/minecraft/class_1662$class_1663;method_61516(II)Vofficial eLcqa$c;e(II)V
-
markNotMissing
private void markNotMissing(int itemIndex, int ingredientIndex) - Mappings:
Namespace Name Mixin selector named markNotMissingLnet/minecraft/recipe/RecipeMatcher$Matcher;markNotMissing(II)Vintermediary method_61518Lnet/minecraft/class_1662$class_1663;method_61518(II)Vofficial fLcqa$c;f(II)V
-
getMissingIndex
private int getMissingIndex(int itemIndex, int ingredientIndex) - Mappings:
Namespace Name Mixin selector named getMissingIndexLnet/minecraft/recipe/RecipeMatcher$Matcher;getMissingIndex(II)Iintermediary method_61521Lnet/minecraft/class_1662$class_1663;method_61521(II)Iofficial gLcqa$c;g(II)I
-
markIngredientVisited
private void markIngredientVisited(int index) - Mappings:
Namespace Name Mixin selector named markIngredientVisitedLnet/minecraft/recipe/RecipeMatcher$Matcher;markIngredientVisited(I)Vintermediary method_61520Lnet/minecraft/class_1662$class_1663;method_61520(I)Vofficial gLcqa$c;g(I)V
-
hasVisitedIngredient
private boolean hasVisitedIngredient(int index) - Mappings:
Namespace Name Mixin selector named hasVisitedIngredientLnet/minecraft/recipe/RecipeMatcher$Matcher;hasVisitedIngredient(I)Zintermediary method_61523Lnet/minecraft/class_1662$class_1663;method_61523(I)Zofficial hLcqa$c;h(I)Z
-
getVisitedIngredientIndex
private int getVisitedIngredientIndex(int index) - Mappings:
Namespace Name Mixin selector named getVisitedIngredientIndexLnet/minecraft/recipe/RecipeMatcher$Matcher;getVisitedIngredientIndex(I)Iintermediary method_61526Lnet/minecraft/class_1662$class_1663;method_61526(I)Iofficial iLcqa$c;i(I)I
-
markItemVisited
private void markItemVisited(int index) - Mappings:
Namespace Name Mixin selector named markItemVisitedLnet/minecraft/recipe/RecipeMatcher$Matcher;markItemVisited(I)Vintermediary method_61528Lnet/minecraft/class_1662$class_1663;method_61528(I)Vofficial jLcqa$c;j(I)V
-
isRequirementUnfulfilled
private boolean isRequirementUnfulfilled(int index) - Mappings:
Namespace Name Mixin selector named isRequirementUnfulfilledLnet/minecraft/recipe/RecipeMatcher$Matcher;isRequirementUnfulfilled(I)Zintermediary method_7426Lnet/minecraft/class_1662$class_1663;method_7426(I)Zofficial kLcqa$c;k(I)Z
-
getVisitedItemIndex
private int getVisitedItemIndex(int index) - Mappings:
Namespace Name Mixin selector named getVisitedItemIndexLnet/minecraft/recipe/RecipeMatcher$Matcher;getVisitedItemIndex(I)Iintermediary method_61531Lnet/minecraft/class_1662$class_1663;method_61531(I)Iofficial lLcqa$c;l(I)I
-
clearVisited
private void clearVisited()- Mappings:
Namespace Name Mixin selector named clearVisitedLnet/minecraft/recipe/RecipeMatcher$Matcher;clearVisited()Vintermediary method_61533Lnet/minecraft/class_1662$class_1663;method_61533()Vofficial nLcqa$c;n()V
-
clear
private void clear(int start, int offset) - Mappings:
Namespace Name Mixin selector named clearLnet/minecraft/recipe/RecipeMatcher$Matcher;clear(II)Vintermediary method_61524Lnet/minecraft/class_1662$class_1663;method_61524(II)Vofficial hLcqa$c;h(II)V
-
countCrafts
- Mappings:
Namespace Name Mixin selector named countCraftsLnet/minecraft/recipe/RecipeMatcher$Matcher;countCrafts(ILnet/minecraft/recipe/RecipeMatcher$ItemCallback;)Iintermediary method_7427Lnet/minecraft/class_1662$class_1663;method_7427(ILnet/minecraft/class_1662$class_9874;)Iofficial bLcqa$c;b(ILcqa$b;)I
-
getMaximumCrafts
private int getMaximumCrafts()- Mappings:
Namespace Name Mixin selector named getMaximumCraftsLnet/minecraft/recipe/RecipeMatcher$Matcher;getMaximumCrafts()Iintermediary method_7415Lnet/minecraft/class_1662$class_1663;method_7415()Iofficial oLcqa$c;o()I
-