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 official zzintermediary net/minecraft/class_2955named net/minecraft/recipe/InputSlotFiller
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AbstractRecipeScreenHandler<C>protected PlayerInventoryprivate static final org.slf4j.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 voidreturnInputs(boolean bool) Methods 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
private static final org.slf4j.Logger LOGGER- Mappings:
Namespace Name Mixin selector official dLzz;d:Lorg/slf4j/Logger;intermediary field_13349Lnet/minecraft/class_2955;field_13349:Lorg/slf4j/Logger;named LOGGERLnet/minecraft/recipe/InputSlotFiller;LOGGER:Lorg/slf4j/Logger;
-
matcher
- Mappings:
Namespace Name Mixin selector official aLzz;a:Lbtj;intermediary field_13347Lnet/minecraft/class_2955;field_13347:Lnet/minecraft/class_1662;named matcherLnet/minecraft/recipe/InputSlotFiller;matcher:Lnet/minecraft/recipe/RecipeMatcher;
-
inventory
- Mappings:
Namespace Name Mixin selector official bLzz;b:Lbte;intermediary field_13350Lnet/minecraft/class_2955;field_13350:Lnet/minecraft/class_1661;named inventoryLnet/minecraft/recipe/InputSlotFiller;inventory:Lnet/minecraft/entity/player/PlayerInventory;
-
handler
- Mappings:
Namespace Name Mixin selector official cLzz;c:Lbwy;intermediary field_13348Lnet/minecraft/class_2955;field_13348:Lnet/minecraft/class_1729;named handlerLnet/minecraft/recipe/InputSlotFiller;handler:Lnet/minecraft/screen/AbstractRecipeScreenHandler;
-
-
Constructor Details
-
InputSlotFiller
- Mappings:
Namespace Name Mixin selector official <init>Lzz;<init>(Lbwy;)Vintermediary <init>Lnet/minecraft/class_2955;<init>(Lnet/minecraft/class_1729;)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 official aLzz;a(Lafp;Lccs;Z)Vintermediary method_12826Lnet/minecraft/class_2955;method_12826(Lnet/minecraft/class_3222;Lnet/minecraft/class_1860;Z)Vnamed fillInputSlotsLnet/minecraft/recipe/InputSlotFiller;fillInputSlots(Lnet/minecraft/server/network/ServerPlayerEntity;Lnet/minecraft/recipe/Recipe;Z)V
-
returnInputs
protected void returnInputs(boolean bool) - Mappings:
Namespace Name Mixin selector official aLzz;a(Z)Vintermediary method_12822Lnet/minecraft/class_2955;method_12822(Z)Vnamed returnInputsLnet/minecraft/recipe/InputSlotFiller;returnInputs(Z)V
-
fillInputSlots
- Mappings:
Namespace Name Mixin selector official aLzz;a(Lccs;Z)Vintermediary method_12821Lnet/minecraft/class_2955;method_12821(Lnet/minecraft/class_1860;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 official aLzy;a(Ljava/util/Iterator;IIII)Vintermediary method_12815Lnet/minecraft/class_2952;method_12815(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 official aLzz;a(ZIZ)Iintermediary method_12819Lnet/minecraft/class_2955;method_12819(ZIZ)Inamed getAmountToFillLnet/minecraft/recipe/InputSlotFiller;getAmountToFill(ZIZ)I
-
fillInputSlot
- Mappings:
Namespace Name Mixin selector official aLzz;a(Lbxg;Lcaa;)Vintermediary method_12824Lnet/minecraft/class_2955;method_12824(Lnet/minecraft/class_1735;Lnet/minecraft/class_1799;)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 official aLzz;a()Zintermediary method_12825Lnet/minecraft/class_2955;method_12825()Znamed canReturnInputsLnet/minecraft/recipe/InputSlotFiller;canReturnInputs()Z
-
getFreeInventorySlots
private int getFreeInventorySlots()- Mappings:
Namespace Name Mixin selector official bLzz;b()Iintermediary method_12823Lnet/minecraft/class_2955;method_12823()Inamed getFreeInventorySlotsLnet/minecraft/recipe/InputSlotFiller;getFreeInventorySlots()I
-