Class RecipeMatcher.Matcher

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

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

    • recipe

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

      private final List<Ingredient> ingredients
      Mappings:
      Namespace Name Mixin selector
      official c Lbnm$a;c:Ljava/util/List;
      intermediary field_7552 Lnet/minecraft/class_1662$class_1663;field_7552:Ljava/util/List;
      named ingredients Lnet/minecraft/recipe/RecipeMatcher$Matcher;ingredients:Ljava/util/List;
    • totalIngredients

      private final int totalIngredients
      Mappings:
      Namespace Name Mixin selector
      official d Lbnm$a;d:I
      intermediary field_7556 Lnet/minecraft/class_1662$class_1663;field_7556:I
      named totalIngredients Lnet/minecraft/recipe/RecipeMatcher$Matcher;totalIngredients:I
    • requiredItems

      private final int[] requiredItems
      Mappings:
      Namespace Name Mixin selector
      official e Lbnm$a;e:[I
      intermediary field_7551 Lnet/minecraft/class_1662$class_1663;field_7551:[I
      named requiredItems Lnet/minecraft/recipe/RecipeMatcher$Matcher;requiredItems:[I
    • totalRequiredItems

      private final int totalRequiredItems
      Mappings:
      Namespace Name Mixin selector
      official f Lbnm$a;f:I
      intermediary field_7553 Lnet/minecraft/class_1662$class_1663;field_7553:I
      named totalRequiredItems Lnet/minecraft/recipe/RecipeMatcher$Matcher;totalRequiredItems:I
    • requirementsMatrix

      private final BitSet requirementsMatrix
      Mappings:
      Namespace Name Mixin selector
      official g Lbnm$a;g:Ljava/util/BitSet;
      intermediary field_7558 Lnet/minecraft/class_1662$class_1663;field_7558:Ljava/util/BitSet;
      named requirementsMatrix Lnet/minecraft/recipe/RecipeMatcher$Matcher;requirementsMatrix:Ljava/util/BitSet;
    • ingredientItemLookup

      private final IntList ingredientItemLookup
      Mappings:
      Namespace Name Mixin selector
      official h Lbnm$a;h:Lit/unimi/dsi/fastutil/ints/IntList;
      intermediary field_7557 Lnet/minecraft/class_1662$class_1663;field_7557:Lit/unimi/dsi/fastutil/ints/IntList;
      named ingredientItemLookup Lnet/minecraft/recipe/RecipeMatcher$Matcher;ingredientItemLookup:Lit/unimi/dsi/fastutil/ints/IntList;
  • Constructor Details

    • Matcher

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

    • match

      public boolean match(int multiplier, @Nullable @Nullable IntList output)
      Mappings:
      Namespace Name Mixin selector
      official a Lbnm$a;a(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
      named match Lnet/minecraft/recipe/RecipeMatcher$Matcher;match(ILit/unimi/dsi/fastutil/ints/IntList;)Z
    • createItemRequirementList

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

      private boolean checkRequirements(int multiplier)
      Mappings:
      Namespace Name Mixin selector
      official a Lbnm$a;a(I)Z
      intermediary method_7423 Lnet/minecraft/class_1662$class_1663;method_7423(I)Z
      named checkRequirements Lnet/minecraft/recipe/RecipeMatcher$Matcher;checkRequirements(I)Z
    • getRequirement

      private boolean getRequirement(int itemId)
      Mappings:
      Namespace Name Mixin selector
      official b Lbnm$a;b(I)Z
      intermediary method_7416 Lnet/minecraft/class_1662$class_1663;method_7416(I)Z
      named getRequirement Lnet/minecraft/recipe/RecipeMatcher$Matcher;getRequirement(I)Z
    • unfulfillRequirement

      private void unfulfillRequirement(int itemId)
      Mappings:
      Namespace Name Mixin selector
      official c Lbnm$a;c(I)V
      intermediary method_7421 Lnet/minecraft/class_1662$class_1663;method_7421(I)V
      named unfulfillRequirement Lnet/minecraft/recipe/RecipeMatcher$Matcher;unfulfillRequirement(I)V
    • getRequirementIndex

      private int getRequirementIndex(int itemId)
      Mappings:
      Namespace Name Mixin selector
      official d Lbnm$a;d(I)I
      intermediary method_7419 Lnet/minecraft/class_1662$class_1663;method_7419(I)I
      named getRequirementIndex Lnet/minecraft/recipe/RecipeMatcher$Matcher;getRequirementIndex(I)I
    • needsRequirement

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

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

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

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

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

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

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

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

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