Class RecipeMatcher.Matcher

java.lang.Object
net.minecraft.recipe.RecipeMatcher.Matcher
Enclosing class:
RecipeMatcher<T>

private class RecipeMatcher.Matcher extends Object
Mappings:
Namespace Name
named net/minecraft/recipe/RecipeMatcher$Matcher
intermediary net/minecraft/class_1662$class_1663
official cqa$c
  • Field Details

    • ingredients

      private final List<RecipeMatcher.RawIngredient<T>> 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 Lcqa$c;c:Ljava/util/List;
    • totalIngredients

      private 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 Lcqa$c;d:I
    • requiredItems

      private final List<T> 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 Lcqa$c;e:Ljava/util/List;
    • totalRequiredItems

      private 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 Lcqa$c;f:I
    • bits

      private final BitSet 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 Lcqa$c;g:Ljava/util/BitSet;
    • ingredientItemLookup

      private final IntList 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 Lcqa$c;h:Lit/unimi/dsi/fastutil/ints/IntList;
  • Constructor Details

    • Matcher

      public Matcher(List<RecipeMatcher.RawIngredient<T>> ingredients)
      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> Lcqa$c;<init>(Lcqa;Ljava/util/List;)V
  • Method Details

    • initItemMatch

      private 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 Lcqa$c;a()V
    • match

      public boolean match(int quantity, @Nullable @Nullable RecipeMatcher.ItemCallback<T> itemCallback)
      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 Lcqa$c;a(ILcqa$b;)Z
    • isItem

      private 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 Lcqa$c;a(I)Z
    • createItemRequirementList

      private List<T> createItemRequirementList()
      Mappings:
      Namespace Name Mixin selector
      named createItemRequirementList Lnet/minecraft/recipe/RecipeMatcher$Matcher;createItemRequirementList()Ljava/util/List;
      intermediary method_7422 Lnet/minecraft/class_1662$class_1663;method_7422()Ljava/util/List;
      official b Lcqa$c;b()Ljava/util/List;
    • tryFindIngredientItemLookup

      @Nullable private @Nullable IntList tryFindIngredientItemLookup(int min)
      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 Lcqa$c;b(I)Lit/unimi/dsi/fastutil/ints/IntList;
    • findIngredientItemLookup

      @Nullable private @Nullable IntList findIngredientItemLookup(int itemIndex)
      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 Lcqa$c;c(I)Lit/unimi/dsi/fastutil/ints/IntList;
    • getVisitedIngredientIndexOffset

      private 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 c Lcqa$c;c()I
    • getVisitedIngredientIndexCount

      private 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 d Lcqa$c;d()I
    • getVisitedItemIndexOffset

      private 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 e Lcqa$c;e()I
    • getVisitedItemIndexCount

      private 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 f Lcqa$c;f()I
    • getRequirementIndexOffset

      private 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 g Lcqa$c;g()I
    • getRequirementIndexCount

      private 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 h Lcqa$c;h()I
    • getItemMatchIndexOffset

      private 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 i Lcqa$c;i()I
    • getItemMatchIndexCount

      private 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 j Lcqa$c;j()I
    • getMissingIndexOffset

      private 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 k Lcqa$c;k()I
    • getMissingIndexCount

      private 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 l Lcqa$c;l()I
    • getRequirement

      private 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 Lcqa$c;d(I)Z
    • unfulfillRequirement

      private 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 Lcqa$c;e(I)V
    • getRequirementIndex

      private 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 Lcqa$c;f(I)I
    • clearRequirements

      private 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 m Lcqa$c;m()V
    • setMatch

      private 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 Lcqa$c;a(II)V
    • matches

      private 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 Lcqa$c;b(II)Z
    • getMatchIndex

      private 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 Lcqa$c;c(II)I
    • isMissing

      private 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 Lcqa$c;d(II)Z
    • markMissing

      private 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 Lcqa$c;e(II)V
    • markNotMissing

      private 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 Lcqa$c;f(II)V
    • getMissingIndex

      private 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 Lcqa$c;g(II)I
    • markIngredientVisited

      private 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 Lcqa$c;g(I)V
    • hasVisitedIngredient

      private 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 Lcqa$c;h(I)Z
    • getVisitedIngredientIndex

      private 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 Lcqa$c;i(I)I
    • markItemVisited

      private 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 Lcqa$c;j(I)V
    • isRequirementUnfulfilled

      private 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 Lcqa$c;k(I)Z
    • getVisitedItemIndex

      private 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 Lcqa$c;l(I)I
    • clearVisited

      private 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 n Lcqa$c;n()V
    • clear

      private 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 Lcqa$c;h(II)V
    • countCrafts

      public int countCrafts(int max, @Nullable @Nullable RecipeMatcher.ItemCallback<T> itemCallback)
      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 Lcqa$c;b(ILcqa$b;)I
    • getMaximumCrafts

      private int getMaximumCrafts()
      Mappings:
      Namespace Name Mixin selector
      named getMaximumCrafts Lnet/minecraft/recipe/RecipeMatcher$Matcher;getMaximumCrafts()I
      intermediary method_7415 Lnet/minecraft/class_1662$class_1663;method_7415()I
      official o Lcqa$c;o()I