net.minecraft.screen

public class CraftingScreenHandler

extends AbstractCraftingScreenHandler

net.minecraft.world.inventory.CraftingMenu
net.minecraft.class_1714
net.minecraft.screen.CraftingScreenHandler

Field summary

Modifier and TypeField
private static final int
CRAFTING_GRID_WIDTH
field_52567
field_52567
private static final int
CRAFTING_GRID_HEIGHT
field_52568
field_52568
public static final int
RESULT_SLOT
field_30781
RESULT_ID
private static final int
CRAFT_SLOT_START
field_30782
INPUT_START
private static final int
CRAFT_SLOT_COUNT
field_52569
field_52569
private static final int
CRAFT_SLOT_END
field_30783
INPUT_END
private static final int
INV_SLOT_START
field_30784
INVENTORY_START
private static final int
INV_SLOT_END
field_30785
INVENTORY_END
private static final int
USE_ROW_SLOT_START
field_30786
HOTBAR_START
private static final int
USE_ROW_SLOT_END
field_30787
HOTBAR_END
private final ScreenHandlerContext
access
field_7799
context
private final PlayerEntity
player
field_7797
player
private boolean
placingRecipe
field_51625
filling

Constructor summary

ModifierConstructor
public (int syncId, PlayerInventory playerInventory)
public (int syncId, PlayerInventory playerInventory, ScreenHandlerContext context)

Method summary

Modifier and TypeMethod
protected static void
slotChangedCraftingGrid(AbstractContainerMenu menu, ServerLevel level, Player player, CraftingContainer container, ResultContainer resultSlots, RecipeHolder<CraftingRecipe> recipeHint)
method_17399(class_1703 arg0, class_3218 arg1, class_1657 arg2, class_8566 arg3, class_1731 arg4, class_8786<class_3955> arg5)
updateResult(ScreenHandler handler, ServerWorld world, PlayerEntity player, RecipeInputInventory craftingInventory, CraftingResultInventory resultInventory, RecipeEntry<CraftingRecipe> recipe)
public void
slotsChanged(Container container)
method_7609(class_1263 arg0)
onContentChanged(Inventory arg0)
public void
beginPlacingRecipe()
method_59963()
onInputSlotFillStart()
public void
finishPlacingRecipe(ServerLevel level, RecipeHolder<CraftingRecipe> recipe)
method_59964(class_3218 arg0, class_8786<class_3955> arg1)
onInputSlotFillFinish(ServerWorld arg0, RecipeEntry<CraftingRecipe> arg1)
public void
removed(Player player)
method_7595(class_1657 arg0)
onClosed(PlayerEntity arg0)
public boolean
stillValid(Player player)
method_7597(class_1657 arg0)
canUse(PlayerEntity arg0)
public ItemStack
quickMoveStack(Player player, int slotIndex)
method_7601(class_1657 arg0, int arg1)
quickMove(PlayerEntity arg0, int arg1)
public boolean
canTakeItemForPickAll(ItemStack carried, Slot target)
method_7613(class_1799 arg0, class_1735 arg1)
canInsertIntoSlot(ItemStack arg0, Slot arg1)
public Slot
getResultSlot()
method_61627()
getOutputSlot()
public List<Slot>
getInputGridSlots()
method_61628()
getInputSlots()
public RecipeBookType
getRecipeBookType()
method_30264()
getCategory()
protected PlayerEntity
owner()
method_61631()
getPlayer()
private void
lambda$removed$0(Player arg0, Level arg1, BlockPos arg2)
method_17402(class_1657 arg0, class_1937 arg1, class_2338 arg2)
method_17402(PlayerEntity arg0, World world, BlockPos pos)
private void
lambda$slotsChanged$0(Level arg0, BlockPos arg1)
method_17401(class_1937 arg0, class_2338 arg1)
method_17401(World world, BlockPos pos)