net.minecraft.client.gui.screen.ingame

public abstract class HandledScreen<T extends ScreenHandler>

extends Screen implements ScreenHandlerProvider<T>

All mapped superinterfaces:

ParentElement, Element, Navigable, Drawable, ScreenHandlerProvider

net.minecraft.client.gui.screens.inventory.AbstractContainerScreen
net.minecraft.class_465
net.minecraft.client.gui.screen.ingame.HandledScreen

Field summary

Modifier and TypeField
public static final Identifier
INVENTORY_LOCATION
field_2801
BACKGROUND_TEXTURE
private static final Identifier
SLOT_HIGHLIGHT_BACK_SPRITE
field_54268
SLOT_HIGHLIGHT_BACK_TEXTURE
private static final Identifier
SLOT_HIGHLIGHT_FRONT_SPRITE
field_54269
SLOT_HIGHLIGHT_FRONT_TEXTURE
protected static final int
BACKGROUND_TEXTURE_WIDTH
field_52802
field_52802
protected static final int
BACKGROUND_TEXTURE_HEIGHT
field_52803
field_52803
protected static final int
DEFAULT_IMAGE_WIDTH
field_1_811
field_1_811
protected static final int
DEFAULT_IMAGE_HEIGHT
field_1_810
field_1_810
protected final int
imageWidth
field_2792
backgroundWidth
protected final int
imageHeight
field_2779
backgroundHeight
protected int
titleLabelX
field_25267
titleX
protected int
titleLabelY
field_25268
titleY
protected int
inventoryLabelX
field_25269
playerInventoryTitleX
protected int
inventoryLabelY
field_25270
playerInventoryTitleY
private final List<TooltipSubmenuHandler>
itemSlotMouseActions
field_52801
tooltipSubmenuHandlers
protected final T
menu
field_2797
handler
protected final Text
playerInventoryTitle
field_29347
playerInventoryTitle
protected Slot
hoveredSlot
field_2787
focusedSlot
private Slot
lastClickSlot
field_2799
lastClickedSlot
protected int
leftPos
field_2776
x
protected int
topPos
field_2800
y
protected final Set<Slot>
quickCraftSlots
field_2793
cursorDragSlots
protected boolean
isQuickCrafting
field_2794
cursorDragging
private int
quickCraftingType
field_2790
heldButtonType
private int
quickCraftingButton
field_2778
heldButtonCode
private boolean
skipNextRelease
field_2798
cancelNextRelease
private int
quickCraftingRemainder
field_2803
draggedStackRemainder
private boolean
doubleclick
field_2783
doubleClicking
private ItemStack
lastQuickMoved
field_2791
quickMovingStack

Constructor summary

ModifierConstructor
public (T handler, PlayerInventory inventory, Text title)
public (T handler, PlayerInventory inventory, Text title, int backgroundWidth, int backgroundHeight)

Method summary

Modifier and TypeMethod
protected void
init()
method_25426()
init()
protected void
addItemSlotMouseAction(ItemSlotMouseAction itemSlotMouseAction)
method_62000(class_9930 arg0)
addTooltipSubmenuHandler(TooltipSubmenuHandler handler)
public void
extractRenderState(GuiGraphicsExtractor graphics, int mouseX, int mouseY, float a)
method_25394(class_332 arg0, int arg1, int arg2, float arg3)
render(DrawContext arg0, int arg1, int arg2, float arg3)
public void
extractContents(GuiGraphicsExtractor graphics, int mouseX, int mouseY, float a)
method_71085(class_332 arg0, int arg1, int arg2, float arg3)
renderMain(DrawContext context, int mouseX, int mouseY, float deltaTicks)
public void
extractCarriedItem(GuiGraphicsExtractor graphics, int mouseX, int mouseY)
method_71083(class_332 arg0, int arg1, int arg2)
renderCursorStack(DrawContext context, int mouseX, int mouseY)
protected void
extractSlots(GuiGraphicsExtractor graphics, int mouseX, int mouseY)
method_64508(class_332 arg0, int arg1, int arg2)
drawSlots(DrawContext context, int mouseX, int mouseY)
public boolean
mouseScrolled(double x, double y, double scrollX, double scrollY)
method_25401(double arg0, double arg1, double arg2, double arg3)
mouseScrolled(double arg0, double arg1, double arg2, double arg3)
private void
extractSlotHighlightBack(GuiGraphicsExtractor graphics)
method_64241(class_332 arg0)
drawSlotHighlightBack(DrawContext context)
private void
extractSlotHighlightFront(GuiGraphicsExtractor graphics)
method_64242(class_332 arg0)
drawSlotHighlightFront(DrawContext context)
protected void
extractTooltip(GuiGraphicsExtractor graphics, int mouseX, int mouseY)
method_2380(class_332 arg0, int arg1, int arg2)
drawMouseoverTooltip(DrawContext context, int x, int y)
private boolean
showTooltipWithItemInHand(ItemStack item)
method_62001(class_1799 arg0)
isItemTooltipSticky(ItemStack item)
protected List<Text>
getTooltipFromContainerItem(ItemStack itemStack)
method_51454(class_1799 arg0)
getTooltipFromItem(ItemStack stack)
private void
extractFloatingItem(GuiGraphicsExtractor graphics, ItemStack carried, int x, int y, String itemCount)
method_2382(class_332 arg0, class_1799 arg1, int arg2, int arg3, String arg4)
drawItem(DrawContext context, ItemStack stack, int x, int y, String amountText)
protected void
extractLabels(GuiGraphicsExtractor graphics, int xm, int ym)
method_2388(class_332 arg0, int arg1, int arg2)
drawForeground(DrawContext context, int mouseX, int mouseY)
protected void
extractSlot(GuiGraphicsExtractor graphics, Slot slot, int mouseX, int mouseY)
method_2385(class_332 arg0, class_1735 arg1, int arg2, int arg3)
drawSlot(DrawContext context, Slot slot, int mouseX, int mouseY)
private void
recalculateQuickCraftRemaining()
method_2379()
calculateOffset()
private Slot
getHoveredSlot(double x, double y)
method_64240(double arg0, double arg1)
getSlotAt(double mouseX, double mouseY)
public boolean
mouseClicked(MouseButtonEvent event, boolean doubleClick)
method_25402(class_11909 arg0, boolean arg1)
mouseClicked(Click arg0, boolean arg1)
private void
checkHotbarMouseClicked(MouseButtonEvent event)
method_30107(class_11909 arg0)
onMouseClick(Click arg0)
protected boolean
hasClickedOutside(double mx, double my, int xo, int yo)
method_2381(double arg0, double arg1, int arg2, int arg3)
isClickOutsideBounds(double mouseX, double mouseY, int left, int top)
public boolean
mouseDragged(MouseButtonEvent event, double dx, double dy)
method_25403(class_11909 arg0, double arg1, double arg2)
mouseDragged(Click arg0, double arg1, double arg2)
public boolean
mouseReleased(MouseButtonEvent event)
method_25406(class_11909 arg0)
mouseReleased(Click arg0)
private boolean
isHovering(Slot slot, double xm, double ym)
method_2387(class_1735 arg0, double arg1, double arg2)
isPointOverSlot(Slot slot, double pointX, double pointY)
protected boolean
isHovering(int left, int top, int w, int h, double xm, double ym)
method_2378(int arg0, int arg1, int arg2, int arg3, double arg4, double arg5)
isPointWithinBounds(int x, int y, int width, int height, double pointX, double pointY)
private void
onStopHovering(Slot slot)
method_61998(class_1735 arg0)
resetTooltipSubmenus(Slot slot)
protected void
slotClicked(Slot slot, int slotId, int buttonNum, ContainerInput containerInput)
method_2383(class_1735 arg0, int arg1, int arg2, class_1713 arg3)
onMouseClick(Slot slot, int slotId, int button, SlotActionType arg3)
protected void
onMouseClickAction(Slot slot, ContainerInput containerInput)
method_64239(class_1735 arg0, class_1713 arg1)
onMouseClick(Slot slot, SlotActionType arg1)
protected void
handleSlotStateChanged(int slotId, int containerId, boolean newState)
method_54590(int arg0, int arg1, boolean arg2)
onSlotChangedState(int slotId, int handlerId, boolean newState)
public boolean
keyPressed(KeyEvent event)
method_25404(class_11908 arg0)
keyPressed(KeyInput arg0)
protected boolean
checkHotbarKeyPressed(KeyEvent event)
method_2384(class_11908 arg0)
handleHotbarKeyPressed(KeyInput arg0)
public void
removed()
method_25432()
removed()
public boolean
isPauseScreen()
method_25421()
shouldPause()
public boolean
isInGameUi()
method_73150()
deferSubtitles()
public final void
tick()
method_25393()
tick()
protected void
containerTick()
method_37432()
handledScreenTick()
private boolean
shouldAddSlotToQuickCraft(Slot slot, ItemStack carried)
method_1_742(class_1735 arg0, class_1799 arg1)
canDrag(Slot slot, ItemStack stack)
private void
quickCraftToSlots()
method_1_741()
onFinishDrag()
public T
getMenu()
method_17577()
getScreenHandler()
public void
onClose()
method_25419()
close()