Class RecipeItemHelper.RecipePicker

  • Enclosing class:
    RecipeItemHelper

    class RecipeItemHelper.RecipePicker
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      RecipePicker​(IRecipe<?> p_i47608_2_)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private boolean dfs​(int p_194098_1_)  
      private int getIndex​(boolean p_194095_1_, int p_194095_2_, int p_194095_3_)  
      private int getMinIngredientCount()  
      private int getSatisfiedIndex​(int p_194094_1_)  
      private int[] getUniqueAvailableIngredientItems()  
      private int getVisitedIndex​(boolean p_194099_1_, int p_194099_2_)  
      private boolean hasConnection​(boolean p_194093_1_, int p_194093_2_, int p_194093_3_)  
      private boolean hasResidual​(boolean p_194100_1_, int p_194100_2_, int p_194100_3_)  
      private boolean hasVisited​(boolean p_194101_1_, int p_194101_2_)  
      private boolean isSatisfied​(int p_194091_1_)  
      private void setSatisfied​(int p_194096_1_)  
      private void toggleResidual​(boolean p_194089_1_, int p_194089_2_, int p_194089_3_)  
      boolean tryPick​(int p_194092_1_, it.unimi.dsi.fastutil.ints.IntList p_194092_2_)  
      int tryPickAll​(int p_194102_1_, it.unimi.dsi.fastutil.ints.IntList p_194102_2_)  
      private void visit​(boolean p_194088_1_, int p_194088_2_)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • recipe

        private final IRecipe<?> recipe
      • ingredients

        private final java.util.List<Ingredient> ingredients
      • ingredientCount

        private final int ingredientCount
      • items

        private final int[] items
      • itemCount

        private final int itemCount
      • data

        private final java.util.BitSet data
      • path

        private final it.unimi.dsi.fastutil.ints.IntList path
    • Constructor Detail

      • RecipePicker

        public RecipePicker​(IRecipe<?> p_i47608_2_)
    • Method Detail

      • tryPick

        public boolean tryPick​(int p_194092_1_,
                               @Nullable
                               it.unimi.dsi.fastutil.ints.IntList p_194092_2_)
      • getUniqueAvailableIngredientItems

        private int[] getUniqueAvailableIngredientItems()
      • dfs

        private boolean dfs​(int p_194098_1_)
      • isSatisfied

        private boolean isSatisfied​(int p_194091_1_)
      • setSatisfied

        private void setSatisfied​(int p_194096_1_)
      • getSatisfiedIndex

        private int getSatisfiedIndex​(int p_194094_1_)
      • hasConnection

        private boolean hasConnection​(boolean p_194093_1_,
                                      int p_194093_2_,
                                      int p_194093_3_)
      • hasResidual

        private boolean hasResidual​(boolean p_194100_1_,
                                    int p_194100_2_,
                                    int p_194100_3_)
      • toggleResidual

        private void toggleResidual​(boolean p_194089_1_,
                                    int p_194089_2_,
                                    int p_194089_3_)
      • getIndex

        private int getIndex​(boolean p_194095_1_,
                             int p_194095_2_,
                             int p_194095_3_)
      • visit

        private void visit​(boolean p_194088_1_,
                           int p_194088_2_)
      • hasVisited

        private boolean hasVisited​(boolean p_194101_1_,
                                   int p_194101_2_)
      • getVisitedIndex

        private int getVisitedIndex​(boolean p_194099_1_,
                                    int p_194099_2_)
      • tryPickAll

        public int tryPickAll​(int p_194102_1_,
                              @Nullable
                              it.unimi.dsi.fastutil.ints.IntList p_194102_2_)
      • getMinIngredientCount

        private int getMinIngredientCount()