net.minecraft.screen

public abstract class ForgingScreenHandler

extends ScreenHandler

net.minecraft.world.inventory.ItemCombinerMenu
net.minecraft.class_4861
net.minecraft.screen.ForgingScreenHandler

Field summary

Modifier and TypeField
private static final int
INVENTORY_SLOTS_PER_ROW
field_41901
field_41901
private static final int
INVENTORY_ROWS
field_41902
field_41902
private static final int
INPUT_SLOT_START
field_54595
field_54595
protected final ScreenHandlerContext
access
field_22481
context
protected final PlayerEntity
player
field_22482
player
protected final Inventory
inputSlots
field_22480
input
protected final CraftingResultInventory
resultSlots
field_22479
output
private final int
resultSlotIndex
field_41904
resultSlotIndex

Constructor summary

ModifierConstructor
public (ScreenHandlerType<?> type, int syncId, PlayerInventory playerInventory, ScreenHandlerContext context, ForgingSlotsManager forgingSlotsManager)

Method summary

Modifier and TypeMethod
protected boolean
mayPickup(Player player, boolean hasItem)
method_24927(class_1657 arg0, boolean arg1)
canTakeOutput(PlayerEntity player, boolean present)
protected abstract void
onTake(Player player, ItemStack carried)
method_24923(class_1657 arg0, class_1799 arg1)
onTakeOutput(PlayerEntity player, ItemStack stack)
protected abstract boolean
isValidBlock(BlockState state)
method_24925(class_2680 arg0)
canUse(BlockState state)
private void
createInputSlots(ItemCombinerMenuSlotDefinition itemInputSlots)
method_48354(class_8047 arg0)
addInputSlots(ForgingSlotsManager forgingSlotsManager)
private void
createResultSlot(ItemCombinerMenuSlotDefinition itemInputSlots)
method_48355(class_8047 arg0)
addResultSlot(ForgingSlotsManager forgingSlotsManager)
public abstract void
createResult()
method_24928()
updateResult()
private SimpleInventory
createContainer(int size)
method_48358(int arg0)
createInputInventory(int size)
public void
slotsChanged(Container container)
method_7609(class_1263 arg0)
onContentChanged(Inventory arg0)
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)
protected boolean
canMoveIntoInputSlots(ItemStack stack)
method_48356(class_1799 arg0)
isValidIngredient(ItemStack stack)
public int
getResultSlot()
method_48360()
getResultSlotIndex()
private int
getInventorySlotStart()
method_48359()
getPlayerInventoryStartIndex()
private int
getInventorySlotEnd()
method_48361()
getPlayerInventoryEndIndex()
private int
getUseRowStart()
method_48362()
getPlayerHotbarStartIndex()
private int
getUseRowEnd()
method_48363()
getPlayerHotbarEndIndex()
private Boolean
lambda$stillValid$0(Player arg0, Level arg1, BlockPos arg2)
method_24924(class_1657 arg0, class_1937 arg1, class_2338 arg2)
method_24924(PlayerEntity arg0, World world, BlockPos pos)
private void
lambda$removed$0(Player arg0, Level arg1, BlockPos arg2)
method_24926(class_1657 arg0, class_1937 arg1, class_2338 arg2)
method_24926(PlayerEntity arg0, World world, BlockPos pos)