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 cpc$c
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BitSetprivate final IntListprivate final List<? extends 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 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 cLcpc$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 dLcpc$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 eLcpc$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 fLcpc$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 gLcpc$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 hLcpc$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>Lcpc$c;<init>(Lcpc;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 aLcpc$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 aLcpc$c;a(ILcpc$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 aLcpc$c;a(I)Z
-
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 bLcpc$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 cLcpc$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 bLcpc$c;b()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 cLcpc$c;c()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 dLcpc$c;d()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 eLcpc$c;e()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 fLcpc$c;f()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 gLcpc$c;g()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 hLcpc$c;h()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 iLcpc$c;i()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 jLcpc$c;j()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 kLcpc$c;k()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 dLcpc$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 eLcpc$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 fLcpc$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 lLcpc$c;l()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 aLcpc$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 bLcpc$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 cLcpc$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 dLcpc$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 eLcpc$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 fLcpc$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 gLcpc$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 gLcpc$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 hLcpc$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 iLcpc$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 jLcpc$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 kLcpc$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 lLcpc$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 mLcpc$c;m()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 hLcpc$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 bLcpc$c;b(ILcpc$b;)I
-