Class InputSlotFiller<R extends Recipe<?>>

java.lang.Object
net.minecraft.recipe.InputSlotFiller<R>

public class InputSlotFiller<R extends Recipe<?>> extends Object
Mappings:
Namespace Name
named net/minecraft/recipe/InputSlotFiller
intermediary net/minecraft/class_2955
official akh
  • Field Details Link icon

    • field_51523 Link icon

      private static final int field_51523
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_51523 Lnet/minecraft/recipe/InputSlotFiller;field_51523:I
      intermediary field_51523 Lnet/minecraft/class_2955;field_51523:I
      official a Lakh;a:I
    • inventory Link icon

      private final PlayerInventory inventory
      Mappings:
      Namespace Name Mixin selector
      named inventory Lnet/minecraft/recipe/InputSlotFiller;inventory:Lnet/minecraft/entity/player/PlayerInventory;
      intermediary field_13350 Lnet/minecraft/class_2955;field_13350:Lnet/minecraft/class_1661;
      official b Lakh;b:Lcox;
    • handler Link icon

      private final InputSlotFiller.Handler<R extends Recipe<?>> handler
      Mappings:
      Namespace Name Mixin selector
      named handler Lnet/minecraft/recipe/InputSlotFiller;handler:Lnet/minecraft/recipe/InputSlotFiller$Handler;
      intermediary field_13348 Lnet/minecraft/class_2955;field_13348:Lnet/minecraft/class_2955$class_9840;
      official c Lakh;c:Lakh$a;
    • craftAll Link icon

      private final boolean craftAll
      Mappings:
      Namespace Name Mixin selector
      named craftAll Lnet/minecraft/recipe/InputSlotFiller;craftAll:Z
      intermediary field_52340 Lnet/minecraft/class_2955;field_52340:Z
      official d Lakh;d:Z
    • width Link icon

      private final int width
      Mappings:
      Namespace Name Mixin selector
      named width Lnet/minecraft/recipe/InputSlotFiller;width:I
      intermediary field_52341 Lnet/minecraft/class_2955;field_52341:I
      official e Lakh;e:I
    • height Link icon

      private final int height
      Mappings:
      Namespace Name Mixin selector
      named height Lnet/minecraft/recipe/InputSlotFiller;height:I
      intermediary field_52342 Lnet/minecraft/class_2955;field_52342:I
      official f Lakh;f:I
    • inputSlots Link icon

      private final List<Slot> inputSlots
      Mappings:
      Namespace Name Mixin selector
      named inputSlots Lnet/minecraft/recipe/InputSlotFiller;inputSlots:Ljava/util/List;
      intermediary field_52343 Lnet/minecraft/class_2955;field_52343:Ljava/util/List;
      official g Lakh;g:Ljava/util/List;
    • slotsToReturn Link icon

      private final List<Slot> slotsToReturn
      Mappings:
      Namespace Name Mixin selector
      named slotsToReturn Lnet/minecraft/recipe/InputSlotFiller;slotsToReturn:Ljava/util/List;
      intermediary field_52344 Lnet/minecraft/class_2955;field_52344:Ljava/util/List;
      official h Lakh;h:Ljava/util/List;
  • Constructor Details Link icon

    • InputSlotFiller Link icon

      private InputSlotFiller(InputSlotFiller.Handler<R> handler, PlayerInventory inventory, boolean craftAll, int width, int height, List<Slot> inputSlots, List<Slot> slotsToReturn)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/recipe/InputSlotFiller;<init>(Lnet/minecraft/recipe/InputSlotFiller$Handler;Lnet/minecraft/entity/player/PlayerInventory;ZIILjava/util/List;Ljava/util/List;)V
      intermediary <init> Lnet/minecraft/class_2955;<init>(Lnet/minecraft/class_2955$class_9840;Lnet/minecraft/class_1661;ZIILjava/util/List;Ljava/util/List;)V
      official <init> Lakh;<init>(Lakh$a;Lcox;ZIILjava/util/List;Ljava/util/List;)V
  • Method Details Link icon

    • fill Link icon

      public static <I extends RecipeInput, R extends Recipe<I>> AbstractRecipeScreenHandler.PostFillAction fill(InputSlotFiller.Handler<R> handler, int width, int height, List<Slot> inputSlots, List<Slot> slotsToReturn, PlayerInventory inventory, RecipeEntry<R> recipe, boolean craftAll, boolean creative)
      Mappings:
      Namespace Name Mixin selector
      named fill Lnet/minecraft/recipe/InputSlotFiller;fill(Lnet/minecraft/recipe/InputSlotFiller$Handler;IILjava/util/List;Ljava/util/List;Lnet/minecraft/entity/player/PlayerInventory;Lnet/minecraft/recipe/RecipeEntry;ZZ)Lnet/minecraft/screen/AbstractRecipeScreenHandler$PostFillAction;
      intermediary method_61232 Lnet/minecraft/class_2955;method_61232(Lnet/minecraft/class_2955$class_9840;IILjava/util/List;Ljava/util/List;Lnet/minecraft/class_1661;Lnet/minecraft/class_8786;ZZ)Lnet/minecraft/class_1729$class_9885;
      official a Lakh;a(Lakh$a;IILjava/util/List;Ljava/util/List;Lcox;Ldbk;ZZ)Lcts$a;
    • tryFill Link icon

      Mappings:
      Namespace Name Mixin selector
      named tryFill Lnet/minecraft/recipe/InputSlotFiller;tryFill(Lnet/minecraft/recipe/RecipeEntry;Lnet/minecraft/recipe/RecipeFinder;)Lnet/minecraft/screen/AbstractRecipeScreenHandler$PostFillAction;
      intermediary method_61233 Lnet/minecraft/class_2955;method_61233(Lnet/minecraft/class_8786;Lnet/minecraft/class_9875;)Lnet/minecraft/class_1729$class_9885;
      official a Lakh;a(Ldbk;Lcpd;)Lcts$a;
    • returnInputs Link icon

      private void returnInputs()
      Mappings:
      Namespace Name Mixin selector
      named returnInputs Lnet/minecraft/recipe/InputSlotFiller;returnInputs()V
      intermediary method_12822 Lnet/minecraft/class_2955;method_12822()V
      official a Lakh;a()V
    • fill Link icon

      private void fill(RecipeEntry<R> recipe, RecipeFinder finder)
      Mappings:
      Namespace Name Mixin selector
      named fill Lnet/minecraft/recipe/InputSlotFiller;fill(Lnet/minecraft/recipe/RecipeEntry;Lnet/minecraft/recipe/RecipeFinder;)V
      intermediary method_61235 Lnet/minecraft/class_2955;method_61235(Lnet/minecraft/class_8786;Lnet/minecraft/class_9875;)V
      official b Lakh;b(Ldbk;Lcpd;)V
    • clampToMaxCount Link icon

      private static int clampToMaxCount(int count, List<RegistryEntry<Item>> entries)
      Mappings:
      Namespace Name Mixin selector
      named clampToMaxCount Lnet/minecraft/recipe/InputSlotFiller;clampToMaxCount(ILjava/util/List;)I
      intermediary method_65781 Lnet/minecraft/class_2955;method_65781(ILjava/util/List;)I
      official a Lakh;a(ILjava/util/List;)I
    • calculateCraftAmount Link icon

      private int calculateCraftAmount(int forCraftAll, boolean match)
      Mappings:
      Namespace Name Mixin selector
      named calculateCraftAmount Lnet/minecraft/recipe/InputSlotFiller;calculateCraftAmount(IZ)I
      intermediary method_61231 Lnet/minecraft/class_2955;method_61231(IZ)I
      official a Lakh;a(IZ)I
    • fillInputSlot Link icon

      private int fillInputSlot(Slot slot, RegistryEntry<Item> item, int count)
      Mappings:
      Namespace Name Mixin selector
      named fillInputSlot Lnet/minecraft/recipe/InputSlotFiller;fillInputSlot(Lnet/minecraft/screen/slot/Slot;Lnet/minecraft/registry/entry/RegistryEntry;I)I
      intermediary method_12824 Lnet/minecraft/class_2955;method_12824(Lnet/minecraft/class_1735;Lnet/minecraft/class_6880;I)I
      official a Lakh;a(Lcua;Ljr;I)I
    • canReturnInputs Link icon

      private boolean canReturnInputs()
      Mappings:
      Namespace Name Mixin selector
      named canReturnInputs Lnet/minecraft/recipe/InputSlotFiller;canReturnInputs()Z
      intermediary method_12825 Lnet/minecraft/class_2955;method_12825()Z
      official b Lakh;b()Z
    • getFreeInventorySlots Link icon

      private int getFreeInventorySlots()
      Mappings:
      Namespace Name Mixin selector
      named getFreeInventorySlots Lnet/minecraft/recipe/InputSlotFiller;getFreeInventorySlots()I
      intermediary method_12823 Lnet/minecraft/class_2955;method_12823()I
      official c Lakh;c()I