Package net.minecraft.recipe
Class InputSlotFiller<R extends Recipe<?>>
java.lang.Object
net.minecraft.recipe.InputSlotFiller<R>
- Mappings:
Namespace Name named net/minecraft/recipe/InputSlotFiller
intermediary net/minecraft/class_2955
official all
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate final boolean
private static final int
private final InputSlotFiller.Handler
<R> private final int
private final PlayerInventory
private final int
-
Constructor Summary
ModifierConstructorDescriptionprivate
InputSlotFiller
(InputSlotFiller.Handler<R> handler, PlayerInventory inventory, boolean craftAll, int width, int height, List<Slot> inputSlots, List<Slot> slotsToReturn) -
Method Summary
Modifier and TypeMethodDescriptionprivate int
calculateCraftAmount
(int forCraftAll, boolean match) private boolean
static <I extends RecipeInput,
R extends Recipe<I>>
AbstractRecipeScreenHandler.PostFillActionfill
(InputSlotFiller.Handler<R> handler, int width, int height, List<Slot> inputSlots, List<Slot> slotsToReturn, PlayerInventory inventory, RecipeEntry<R> recipe, boolean craftAll, boolean creative) private void
fill
(RecipeEntry<R> recipe, RecipeFinder finder) private int
fillInputSlot
(Slot slot, RegistryEntry<Item> item, int count) private int
private void
tryFill
(RecipeEntry<R> recipe, RecipeFinder finder)
-
Field Details
-
field_51523
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
Lall;a:I
-
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
Lall;b:Lcpv;
-
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
Lall;c:Lall$a;
-
craftAll
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
Lall;d:Z
-
width
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
Lall;e:I
-
height
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
Lall;f:I
-
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
Lall;g:Ljava/util/List;
-
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
Lall;h:Ljava/util/List;
-
-
Constructor Details
-
InputSlotFiller
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>
Lall;<init>(Lall$a;Lcpv;ZIILjava/util/List;Ljava/util/List;)V
-
-
Method Details
-
fill
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
Lall;a(Lall$a;IILjava/util/List;Ljava/util/List;Lcpv;Ldci;ZZ)Lcuq$a;
-
tryFill
private AbstractRecipeScreenHandler.PostFillAction tryFill(RecipeEntry<R> recipe, RecipeFinder finder) - 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
Lall;a(Ldci;Lcqb;)Lcuq$a;
-
returnInputs
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
Lall;a()V
-
fill
- 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
Lall;b(Ldci;Lcqb;)V
-
calculateCraftAmount
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
Lall;a(IZ)I
-
fillInputSlot
- 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
Lall;a(Lcuy;Ljq;I)I
-
canReturnInputs
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
Lall;b()Z
-
getFreeInventorySlots
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
Lall;c()I
-