Class RecipeFinder

java.lang.Object
net.minecraft.recipe.RecipeFinder

public class RecipeFinder
extends Object
Mappings:
Namespace Name
official bhn
intermediary net/minecraft/class_1662
named net/minecraft/recipe/RecipeFinder
  • Field Details

    • idToAmountMap

      public final Int2IntMap idToAmountMap
      Mappings:
      Namespace Name Mixin selector
      official a Lbhn;a:Lit/unimi/dsi/fastutil/ints/Int2IntMap;
      intermediary field_7550 Lnet/minecraft/class_1662;field_7550:Lit/unimi/dsi/fastutil/ints/Int2IntMap;
      named idToAmountMap Lnet/minecraft/recipe/RecipeFinder;idToAmountMap:Lit/unimi/dsi/fastutil/ints/Int2IntMap;
  • Constructor Details

    • RecipeFinder

      public RecipeFinder()
  • Method Details

    • addNormalItem

      public void addNormalItem​(ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      official a Lbhn;a(Lbnv;)V
      intermediary method_7404 Lnet/minecraft/class_1662;method_7404(Lnet/minecraft/class_1799;)V
      named addNormalItem Lnet/minecraft/recipe/RecipeFinder;addNormalItem(Lnet/minecraft/item/ItemStack;)V
    • addItem

      public void addItem​(ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      official b Lbhn;b(Lbnv;)V
      intermediary method_7400 Lnet/minecraft/class_1662;method_7400(Lnet/minecraft/class_1799;)V
      named addItem Lnet/minecraft/recipe/RecipeFinder;addItem(Lnet/minecraft/item/ItemStack;)V
    • addItem

      public void addItem​(ItemStack stack, int count)
      Mappings:
      Namespace Name Mixin selector
      official a Lbhn;a(Lbnv;I)V
      intermediary method_20478 Lnet/minecraft/class_1662;method_20478(Lnet/minecraft/class_1799;I)V
      named addItem Lnet/minecraft/recipe/RecipeFinder;addItem(Lnet/minecraft/item/ItemStack;I)V
    • getItemId

      public static int getItemId​(ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      official c Lbhn;c(Lbnv;)I
      intermediary method_7408 Lnet/minecraft/class_1662;method_7408(Lnet/minecraft/class_1799;)I
      named getItemId Lnet/minecraft/recipe/RecipeFinder;getItemId(Lnet/minecraft/item/ItemStack;)I
    • contains

      private boolean contains​(int id)
      Mappings:
      Namespace Name Mixin selector
      official b Lbhn;b(I)Z
      intermediary method_7410 Lnet/minecraft/class_1662;method_7410(I)Z
      named contains Lnet/minecraft/recipe/RecipeFinder;contains(I)Z
    • take

      private int take​(int id, int amount)
      Mappings:
      Namespace Name Mixin selector
      official a Lbhn;a(II)I
      intermediary method_7411 Lnet/minecraft/class_1662;method_7411(II)I
      named take Lnet/minecraft/recipe/RecipeFinder;take(II)I
    • addItem

      private void addItem​(int id, int amount)
      Mappings:
      Namespace Name Mixin selector
      official b Lbhn;b(II)V
      intermediary method_7401 Lnet/minecraft/class_1662;method_7401(II)V
      named addItem Lnet/minecraft/recipe/RecipeFinder;addItem(II)V
    • findRecipe

      public boolean findRecipe​(Recipe<?> recipe, @Nullable IntList outMatchingInputIds)
      Mappings:
      Namespace Name Mixin selector
      official a Lbhn;a(Lbqn;Lit/unimi/dsi/fastutil/ints/IntList;)Z
      intermediary method_7402 Lnet/minecraft/class_1662;method_7402(Lnet/minecraft/class_1860;Lit/unimi/dsi/fastutil/ints/IntList;)Z
      named findRecipe Lnet/minecraft/recipe/RecipeFinder;findRecipe(Lnet/minecraft/recipe/Recipe;Lit/unimi/dsi/fastutil/ints/IntList;)Z
    • findRecipe

      public boolean findRecipe​(Recipe<?> recipe, @Nullable IntList outMatchingInputIds, int amount)
      Mappings:
      Namespace Name Mixin selector
      official a Lbhn;a(Lbqn;Lit/unimi/dsi/fastutil/ints/IntList;I)Z
      intermediary method_7406 Lnet/minecraft/class_1662;method_7406(Lnet/minecraft/class_1860;Lit/unimi/dsi/fastutil/ints/IntList;I)Z
      named findRecipe Lnet/minecraft/recipe/RecipeFinder;findRecipe(Lnet/minecraft/recipe/Recipe;Lit/unimi/dsi/fastutil/ints/IntList;I)Z
    • countRecipeCrafts

      public int countRecipeCrafts​(Recipe<?> recipe, @Nullable IntList outMatchingInputIds)
      Mappings:
      Namespace Name Mixin selector
      official b Lbhn;b(Lbqn;Lit/unimi/dsi/fastutil/ints/IntList;)I
      intermediary method_7407 Lnet/minecraft/class_1662;method_7407(Lnet/minecraft/class_1860;Lit/unimi/dsi/fastutil/ints/IntList;)I
      named countRecipeCrafts Lnet/minecraft/recipe/RecipeFinder;countRecipeCrafts(Lnet/minecraft/recipe/Recipe;Lit/unimi/dsi/fastutil/ints/IntList;)I
    • countRecipeCrafts

      public int countRecipeCrafts​(Recipe<?> recipe, int limit, @Nullable IntList outMatchingInputIds)
      Mappings:
      Namespace Name Mixin selector
      official a Lbhn;a(Lbqn;ILit/unimi/dsi/fastutil/ints/IntList;)I
      intermediary method_7403 Lnet/minecraft/class_1662;method_7403(Lnet/minecraft/class_1860;ILit/unimi/dsi/fastutil/ints/IntList;)I
      named countRecipeCrafts Lnet/minecraft/recipe/RecipeFinder;countRecipeCrafts(Lnet/minecraft/recipe/Recipe;ILit/unimi/dsi/fastutil/ints/IntList;)I
    • getStackFromId

      public static ItemStack getStackFromId​(int id)
      Mappings:
      Namespace Name Mixin selector
      official a Lbhn;a(I)Lbnv;
      intermediary method_7405 Lnet/minecraft/class_1662;method_7405(I)Lnet/minecraft/class_1799;
      named getStackFromId Lnet/minecraft/recipe/RecipeFinder;getStackFromId(I)Lnet/minecraft/item/ItemStack;
    • clear

      public void clear()
      Mappings:
      Namespace Name Mixin selector
      official a Lbhn;a()V
      intermediary method_7409 Lnet/minecraft/class_1662;method_7409()V
      named clear Lnet/minecraft/recipe/RecipeFinder;clear()V