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 cnt$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 cLcnt$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 dLcnt$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 eLcnt$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 fLcnt$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 gLcnt$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 hLcnt$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>Lcnt$c;<init>(Lcnt;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 aLcnt$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 aLcnt$c;a(ILcnt$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 aLcnt$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 bLcnt$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 bLcnt$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 cLcnt$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 cLcnt$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 dLcnt$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 eLcnt$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 fLcnt$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 gLcnt$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 hLcnt$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 iLcnt$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 jLcnt$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 kLcnt$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 lLcnt$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 dLcnt$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 eLcnt$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 fLcnt$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 mLcnt$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 aLcnt$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 bLcnt$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 cLcnt$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 dLcnt$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 eLcnt$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 fLcnt$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 gLcnt$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 gLcnt$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 hLcnt$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 iLcnt$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 jLcnt$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 kLcnt$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 lLcnt$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 nLcnt$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 hLcnt$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 bLcnt$c;b(ILcnt$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 oLcnt$c;o()I
-