net.minecraft.client.gui.screens.inventory

public abstract class AbstractContainerScreen<T extends AbstractContainerMenu>

extends Screen implements MenuAccess<T>

All mapped superinterfaces:

ContainerEventHandler, GuiEventListener, TabOrderedElement, Renderable, MenuAccess

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

Field summary

Modifier and TypeField
public static final ResourceLocation
a
INVENTORY_LOCATION
field_2801
BACKGROUND_TEXTURE
f_97725_
private static final float
E
SNAPBACK_SPEED
field_32318
field_32318
f_169605_
private static final int
F
QUICKDROP_DELAY
field_32319
field_32319
f_169600_
public static final int
b
SLOT_ITEM_BLIT_OFFSET
field_32322
field_32322
f_169603_
private static final int
G
HOVER_ITEM_BLIT_OFFSET
field_32321
field_32321
f_169602_
protected int
c
imageWidth
field_2792
backgroundWidth
f_97726_
protected int
r
imageHeight
field_2779
backgroundHeight
f_97727_
protected int
s
titleLabelX
field_25267
titleX
f_97728_
protected int
u
titleLabelY
field_25268
titleY
f_97729_
protected int
v
inventoryLabelX
field_25269
playerInventoryTitleX
f_97730_
protected int
w
inventoryLabelY
field_25270
playerInventoryTitleY
f_97731_
protected final T
x
menu
field_2797
handler
f_97732_
protected final Component
y
playerInventoryTitle
field_29347
playerInventoryTitle
f_169604_
protected Slot
z
hoveredSlot
field_2787
focusedSlot
f_97734_
private Slot
H
clickedSlot
field_2777
touchDragSlotStart
f_97706_
private Slot
I
snapbackEnd
field_2802
touchDropOriginSlot
f_97707_
private Slot
J
quickdropSlot
field_2780
touchHoveredSlot
f_97708_
private Slot
K
lastClickSlot
field_2799
lastClickedSlot
f_97709_
protected int
A
leftPos
field_2776
x
f_97735_
protected int
B
topPos
field_2800
y
f_97736_
private boolean
L
isSplittingStack
field_2789
touchIsRightClickDrag
f_97710_
private ItemStack
M
draggingItem
field_2782
touchDragStack
f_97711_
private int
N
snapbackStartX
field_2784
touchDropX
f_97712_
private int
O
snapbackStartY
field_2796
touchDropY
f_97713_
private long
P
snapbackTime
field_2795
touchDropTime
f_97714_
private ItemStack
Q
snapbackItem
field_2785
touchDropReturningStack
f_97715_
private long
R
quickdropTime
field_2781
touchDropTimer
f_97716_
protected final Set<Slot>
C
quickCraftSlots
field_2793
cursorDragSlots
f_97737_
protected boolean
D
isQuickCrafting
field_2794
cursorDragging
f_97738_
private int
S
quickCraftingType
field_2790
heldButtonType
f_97717_
private int
T
quickCraftingButton
field_2778
heldButtonCode
f_97718_
private boolean
U
skipNextRelease
field_2798
cancelNextRelease
f_97719_
private int
V
quickCraftingRemainder
field_2803
draggedStackRemainder
f_97720_
private long
W
lastClickTime
field_2788
lastButtonClickTime
f_97721_
private int
X
lastClickButton
field_2786
lastClickedButton
f_97722_
private boolean
Y
doubleclick
field_2783
doubleClicking
f_97723_
private ItemStack
Z
lastQuickMoved
field_2791
quickMovingStack
f_97724_

Constructor summary

ModifierConstructor
public (T handler, Inventory inventory, Component title)

Method summary

Modifier and TypeMethod
protected void
aT_()
init()
method_25426()
init()
m_7856_()
public void
a(fhz arg0, int arg1, int arg2, float arg3)
render(GuiGraphics arg0, int arg1, int arg2, float arg3)
method_25394(class_332 arg0, int arg1, int arg2, float arg3)
render(DrawContext arg0, int arg1, int arg2, float arg3)
m_88315_(C_279497_ p_283661_, int p_281248_, int p_281886_, float arg3)
public void
b(fhz arg0, int arg1, int arg2, float arg3)
renderBackground(GuiGraphics arg0, int arg1, int arg2, float arg3)
method_25420(class_332 arg0, int arg1, int arg2, float arg3)
renderBackground(DrawContext arg0, int arg1, int arg2, float arg3)
m_280273_(C_279497_ p_297538_, int p_300104_, int p_298759_, float arg3)
public static void
a(fhz arg0, int arg1, int arg2, int arg3)
renderSlotHighlight(GuiGraphics arg0, int arg1, int arg2, int arg3)
method_33285(class_332 arg0, int arg1, int arg2, int arg3)
drawSlotHighlight(DrawContext context, int x, int y, int z)
m_280359_(C_279497_ p_283692_, int p_281453_, int p_281915_, int p_283504_)
protected void
a(fhz arg0, int arg1, int arg2)
renderTooltip(GuiGraphics arg0, int arg1, int arg2)
method_2380(class_332 arg0, int arg1, int arg2)
drawMouseoverTooltip(DrawContext context, int x, int y)
m_280072_(C_279497_ p_282171_, int p_281909_, int arg2)
protected List<Component>
a(cuq arg0)
getTooltipFromContainerItem(ItemStack arg0)
method_51454(class_1799 arg0)
getTooltipFromItem(ItemStack stack)
m_280553_(C_1391_ arg0)
private void
a(fhz arg0, cuq arg1, int arg2, int arg3, String arg4)
renderFloatingItem(GuiGraphics arg0, ItemStack arg1, int arg2, int arg3, String arg4)
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)
m_280211_(C_279497_ p_281330_, C_1391_ p_281772_, int p_281689_, int p_282568_, String arg4)
protected void
b(fhz arg0, int arg1, int arg2)
renderLabels(GuiGraphics arg0, int arg1, int arg2)
method_2388(class_332 arg0, int arg1, int arg2)
drawForeground(DrawContext context, int mouseX, int mouseY)
m_280003_(C_279497_ p_282681_, int p_283686_, int arg2)
protected abstract void
a(fhz arg0, float arg1, int arg2, int arg3)
renderBg(GuiGraphics arg0, float arg1, int arg2, int arg3)
method_2389(class_332 arg0, float arg1, int arg2, int arg3)
drawBackground(DrawContext context, float delta, int mouseX, int mouseY)
m_7286_(C_279497_ p_97788_, float p_97789_, int p_97790_, int arg3)
protected void
a(fhz arg0, crq arg1)
renderSlot(GuiGraphics arg0, Slot arg1)
method_2385(class_332 arg0, class_1735 arg1)
drawSlot(DrawContext context, Slot slot)
m_280092_(C_279497_ p_282613_, C_1305_ arg1)
private void
G()
recalculateQuickCraftRemaining()
method_2379()
calculateOffset()
m_97818_()
private Slot
b(double arg0, double arg1)
findSlot(double arg0, double arg1)
method_2386(double arg0, double arg1)
getSlotAt(double x, double y)
m_97744_(double p_97746_, double arg1)
public boolean
a(double arg0, double arg1, int arg2)
mouseClicked(double arg0, double arg1, int arg2)
method_25402(double arg0, double arg1, int arg2)
mouseClicked(double arg0, double arg1, int arg2)
m_6375_(double p_97749_, double arg1, int arg2)
private void
a(int arg0)
checkHotbarMouseClicked(int arg0)
method_30107(int arg0)
onMouseClick(int button)
m_97762_(int arg0)
protected boolean
a(double arg0, double arg1, int arg2, int arg3, int arg4)
hasClickedOutside(double arg0, double arg1, int arg2, int arg3, int arg4)
method_2381(double arg0, double arg1, int arg2, int arg3, int arg4)
isClickOutsideBounds(double mouseX, double mouseY, int left, int top, int button)
m_7467_(double p_97758_, double p_97760_, int arg2, int arg3, int arg4)
public boolean
a(double arg0, double arg1, int arg2, double arg3, double arg4)
mouseDragged(double arg0, double arg1, int arg2, double arg3, double arg4)
method_25403(double arg0, double arg1, int arg2, double arg3, double arg4)
mouseDragged(double arg0, double arg1, int arg2, double arg3, double arg4)
m_7979_(double p_97753_, double p_97755_, int arg2, double arg3, double arg4)
public boolean
b(double arg0, double arg1, int arg2)
mouseReleased(double arg0, double arg1, int arg2)
method_25406(double arg0, double arg1, int arg2)
mouseReleased(double arg0, double arg1, int arg2)
m_6348_(double p_97813_, double arg1, int arg2)
public void
m()
clearDraggingState()
method_44339()
endTouchDrag()
m_238391_()
private boolean
a(crq arg0, double arg1, double arg2)
isHovering(Slot arg0, double arg1, double arg2)
method_2387(class_1735 arg0, double arg1, double arg2)
isPointOverSlot(Slot slot, double pointX, double pointY)
m_97774_(C_1305_ p_97776_, double p_97777_, double arg2)
protected boolean
a(int arg0, int arg1, int arg2, int arg3, double arg4, double arg5)
isHovering(int arg0, int arg1, int arg2, int arg3, double arg4, double arg5)
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)
m_6774_(int p_97769_, int p_97770_, int p_97771_, int p_97772_, double p_97773_, double arg5)
protected void
a(crq arg0, int arg1, int arg2, cqe arg3)
slotClicked(Slot arg0, int arg1, int arg2, ClickType arg3)
method_2383(class_1735 arg0, int arg1, int arg2, class_1713 arg3)
onMouseClick(Slot slot, int slotId, int button, SlotActionType actionType)
m_6597_(C_1305_ p_97779_, int p_97780_, int p_97781_, C_1245_ arg3)
protected void
a(int arg0, int arg1, boolean arg2)
handleSlotStateChanged(int arg0, int arg1, boolean arg2)
method_54590(int arg0, int arg1, boolean arg2)
onSlotChangedState(int slotId, int handlerId, boolean newState)
m_305068_(int p_312119_, int p_310240_, boolean arg2)
public boolean
a(int arg0, int arg1, int arg2)
keyPressed(int arg0, int arg1, int arg2)
method_25404(int arg0, int arg1, int arg2)
keyPressed(int arg0, int arg1, int arg2)
m_7933_(int p_97766_, int p_97767_, int arg2)
protected boolean
a(int arg0, int arg1)
checkHotbarKeyPressed(int arg0, int arg1)
method_2384(int arg0, int arg1)
handleHotbarKeyPressed(int keyCode, int scanCode)
m_97805_(int p_97807_, int arg1)
public void
j()
removed()
method_25432()
removed()
m_7861_()
public boolean
k()
isPauseScreen()
method_25421()
shouldPause()
m_7043_()
public final void
e()
tick()
method_25393()
tick()
m_86600_()
protected void
C()
containerTick()
method_37432()
handledScreenTick()
m_181908_()
public T
D()
getMenu()
method_17577()
getScreenHandler()
m_6262_()
public void
d()
onClose()
method_25419()
close()
m_7379_()