Class InputSlotFiller<C extends Inventory>

java.lang.Object
net.minecraft.recipe.InputSlotFiller<C>
All Implemented Interfaces:
RecipeGridAligner<Integer>
Direct Known Subclasses:
FurnaceInputSlotFiller

public class InputSlotFiller<C extends Inventory>
extends Object
implements RecipeGridAligner<Integer>
  • Field Details

  • Constructor Details

  • Method Details

    • fillInputSlots

      public void fillInputSlots​(ServerPlayerEntity entity, @Nullable Recipe<C> recipe, boolean craftAll)
    • returnInputs

      protected void returnInputs()
    • returnSlot

      protected void returnSlot​(int int2)
    • fillInputSlots

      protected void fillInputSlots​(Recipe<C> recipe, boolean craftAll)
    • acceptAlignedInput

      public void acceptAlignedInput​(Iterator<Integer> inputs, int slot, int amount, int gridX, int gridY)
      Specified by:
      acceptAlignedInput in interface RecipeGridAligner<C extends Inventory>
    • getAmountToFill

      protected int getAmountToFill​(boolean craftAll, int limit, boolean recipeInCraftingSlots)
    • fillInputSlot

      protected void fillInputSlot​(Slot slot, ItemStack itemStack)
    • canReturnInputs

      private boolean canReturnInputs()
    • getFreeInventorySlots

      private int getFreeInventorySlots()