Package net.minecraft.recipe
Class InputSlotFiller<C extends Inventory>
java.lang.Object
net.minecraft.recipe.InputSlotFiller<C>
- All Implemented Interfaces:
RecipeGridAligner<Integer>
public class InputSlotFiller<C extends Inventory>
extends Object
implements RecipeGridAligner<Integer>
- Mappings:
Namespace Name intermediary net/minecraft/class_2955official acgnamed net/minecraft/recipe/InputSlotFiller
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AbstractRecipeScreenHandler<C>protected PlayerInventoryprivate static final Loggerprotected final RecipeMatcher -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidacceptAlignedInput(Iterator<Integer> inputs, int slot, int amount, int gridX, int gridY) private booleanprotected voidfillInputSlot(Slot slot, ItemStack stack) protected voidfillInputSlots(Recipe<C> recipe, boolean craftAll) voidfillInputSlots(ServerPlayerEntity entity, @Nullable Recipe<C> recipe, boolean craftAll) protected intgetAmountToFill(boolean craftAll, int limit, boolean recipeInCraftingSlots) private intprotected voidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.recipe.RecipeGridAligner
alignRecipeToGrid
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector intermediary field_13349Lnet/minecraft/class_2955;field_13349:Lorg/slf4j/Logger;official dLacg;d:Lorg/slf4j/Logger;named LOGGERLnet/minecraft/recipe/InputSlotFiller;LOGGER:Lorg/slf4j/Logger;
-
matcher
- Mappings:
Namespace Name Mixin selector intermediary field_13347Lnet/minecraft/class_2955;field_13347:Lnet/minecraft/class_1662;official aLacg;a:Lbyq;named matcherLnet/minecraft/recipe/InputSlotFiller;matcher:Lnet/minecraft/recipe/RecipeMatcher;
-
inventory
- Mappings:
Namespace Name Mixin selector intermediary field_13350Lnet/minecraft/class_2955;field_13350:Lnet/minecraft/class_1661;official bLacg;b:Lbyl;named inventoryLnet/minecraft/recipe/InputSlotFiller;inventory:Lnet/minecraft/entity/player/PlayerInventory;
-
handler
- Mappings:
Namespace Name Mixin selector intermediary field_13348Lnet/minecraft/class_2955;field_13348:Lnet/minecraft/class_1729;official cLacg;c:Lccn;named handlerLnet/minecraft/recipe/InputSlotFiller;handler:Lnet/minecraft/screen/AbstractRecipeScreenHandler;
-
-
Constructor Details
-
InputSlotFiller
- Mappings:
Namespace Name Mixin selector intermediary <init>Lnet/minecraft/class_2955;<init>(Lnet/minecraft/class_1729;)Vofficial <init>Lacg;<init>(Lccn;)Vnamed <init>Lnet/minecraft/recipe/InputSlotFiller;<init>(Lnet/minecraft/screen/AbstractRecipeScreenHandler;)V
-
-
Method Details
-
fillInputSlots
public void fillInputSlots(ServerPlayerEntity entity, @Nullable @Nullable Recipe<C> recipe, boolean craftAll) - Mappings:
Namespace Name Mixin selector intermediary method_12826Lnet/minecraft/class_2955;method_12826(Lnet/minecraft/class_3222;Lnet/minecraft/class_1860;Z)Vofficial aLacg;a(Laig;Lcja;Z)Vnamed fillInputSlotsLnet/minecraft/recipe/InputSlotFiller;fillInputSlots(Lnet/minecraft/server/network/ServerPlayerEntity;Lnet/minecraft/recipe/Recipe;Z)V
-
returnInputs
protected void returnInputs()- Mappings:
Namespace Name Mixin selector intermediary method_12822Lnet/minecraft/class_2955;method_12822()Vofficial aLacg;a()Vnamed returnInputsLnet/minecraft/recipe/InputSlotFiller;returnInputs()V
-
fillInputSlots
- Mappings:
Namespace Name Mixin selector intermediary method_12821Lnet/minecraft/class_2955;method_12821(Lnet/minecraft/class_1860;Z)Vofficial aLacg;a(Lcja;Z)Vnamed fillInputSlotsLnet/minecraft/recipe/InputSlotFiller;fillInputSlots(Lnet/minecraft/recipe/Recipe;Z)V
-
acceptAlignedInput
public void acceptAlignedInput(Iterator<Integer> inputs, int slot, int amount, int gridX, int gridY) - Specified by:
acceptAlignedInputin interfaceRecipeGridAligner<C extends Inventory>- Mappings:
Namespace Name Mixin selector intermediary method_12815Lnet/minecraft/class_2952;method_12815(Ljava/util/Iterator;IIII)Vofficial aLacf;a(Ljava/util/Iterator;IIII)Vnamed acceptAlignedInputLnet/minecraft/recipe/RecipeGridAligner;acceptAlignedInput(Ljava/util/Iterator;IIII)V
-
getAmountToFill
protected int getAmountToFill(boolean craftAll, int limit, boolean recipeInCraftingSlots) - Mappings:
Namespace Name Mixin selector intermediary method_12819Lnet/minecraft/class_2955;method_12819(ZIZ)Iofficial aLacg;a(ZIZ)Inamed getAmountToFillLnet/minecraft/recipe/InputSlotFiller;getAmountToFill(ZIZ)I
-
fillInputSlot
- Mappings:
Namespace Name Mixin selector intermediary method_12824Lnet/minecraft/class_2955;method_12824(Lnet/minecraft/class_1735;Lnet/minecraft/class_1799;)Vofficial aLacg;a(Lccv;Lcfx;)Vnamed fillInputSlotLnet/minecraft/recipe/InputSlotFiller;fillInputSlot(Lnet/minecraft/screen/slot/Slot;Lnet/minecraft/item/ItemStack;)V
-
canReturnInputs
private boolean canReturnInputs()- Mappings:
Namespace Name Mixin selector intermediary method_12825Lnet/minecraft/class_2955;method_12825()Zofficial bLacg;b()Znamed canReturnInputsLnet/minecraft/recipe/InputSlotFiller;canReturnInputs()Z
-
getFreeInventorySlots
private int getFreeInventorySlots()- Mappings:
Namespace Name Mixin selector intermediary method_12823Lnet/minecraft/class_2955;method_12823()Iofficial cLacg;c()Inamed getFreeInventorySlotsLnet/minecraft/recipe/InputSlotFiller;getFreeInventorySlots()I
-