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
private static final float
SNAPBACK_SPEED
field_32318
field_32318
private static final int
QUICKDROP_DELAY
field_32319
field_32319
protected int
imageWidth
field_2792
backgroundWidth
protected 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
clickedSlot
field_2777
touchDragSlotStart
private Slot
quickdropSlot
field_2780
touchHoveredSlot
private Slot
lastClickSlot
field_2799
lastClickedSlot
private HandledScreen$LetGoTouchStack
snapbackData
field_60054
letGoTouchStack
protected int
leftPos
field_2776
x
protected int
topPos
field_2800
y
private boolean
isSplittingStack
field_2789
touchIsRightClickDrag
private ItemStack
draggingItem
field_2782
touchDragStack
private long
quickdropTime
field_2781
touchDropTimer
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)

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
render(GuiGraphics 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
renderContents(GuiGraphics 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
renderCarriedItem(GuiGraphics graphics, int mouseX, int mouseY)
method_71083(class_332 arg0, int arg1, int arg2)
renderCursorStack(DrawContext context, int mouseX, int mouseY)
public void
renderSnapbackItem(GuiGraphics graphics)
method_71084(class_332 arg0)
renderLetGoTouchStack(DrawContext context)
protected void
renderSlots(GuiGraphics graphics, int mouseX, int mouseY)
method_64508(class_332 arg0, int arg1, int arg2)
drawSlots(DrawContext context, int mouseX, int mouseY)
public void
renderBackground(GuiGraphics graphics, int mouseX, int mouseY, float a)
method_25420(class_332 arg0, int arg1, int arg2, float arg3)
renderBackground(DrawContext arg0, int arg1, int arg2, float arg3)
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
renderSlotHighlightBack(GuiGraphics graphics)
method_64241(class_332 arg0)
drawSlotHighlightBack(DrawContext context)
private void
renderSlotHighlightFront(GuiGraphics graphics)
method_64242(class_332 arg0)
drawSlotHighlightFront(DrawContext context)
protected void
renderTooltip(GuiGraphics 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
renderFloatingItem(GuiGraphics 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
renderLabels(GuiGraphics graphics, int xm, int ym)
method_2388(class_332 arg0, int arg1, int arg2)
drawForeground(DrawContext context, int mouseX, int mouseY)
protected abstract void
renderBg(GuiGraphics graphics, float a, int xm, int ym)
method_2389(class_332 arg0, float arg1, int arg2, int arg3)
drawBackground(DrawContext context, float deltaTicks, int mouseX, int mouseY)
protected void
renderSlot(GuiGraphics 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)
public void
clearDraggingState()
method_44339()
endTouchDrag()
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, ClickType clickType)
method_2383(class_1735 arg0, int arg1, int arg2, class_1713 arg3)
onMouseClick(Slot slot, int slotId, int button, SlotActionType actionType)
void
onMouseClickAction(Slot slot, ClickType clickType)
method_64239(class_1735 arg0, class_1713 arg1)
onMouseClick(Slot slot, SlotActionType actionType)
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()
public T
getMenu()
method_17577()
getScreenHandler()
public void
onClose()
method_25419()
close()