Class RecipeMatcher.Matcher

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

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

    • recipe

      private final Recipe<?> recipe
      Mappings:
      Namespace Name Mixin selector
      named recipe Lnet/minecraft/recipe/RecipeMatcher$Matcher;recipe:Lnet/minecraft/recipe/Recipe;
      intermediary field_7555 Lnet/minecraft/class_1662$class_1663;field_7555:Lnet/minecraft/class_1860;
      official b Lcmp$a;b:Lcyj;
    • ingredients

      private final List<Ingredient> 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 Lcmp$a;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 Lcmp$a;d:I
    • requiredItems

      private final int[] requiredItems
      Mappings:
      Namespace Name Mixin selector
      named requiredItems Lnet/minecraft/recipe/RecipeMatcher$Matcher;requiredItems:[I
      intermediary field_7551 Lnet/minecraft/class_1662$class_1663;field_7551:[I
      official e Lcmp$a;e:[I
    • 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 Lcmp$a;f:I
    • requirementsMatrix

      private final BitSet requirementsMatrix
      Mappings:
      Namespace Name Mixin selector
      named requirementsMatrix Lnet/minecraft/recipe/RecipeMatcher$Matcher;requirementsMatrix:Ljava/util/BitSet;
      intermediary field_7558 Lnet/minecraft/class_1662$class_1663;field_7558:Ljava/util/BitSet;
      official g Lcmp$a;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 Lcmp$a;h:Lit/unimi/dsi/fastutil/ints/IntList;
  • Constructor Details

    • Matcher

      public Matcher(Recipe<?> recipe)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/recipe/RecipeMatcher$Matcher;<init>(Lnet/minecraft/recipe/RecipeMatcher;Lnet/minecraft/recipe/Recipe;)V
      intermediary <init> Lnet/minecraft/class_1662$class_1663;<init>(Lnet/minecraft/class_1662;Lnet/minecraft/class_1860;)V
      official <init> Lcmp$a;<init>(Lcmp;Lcyj;)V
  • Method Details

    • match

      public boolean match(int multiplier, @Nullable @Nullable IntList output)
      Mappings:
      Namespace Name Mixin selector
      named match Lnet/minecraft/recipe/RecipeMatcher$Matcher;match(ILit/unimi/dsi/fastutil/ints/IntList;)Z
      intermediary method_7417 Lnet/minecraft/class_1662$class_1663;method_7417(ILit/unimi/dsi/fastutil/ints/IntList;)Z
      official a Lcmp$a;a(ILit/unimi/dsi/fastutil/ints/IntList;)Z
    • createItemRequirementList

      private int[] createItemRequirementList()
      Mappings:
      Namespace Name Mixin selector
      named createItemRequirementList Lnet/minecraft/recipe/RecipeMatcher$Matcher;createItemRequirementList()[I
      intermediary method_7422 Lnet/minecraft/class_1662$class_1663;method_7422()[I
      official a Lcmp$a;a()[I
    • checkRequirements

      private boolean checkRequirements(int multiplier)
      Mappings:
      Namespace Name Mixin selector
      named checkRequirements Lnet/minecraft/recipe/RecipeMatcher$Matcher;checkRequirements(I)Z
      intermediary method_7423 Lnet/minecraft/class_1662$class_1663;method_7423(I)Z
      official a Lcmp$a;a(I)Z
    • 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 b Lcmp$a;b(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 c Lcmp$a;c(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 d Lcmp$a;d(I)I
    • needsRequirement

      private boolean needsRequirement(boolean reversed, int itemIndex, int ingredientIndex)
      Mappings:
      Namespace Name Mixin selector
      named needsRequirement Lnet/minecraft/recipe/RecipeMatcher$Matcher;needsRequirement(ZII)Z
      intermediary method_7418 Lnet/minecraft/class_1662$class_1663;method_7418(ZII)Z
      official a Lcmp$a;a(ZII)Z
    • checkRequirement

      private boolean checkRequirement(boolean reversed, int itemIndex, int ingredientIndex)
      Mappings:
      Namespace Name Mixin selector
      named checkRequirement Lnet/minecraft/recipe/RecipeMatcher$Matcher;checkRequirement(ZII)Z
      intermediary method_7425 Lnet/minecraft/class_1662$class_1663;method_7425(ZII)Z
      official b Lcmp$a;b(ZII)Z
    • flipRequirement

      private void flipRequirement(boolean reversed, int itemIndex, int ingredientIndex)
      Mappings:
      Namespace Name Mixin selector
      named flipRequirement Lnet/minecraft/recipe/RecipeMatcher$Matcher;flipRequirement(ZII)V
      intermediary method_7414 Lnet/minecraft/class_1662$class_1663;method_7414(ZII)V
      official c Lcmp$a;c(ZII)V
    • getRequirementIndex

      private int getRequirementIndex(boolean reversed, int itemIndex, int ingredientIndex)
      Mappings:
      Namespace Name Mixin selector
      named getRequirementIndex Lnet/minecraft/recipe/RecipeMatcher$Matcher;getRequirementIndex(ZII)I
      intermediary method_7420 Lnet/minecraft/class_1662$class_1663;method_7420(ZII)I
      official d Lcmp$a;d(ZII)I
    • addRequirement

      private void addRequirement(boolean reversed, int itemId)
      Mappings:
      Namespace Name Mixin selector
      named addRequirement Lnet/minecraft/recipe/RecipeMatcher$Matcher;addRequirement(ZI)V
      intermediary method_7413 Lnet/minecraft/class_1662$class_1663;method_7413(ZI)V
      official a Lcmp$a;a(ZI)V
    • isRequirementUnfulfilled

      private boolean isRequirementUnfulfilled(boolean reversed, int itemId)
      Mappings:
      Namespace Name Mixin selector
      named isRequirementUnfulfilled Lnet/minecraft/recipe/RecipeMatcher$Matcher;isRequirementUnfulfilled(ZI)Z
      intermediary method_7426 Lnet/minecraft/class_1662$class_1663;method_7426(ZI)Z
      official b Lcmp$a;b(ZI)Z
    • getRequirementIndex

      private int getRequirementIndex(boolean reversed, int itemId)
      Mappings:
      Namespace Name Mixin selector
      named getRequirementIndex Lnet/minecraft/recipe/RecipeMatcher$Matcher;getRequirementIndex(ZI)I
      intermediary method_7424 Lnet/minecraft/class_1662$class_1663;method_7424(ZI)I
      official c Lcmp$a;c(ZI)I
    • countCrafts

      public int countCrafts(int minimum, @Nullable @Nullable IntList output)
      Mappings:
      Namespace Name Mixin selector
      named countCrafts Lnet/minecraft/recipe/RecipeMatcher$Matcher;countCrafts(ILit/unimi/dsi/fastutil/ints/IntList;)I
      intermediary method_7427 Lnet/minecraft/class_1662$class_1663;method_7427(ILit/unimi/dsi/fastutil/ints/IntList;)I
      official b Lcmp$a;b(ILit/unimi/dsi/fastutil/ints/IntList;)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 b Lcmp$a;b()I