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 named net/minecraft/recipe/InputSlotFillerintermediary net/minecraft/class_2955official aka
-
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(RecipeEntry<? extends Recipe<C>> recipe, boolean craftAll) voidfillInputSlots(ServerPlayerEntity entity, @Nullable RecipeEntry<? extends 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 named LOGGERLnet/minecraft/recipe/InputSlotFiller;LOGGER:Lorg/slf4j/Logger;intermediary field_13349Lnet/minecraft/class_2955;field_13349:Lorg/slf4j/Logger;official dLaka;d:Lorg/slf4j/Logger;
-
matcher
- Mappings:
Namespace Name Mixin selector named matcherLnet/minecraft/recipe/InputSlotFiller;matcher:Lnet/minecraft/recipe/RecipeMatcher;intermediary field_13347Lnet/minecraft/class_2955;field_13347:Lnet/minecraft/class_1662;official aLaka;a:Lcma;
-
inventory
- Mappings:
Namespace Name Mixin selector named inventoryLnet/minecraft/recipe/InputSlotFiller;inventory:Lnet/minecraft/entity/player/PlayerInventory;intermediary field_13350Lnet/minecraft/class_2955;field_13350:Lnet/minecraft/class_1661;official bLaka;b:Lclv;
-
handler
- Mappings:
Namespace Name Mixin selector named handlerLnet/minecraft/recipe/InputSlotFiller;handler:Lnet/minecraft/screen/AbstractRecipeScreenHandler;intermediary field_13348Lnet/minecraft/class_2955;field_13348:Lnet/minecraft/class_1729;official cLaka;c:Lcqg;
-
-
Constructor Details
-
InputSlotFiller
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/recipe/InputSlotFiller;<init>(Lnet/minecraft/screen/AbstractRecipeScreenHandler;)Vintermediary <init>Lnet/minecraft/class_2955;<init>(Lnet/minecraft/class_1729;)Vofficial <init>Laka;<init>(Lcqg;)V
-
-
Method Details
-
fillInputSlots
public void fillInputSlots(ServerPlayerEntity entity, @Nullable @Nullable RecipeEntry<? extends Recipe<C>> recipe, boolean craftAll) - Mappings:
Namespace Name Mixin selector named fillInputSlotsLnet/minecraft/recipe/InputSlotFiller;fillInputSlots(Lnet/minecraft/server/network/ServerPlayerEntity;Lnet/minecraft/recipe/RecipeEntry;Z)Vintermediary method_12826Lnet/minecraft/class_2955;method_12826(Lnet/minecraft/class_3222;Lnet/minecraft/class_8786;Z)Vofficial aLaka;a(Laqn;Lcxw;Z)V
-
returnInputs
protected void returnInputs()- Mappings:
Namespace Name Mixin selector named returnInputsLnet/minecraft/recipe/InputSlotFiller;returnInputs()Vintermediary method_12822Lnet/minecraft/class_2955;method_12822()Vofficial aLaka;a()V
-
fillInputSlots
- Mappings:
Namespace Name Mixin selector named fillInputSlotsLnet/minecraft/recipe/InputSlotFiller;fillInputSlots(Lnet/minecraft/recipe/RecipeEntry;Z)Vintermediary method_12821Lnet/minecraft/class_2955;method_12821(Lnet/minecraft/class_8786;Z)Vofficial aLaka;a(Lcxw;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 named acceptAlignedInputLnet/minecraft/recipe/RecipeGridAligner;acceptAlignedInput(Ljava/util/Iterator;IIII)Vintermediary method_12815Lnet/minecraft/class_2952;method_12815(Ljava/util/Iterator;IIII)Vofficial aLajz;a(Ljava/util/Iterator;IIII)V
-
getAmountToFill
protected int getAmountToFill(boolean craftAll, int limit, boolean recipeInCraftingSlots) - Mappings:
Namespace Name Mixin selector named getAmountToFillLnet/minecraft/recipe/InputSlotFiller;getAmountToFill(ZIZ)Iintermediary method_12819Lnet/minecraft/class_2955;method_12819(ZIZ)Iofficial aLaka;a(ZIZ)I
-
fillInputSlot
- Mappings:
Namespace Name Mixin selector named fillInputSlotLnet/minecraft/recipe/InputSlotFiller;fillInputSlot(Lnet/minecraft/screen/slot/Slot;Lnet/minecraft/item/ItemStack;)Vintermediary method_12824Lnet/minecraft/class_2955;method_12824(Lnet/minecraft/class_1735;Lnet/minecraft/class_1799;)Vofficial aLaka;a(Lcqo;Lcto;)V
-
canReturnInputs
private boolean canReturnInputs()- Mappings:
Namespace Name Mixin selector named canReturnInputsLnet/minecraft/recipe/InputSlotFiller;canReturnInputs()Zintermediary method_12825Lnet/minecraft/class_2955;method_12825()Zofficial bLaka;b()Z
-
getFreeInventorySlots
private int getFreeInventorySlots()- Mappings:
Namespace Name Mixin selector named getFreeInventorySlotsLnet/minecraft/recipe/InputSlotFiller;getFreeInventorySlots()Iintermediary method_12823Lnet/minecraft/class_2955;method_12823()Iofficial cLaka;c()I
-