net.minecraft.recipe

public class InputSlotFiller<R extends Recipe<?>>

net.minecraft.recipebook.ServerPlaceRecipe
net.minecraft.class_2955
net.minecraft.recipe.InputSlotFiller

Field summary

Modifier and TypeField
private static final int
ITEM_NOT_FOUND
field_51523
field_51523
private final PlayerInventory
inventory
field_13350
inventory
private final InputSlotFiller$Handler<R>
menu
field_13348
handler
private final boolean
useMaxItems
field_52340
craftAll
private final int
gridWidth
field_52341
width
private final int
gridHeight
field_52342
height
private final List<Slot>
inputGridSlots
field_52343
inputSlots
private final List<Slot>
slotsToClear
field_52344
slotsToReturn

Constructor summary

ModifierConstructor
private (InputSlotFiller$Handler<R> handler, PlayerInventory inventory, boolean craftAll, int width, int height, List<Slot> inputSlots, List<Slot> slotsToReturn)

Method summary

Modifier and TypeMethod
public static <I extends RecipeInput, R extends Recipe<I>> AbstractRecipeScreenHandler$PostFillAction
placeRecipe(ServerPlaceRecipe$CraftingMenuAccess<R> menu, int gridWidth, int gridHeight, List<Slot> inputGridSlots, List<Slot> slotsToClear, Inventory inventory, RecipeHolder<R> recipe, boolean useMaxItems, boolean allowDroppingItemsToClear)
method_61232(class_2955$class_9840<R> arg0, int arg1, int arg2, List<class_1735> arg3, List<class_1735> arg4, class_1661 arg5, class_8786<R> arg6, boolean arg7, boolean arg8)
fill(InputSlotFiller$Handler<R> handler, int width, int height, List<Slot> inputSlots, List<Slot> slotsToReturn, PlayerInventory inventory, RecipeEntry<R> recipe, boolean craftAll, boolean creative)
private AbstractRecipeScreenHandler$PostFillAction
tryPlaceRecipe(RecipeHolder<R> recipe, StackedItemContents availableItems)
method_61233(class_8786<R> arg0, class_9875 arg1)
tryFill(RecipeEntry<R> recipe, RecipeFinder finder)
private void
clearGrid()
method_12822()
returnInputs()
private void
placeRecipe(RecipeHolder<R> recipe, StackedItemContents availableItems)
method_61235(class_8786<R> arg0, class_9875 arg1)
fill(RecipeEntry<R> recipe, RecipeFinder finder)
private static int
clampToMaxStackSize(int value, List<Holder<Item>> items)
method_65781(int arg0, List<class_6880<class_1792>> arg1)
clampToMaxCount(int count, List<RegistryEntry<Item>> entries)
private int
calculateAmountToCraft(int biggestCraftableStack, boolean recipeMatchesPlaced)
method_61231(int arg0, boolean arg1)
calculateCraftAmount(int forCraftAll, boolean match)
private int
moveItemToGrid(Slot targetSlot, Holder<Item> itemInInventory, int count)
method_12824(class_1735 arg0, class_6880<class_1792> arg1, int arg2)
fillInputSlot(Slot slot, RegistryEntry<Item> item, int count)
private boolean
testClearGrid()
method_12825()
canReturnInputs()
private int
getAmountOfFreeSlotsInInventory()
method_12823()
getFreeInventorySlots()
private void
lambda$placeRecipe$0(List arg0, int arg1, Integer arg2, int arg3, int arg4, int arg5)
method_65782(List arg0, int arg1, Integer arg2, int arg3, int arg4, int arg5)
method_65782(List arg0, int arg1, Integer slot, int index, int x, int y)