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 dct$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) private @Nullable IntListfindIngredientItemLookup(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) private @Nullable IntListtryFindIngredientItemLookup(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 cLdct$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 dLdct$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 eLdct$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 fLdct$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 gLdct$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 hLdct$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>Ldct$c;<init>(Ldct;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 aLdct$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 aLdct$c;a(ILdct$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 aLdct$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 bLdct$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 cLdct$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 bLdct$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 cLdct$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 dLdct$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 eLdct$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 fLdct$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 gLdct$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 hLdct$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 iLdct$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 jLdct$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 kLdct$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 dLdct$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 eLdct$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 fLdct$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 lLdct$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 aLdct$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 bLdct$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 cLdct$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 dLdct$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 eLdct$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 fLdct$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 gLdct$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 gLdct$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 hLdct$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 iLdct$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 jLdct$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 kLdct$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 lLdct$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 mLdct$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 hLdct$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 bLdct$c;b(ILdct$b;)I
-