Class HandledScreen<T extends ScreenHandler>
java.lang.Object
net.minecraft.client.gui.DrawableHelper
net.minecraft.client.gui.AbstractParentElement
net.minecraft.client.gui.screen.Screen
net.minecraft.client.gui.screen.ingame.HandledScreen<T>
- All Implemented Interfaces:
Drawable
,Element
,ParentElement
,ScreenHandlerProvider<T>
- Direct Known Subclasses:
AbstractFurnaceScreen
,AbstractInventoryScreen
,BeaconScreen
,BrewingStandScreen
,CartographyTableScreen
,CraftingScreen
,EnchantmentScreen
,ForgingScreen
,Generic3x3ContainerScreen
,GenericContainerScreen
,GrindstoneScreen
,HopperScreen
,HorseScreen
,LoomScreen
,MerchantScreen
,ShulkerBoxScreen
,StonecutterScreen
@Environment(CLIENT)
public abstract class HandledScreen<T extends ScreenHandler>
extends Screen
implements ScreenHandlerProvider<T>
- Mappings:
Namespace Name official ebm
intermediary net/minecraft/class_465
named net/minecraft/client/gui/screen/ingame/HandledScreen
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.client.gui.screen.Screen
Screen.SelectedElementNarrationData
-
Field Summary
Modifier and TypeFieldDescriptionstatic Identifier
protected int
protected int
private boolean
protected boolean
protected Text
private boolean
private int
private static float
private static int
private static int
private static int
static int
protected T
private int
private int
private long
private int
protected int
protected int
private ItemStack
protected int
protected int
private ItemStack
private ItemStack
private long
private long
private int
private int
private boolean
protected int
protected int
Fields inherited from class net.minecraft.client.gui.screen.Screen
client, height, itemRenderer, passEvents, textRenderer, title, width
Fields inherited from class net.minecraft.client.gui.DrawableHelper
GUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
protected abstract void
drawBackground(MatrixStack matrices, float delta, int mouseX, int mouseY)
protected void
drawForeground(MatrixStack matrices, int mouseX, int mouseY)
private void
protected void
drawMouseoverTooltip(MatrixStack matrices, int x, int y)
private void
drawSlot(MatrixStack matrices, Slot slot)
getSlotAt(double x, double y)
protected boolean
handleHotbarKeyPressed(int keyCode, int scanCode)
protected void
init()
Called when a screen should be initialized.protected boolean
isClickOutsideBounds(double mouseX, double mouseY, int left, int top, int button)
boolean
private boolean
isPointOverSlot(Slot slot, double pointX, double pointY)
protected boolean
isPointWithinBounds(int x, int y, int width, int height, double pointX, double pointY)
boolean
keyPressed(int keyCode, int scanCode, int modifiers)
Callback for when a key down event has been captured.static void
method_33285(MatrixStack matrices, int x, int y, int color)
boolean
mouseClicked(double mouseX, double mouseY, int button)
Callback for when a mouse button down event has been captured.boolean
mouseDragged(double mouseX, double mouseY, int button, double deltaX, double deltaY)
Callback for when a mouse button drag event has been captured.boolean
mouseReleased(double mouseX, double mouseY, int button)
Callback for when a mouse button release event has been captured.void
onClose()
private void
onMouseClick(int button)
protected void
onMouseClick(Slot slot, int slotId, int button, SlotActionType actionType)
void
removed()
void
render(MatrixStack matrices, int mouseX, int mouseY, float delta)
void
tick()
Methods inherited from class net.minecraft.client.gui.screen.Screen
addDrawable, addDrawableChild, addElementNarrations, addScreenNarrations, addSelectableChild, applyKeyPressNarratorDelay, applyMouseMoveNarratorDelay, applyMousePressScrollNarratorDelay, applyNarratorModeChangeDelay, children, clearChildren, filesDragged, findSelectedElementData, getNarratedTitle, getTitle, getTooltipFromItem, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, narrateScreenIfNarrationEnabled, remove, renderBackground, renderBackground, renderBackgroundTexture, renderOrderedTooltip, renderTextHoverEffect, renderTooltip, renderTooltip, renderTooltip, renderTooltip, resize, sendMessage, sendMessage, shouldCloseOnEsc, updateNarrator, wrapScreenError
Methods inherited from class net.minecraft.client.gui.AbstractParentElement
getFocused, isDragging, setDragging, setFocused
Methods inherited from class net.minecraft.client.gui.DrawableHelper
drawCenteredText, drawCenteredText, drawCenteredTextWithShadow, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, drawWithOutline, drawWithShadow, fill, fillGradient, fillGradient, fillGradient, getZOffset, setZOffset
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.client.gui.Element
mouseMoved
Methods inherited from interface net.minecraft.client.gui.ParentElement
changeFocus, charTyped, focusOn, hoveredElement, keyReleased, mouseScrolled, setInitialFocus
-
Field Details
-
BACKGROUND_TEXTURE
- Mappings:
Namespace Name Mixin selector official a
Lebm;a:Lww;
intermediary field_2801
Lnet/minecraft/class_465;field_2801:Lnet/minecraft/class_2960;
named BACKGROUND_TEXTURE
Lnet/minecraft/client/gui/screen/ingame/HandledScreen;BACKGROUND_TEXTURE:Lnet/minecraft/util/Identifier;
-
field_32318
private static final float field_32318- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official z
Lebm;z:F
intermediary field_32318
Lnet/minecraft/class_465;field_32318:F
named field_32318
Lnet/minecraft/client/gui/screen/ingame/HandledScreen;field_32318:F
-
field_32319
private static final int field_32319- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official A
Lebm;A:I
intermediary field_32319
Lnet/minecraft/class_465;field_32319:I
named field_32319
Lnet/minecraft/client/gui/screen/ingame/HandledScreen;field_32319:I
-
field_32320
private static final int field_32320- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official B
Lebm;B:I
intermediary field_32320
Lnet/minecraft/class_465;field_32320:I
named field_32320
Lnet/minecraft/client/gui/screen/ingame/HandledScreen;field_32320:I
-
field_32322
public static final int field_32322- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official b
Lebm;b:I
intermediary field_32322
Lnet/minecraft/class_465;field_32322:I
named field_32322
Lnet/minecraft/client/gui/screen/ingame/HandledScreen;field_32322:I
-
field_32321
private static final int field_32321- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official C
Lebm;C:I
intermediary field_32321
Lnet/minecraft/class_465;field_32321:I
named field_32321
Lnet/minecraft/client/gui/screen/ingame/HandledScreen;field_32321:I
-
backgroundWidth
protected int backgroundWidth- Mappings:
Namespace Name Mixin selector official c
Lebm;c:I
intermediary field_2792
Lnet/minecraft/class_465;field_2792:I
named backgroundWidth
Lnet/minecraft/client/gui/screen/ingame/HandledScreen;backgroundWidth:I
-
backgroundHeight
protected int backgroundHeight- Mappings:
Namespace Name Mixin selector official n
Lebm;n:I
intermediary field_2779
Lnet/minecraft/class_465;field_2779:I
named backgroundHeight
Lnet/minecraft/client/gui/screen/ingame/HandledScreen;backgroundHeight:I
-
titleX
protected int titleX- Mappings:
Namespace Name Mixin selector official o
Lebm;o:I
intermediary field_25267
Lnet/minecraft/class_465;field_25267:I
named titleX
Lnet/minecraft/client/gui/screen/ingame/HandledScreen;titleX:I
-
titleY
protected int titleY- Mappings:
Namespace Name Mixin selector official p
Lebm;p:I
intermediary field_25268
Lnet/minecraft/class_465;field_25268:I
named titleY
Lnet/minecraft/client/gui/screen/ingame/HandledScreen;titleY:I
-
playerInventoryTitleX
protected int playerInventoryTitleX- Mappings:
Namespace Name Mixin selector official q
Lebm;q:I
intermediary field_25269
Lnet/minecraft/class_465;field_25269:I
named playerInventoryTitleX
Lnet/minecraft/client/gui/screen/ingame/HandledScreen;playerInventoryTitleX:I
-
playerInventoryTitleY
protected int playerInventoryTitleY- Mappings:
Namespace Name Mixin selector official r
Lebm;r:I
intermediary field_25270
Lnet/minecraft/class_465;field_25270:I
named playerInventoryTitleY
Lnet/minecraft/client/gui/screen/ingame/HandledScreen;playerInventoryTitleY:I
-
handler
- Mappings:
Namespace Name Mixin selector official s
Lebm;s:Lbmj;
intermediary field_2797
Lnet/minecraft/class_465;field_2797:Lnet/minecraft/class_1703;
named handler
Lnet/minecraft/client/gui/screen/ingame/HandledScreen;handler:Lnet/minecraft/screen/ScreenHandler;
-
displayName
- Mappings:
Namespace Name Mixin selector official t
Lebm;t:Los;
intermediary field_29347
Lnet/minecraft/class_465;field_29347:Lnet/minecraft/class_2561;
named displayName
Lnet/minecraft/client/gui/screen/ingame/HandledScreen;displayName:Lnet/minecraft/text/Text;
-
focusedSlot
- Mappings:
Namespace Name Mixin selector official u
Lebm;u:Lboa;
intermediary field_2787
Lnet/minecraft/class_465;field_2787:Lnet/minecraft/class_1735;
named focusedSlot
Lnet/minecraft/client/gui/screen/ingame/HandledScreen;focusedSlot:Lnet/minecraft/screen/slot/Slot;
-
touchDragSlotStart
- Mappings:
Namespace Name Mixin selector official D
Lebm;D:Lboa;
intermediary field_2777
Lnet/minecraft/class_465;field_2777:Lnet/minecraft/class_1735;
named touchDragSlotStart
Lnet/minecraft/client/gui/screen/ingame/HandledScreen;touchDragSlotStart:Lnet/minecraft/screen/slot/Slot;
-
touchDropOriginSlot
- Mappings:
Namespace Name Mixin selector official E
Lebm;E:Lboa;
intermediary field_2802
Lnet/minecraft/class_465;field_2802:Lnet/minecraft/class_1735;
named touchDropOriginSlot
Lnet/minecraft/client/gui/screen/ingame/HandledScreen;touchDropOriginSlot:Lnet/minecraft/screen/slot/Slot;
-
touchHoveredSlot
- Mappings:
Namespace Name Mixin selector official F
Lebm;F:Lboa;
intermediary field_2780
Lnet/minecraft/class_465;field_2780:Lnet/minecraft/class_1735;
named touchHoveredSlot
Lnet/minecraft/client/gui/screen/ingame/HandledScreen;touchHoveredSlot:Lnet/minecraft/screen/slot/Slot;
-
lastClickedSlot
- Mappings:
Namespace Name Mixin selector official G
Lebm;G:Lboa;
intermediary field_2799
Lnet/minecraft/class_465;field_2799:Lnet/minecraft/class_1735;
named lastClickedSlot
Lnet/minecraft/client/gui/screen/ingame/HandledScreen;lastClickedSlot:Lnet/minecraft/screen/slot/Slot;
-
x
protected int x- Mappings:
Namespace Name Mixin selector official v
Lebm;v:I
intermediary field_2776
Lnet/minecraft/class_465;field_2776:I
named x
Lnet/minecraft/client/gui/screen/ingame/HandledScreen;x:I
-
y
protected int y- Mappings:
Namespace Name Mixin selector official w
Lebm;w:I
intermediary field_2800
Lnet/minecraft/class_465;field_2800:I
named y
Lnet/minecraft/client/gui/screen/ingame/HandledScreen;y:I
-
touchIsRightClickDrag
private boolean touchIsRightClickDrag- Mappings:
Namespace Name Mixin selector official H
Lebm;H:Z
intermediary field_2789
Lnet/minecraft/class_465;field_2789:Z
named touchIsRightClickDrag
Lnet/minecraft/client/gui/screen/ingame/HandledScreen;touchIsRightClickDrag:Z
-
touchDragStack
- Mappings:
Namespace Name Mixin selector official I
Lebm;I:Lbqp;
intermediary field_2782
Lnet/minecraft/class_465;field_2782:Lnet/minecraft/class_1799;
named touchDragStack
Lnet/minecraft/client/gui/screen/ingame/HandledScreen;touchDragStack:Lnet/minecraft/item/ItemStack;
-
touchDropX
private int touchDropX- Mappings:
Namespace Name Mixin selector official J
Lebm;J:I
intermediary field_2784
Lnet/minecraft/class_465;field_2784:I
named touchDropX
Lnet/minecraft/client/gui/screen/ingame/HandledScreen;touchDropX:I
-
touchDropY
private int touchDropY- Mappings:
Namespace Name Mixin selector official K
Lebm;K:I
intermediary field_2796
Lnet/minecraft/class_465;field_2796:I
named touchDropY
Lnet/minecraft/client/gui/screen/ingame/HandledScreen;touchDropY:I
-
touchDropTime
private long touchDropTime- Mappings:
Namespace Name Mixin selector official L
Lebm;L:J
intermediary field_2795
Lnet/minecraft/class_465;field_2795:J
named touchDropTime
Lnet/minecraft/client/gui/screen/ingame/HandledScreen;touchDropTime:J
-
touchDropReturningStack
- Mappings:
Namespace Name Mixin selector official M
Lebm;M:Lbqp;
intermediary field_2785
Lnet/minecraft/class_465;field_2785:Lnet/minecraft/class_1799;
named touchDropReturningStack
Lnet/minecraft/client/gui/screen/ingame/HandledScreen;touchDropReturningStack:Lnet/minecraft/item/ItemStack;
-
touchDropTimer
private long touchDropTimer- Mappings:
Namespace Name Mixin selector official N
Lebm;N:J
intermediary field_2781
Lnet/minecraft/class_465;field_2781:J
named touchDropTimer
Lnet/minecraft/client/gui/screen/ingame/HandledScreen;touchDropTimer:J
-
cursorDragSlots
- Mappings:
Namespace Name Mixin selector official x
Lebm;x:Ljava/util/Set;
intermediary field_2793
Lnet/minecraft/class_465;field_2793:Ljava/util/Set;
named cursorDragSlots
Lnet/minecraft/client/gui/screen/ingame/HandledScreen;cursorDragSlots:Ljava/util/Set;
-
cursorDragging
protected boolean cursorDragging- Mappings:
Namespace Name Mixin selector official y
Lebm;y:Z
intermediary field_2794
Lnet/minecraft/class_465;field_2794:Z
named cursorDragging
Lnet/minecraft/client/gui/screen/ingame/HandledScreen;cursorDragging:Z
-
heldButtonType
private int heldButtonType- Mappings:
Namespace Name Mixin selector official O
Lebm;O:I
intermediary field_2790
Lnet/minecraft/class_465;field_2790:I
named heldButtonType
Lnet/minecraft/client/gui/screen/ingame/HandledScreen;heldButtonType:I
-
heldButtonCode
private int heldButtonCode- Mappings:
Namespace Name Mixin selector official P
Lebm;P:I
intermediary field_2778
Lnet/minecraft/class_465;field_2778:I
named heldButtonCode
Lnet/minecraft/client/gui/screen/ingame/HandledScreen;heldButtonCode:I
-
cancelNextRelease
private boolean cancelNextRelease- Mappings:
Namespace Name Mixin selector official Q
Lebm;Q:Z
intermediary field_2798
Lnet/minecraft/class_465;field_2798:Z
named cancelNextRelease
Lnet/minecraft/client/gui/screen/ingame/HandledScreen;cancelNextRelease:Z
-
draggedStackRemainder
private int draggedStackRemainder- Mappings:
Namespace Name Mixin selector official R
Lebm;R:I
intermediary field_2803
Lnet/minecraft/class_465;field_2803:I
named draggedStackRemainder
Lnet/minecraft/client/gui/screen/ingame/HandledScreen;draggedStackRemainder:I
-
lastButtonClickTime
private long lastButtonClickTime- Mappings:
Namespace Name Mixin selector official S
Lebm;S:J
intermediary field_2788
Lnet/minecraft/class_465;field_2788:J
named lastButtonClickTime
Lnet/minecraft/client/gui/screen/ingame/HandledScreen;lastButtonClickTime:J
-
lastClickedButton
private int lastClickedButton- Mappings:
Namespace Name Mixin selector official T
Lebm;T:I
intermediary field_2786
Lnet/minecraft/class_465;field_2786:I
named lastClickedButton
Lnet/minecraft/client/gui/screen/ingame/HandledScreen;lastClickedButton:I
-
doubleClicking
private boolean doubleClicking- Mappings:
Namespace Name Mixin selector official U
Lebm;U:Z
intermediary field_2783
Lnet/minecraft/class_465;field_2783:Z
named doubleClicking
Lnet/minecraft/client/gui/screen/ingame/HandledScreen;doubleClicking:Z
-
quickMovingStack
- Mappings:
Namespace Name Mixin selector official V
Lebm;V:Lbqp;
intermediary field_2791
Lnet/minecraft/class_465;field_2791:Lnet/minecraft/class_1799;
named quickMovingStack
Lnet/minecraft/client/gui/screen/ingame/HandledScreen;quickMovingStack:Lnet/minecraft/item/ItemStack;
-
-
Constructor Details
-
HandledScreen
- Mappings:
Namespace Name Mixin selector official <init>
Lebm;<init>(Lbmj;Lbkc;Los;)V
intermediary <init>
Lnet/minecraft/class_465;<init>(Lnet/minecraft/class_1703;Lnet/minecraft/class_1661;Lnet/minecraft/class_2561;)V
named <init>
Lnet/minecraft/client/gui/screen/ingame/HandledScreen;<init>(Lnet/minecraft/screen/ScreenHandler;Lnet/minecraft/entity/player/PlayerInventory;Lnet/minecraft/text/Text;)V
-
-
Method Details
-
init
protected void init()Called when a screen should be initialized.This method is called when this screen is opened or resized.
-
render
- Specified by:
render
in interfaceDrawable
- Overrides:
render
in classScreen
- Mappings:
Namespace Name Mixin selector official a
Ldxu;a(Ldqk;IIF)V
intermediary method_25394
Lnet/minecraft/class_4068;method_25394(Lnet/minecraft/class_4587;IIF)V
named render
Lnet/minecraft/client/gui/Drawable;render(Lnet/minecraft/client/util/math/MatrixStack;IIF)V
-
method_33285
- Mappings:
Namespace Name Mixin selector official a
Lebm;a(Ldqk;III)V
intermediary method_33285
Lnet/minecraft/class_465;method_33285(Lnet/minecraft/class_4587;III)V
named method_33285
Lnet/minecraft/client/gui/screen/ingame/HandledScreen;method_33285(Lnet/minecraft/client/util/math/MatrixStack;III)V
-
drawMouseoverTooltip
- Mappings:
Namespace Name Mixin selector official a
Lebm;a(Ldqk;II)V
intermediary method_2380
Lnet/minecraft/class_465;method_2380(Lnet/minecraft/class_4587;II)V
named drawMouseoverTooltip
Lnet/minecraft/client/gui/screen/ingame/HandledScreen;drawMouseoverTooltip(Lnet/minecraft/client/util/math/MatrixStack;II)V
-
drawItem
- Mappings:
Namespace Name Mixin selector official a
Lebm;a(Lbqp;IILjava/lang/String;)V
intermediary method_2382
Lnet/minecraft/class_465;method_2382(Lnet/minecraft/class_1799;IILjava/lang/String;)V
named drawItem
Lnet/minecraft/client/gui/screen/ingame/HandledScreen;drawItem(Lnet/minecraft/item/ItemStack;IILjava/lang/String;)V
-
drawForeground
- Mappings:
Namespace Name Mixin selector official b
Lebm;b(Ldqk;II)V
intermediary method_2388
Lnet/minecraft/class_465;method_2388(Lnet/minecraft/class_4587;II)V
named drawForeground
Lnet/minecraft/client/gui/screen/ingame/HandledScreen;drawForeground(Lnet/minecraft/client/util/math/MatrixStack;II)V
-
drawBackground
- Mappings:
Namespace Name Mixin selector official a
Lebm;a(Ldqk;FII)V
intermediary method_2389
Lnet/minecraft/class_465;method_2389(Lnet/minecraft/class_4587;FII)V
named drawBackground
Lnet/minecraft/client/gui/screen/ingame/HandledScreen;drawBackground(Lnet/minecraft/client/util/math/MatrixStack;FII)V
-
drawSlot
- Mappings:
Namespace Name Mixin selector official a
Lebm;a(Ldqk;Lboa;)V
intermediary method_2385
Lnet/minecraft/class_465;method_2385(Lnet/minecraft/class_4587;Lnet/minecraft/class_1735;)V
named drawSlot
Lnet/minecraft/client/gui/screen/ingame/HandledScreen;drawSlot(Lnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/screen/slot/Slot;)V
-
calculateOffset
private void calculateOffset()- Mappings:
Namespace Name Mixin selector official x
Lebm;x()V
intermediary method_2379
Lnet/minecraft/class_465;method_2379()V
named calculateOffset
Lnet/minecraft/client/gui/screen/ingame/HandledScreen;calculateOffset()V
-
getSlotAt
- Mappings:
Namespace Name Mixin selector official a
Lebm;a(DD)Lboa;
intermediary method_2386
Lnet/minecraft/class_465;method_2386(DD)Lnet/minecraft/class_1735;
named getSlotAt
Lnet/minecraft/client/gui/screen/ingame/HandledScreen;getSlotAt(DD)Lnet/minecraft/screen/slot/Slot;
-
mouseClicked
public boolean mouseClicked(double mouseX, double mouseY, int button)Callback for when a mouse button down event has been captured. The button number is identified by the constants inGLFW
class.- Specified by:
mouseClicked
in interfaceElement
- Specified by:
mouseClicked
in interfaceParentElement
- Parameters:
mouseX
- the X coordinate of the mousemouseY
- the Y coordinate of the mousebutton
- the mouse button number- Returns:
true
to indicate that the event handling is successful/valid- See Also:
Mouse.onMouseButton(long, int, int, int)
,GLFW.GLFW_MOUSE_BUTTON_1
- Mappings:
Namespace Name Mixin selector official a
Ldxx;a(DDI)Z
intermediary method_25402
Lnet/minecraft/class_364;method_25402(DDI)Z
named mouseClicked
Lnet/minecraft/client/gui/Element;mouseClicked(DDI)Z
-
onMouseClick
private void onMouseClick(int button)- Mappings:
Namespace Name Mixin selector official a
Lebm;a(I)V
intermediary method_30107
Lnet/minecraft/class_465;method_30107(I)V
named onMouseClick
Lnet/minecraft/client/gui/screen/ingame/HandledScreen;onMouseClick(I)V
-
isClickOutsideBounds
protected boolean isClickOutsideBounds(double mouseX, double mouseY, int left, int top, int button)- Mappings:
Namespace Name Mixin selector official a
Lebm;a(DDIII)Z
intermediary method_2381
Lnet/minecraft/class_465;method_2381(DDIII)Z
named isClickOutsideBounds
Lnet/minecraft/client/gui/screen/ingame/HandledScreen;isClickOutsideBounds(DDIII)Z
-
mouseDragged
public boolean mouseDragged(double mouseX, double mouseY, int button, double deltaX, double deltaY)Callback for when a mouse button drag event has been captured. The button number is identified by the constants inGLFW
class.- Specified by:
mouseDragged
in interfaceElement
- Specified by:
mouseDragged
in interfaceParentElement
- Parameters:
mouseX
- the current X coordinate of the mousemouseY
- the current Y coordinate of the mousebutton
- the mouse button numberdeltaX
- the difference of the current X with the previous X coordinatedeltaY
- the difference of the current Y with the previous Y coordinate- Returns:
true
to indicate that the event handling is successful/valid- See Also:
Mouse.onCursorPos(long, double, double)
,GLFW.GLFW_MOUSE_BUTTON_1
- Mappings:
Namespace Name Mixin selector official a
Ldxx;a(DDIDD)Z
intermediary method_25403
Lnet/minecraft/class_364;method_25403(DDIDD)Z
named mouseDragged
Lnet/minecraft/client/gui/Element;mouseDragged(DDIDD)Z
-
mouseReleased
public boolean mouseReleased(double mouseX, double mouseY, int button)Callback for when a mouse button release event has been captured. The button number is identified by the constants inGLFW
class.- Specified by:
mouseReleased
in interfaceElement
- Specified by:
mouseReleased
in interfaceParentElement
- Parameters:
mouseX
- the X coordinate of the mousemouseY
- the Y coordinate of the mousebutton
- the mouse button number- Returns:
true
to indicate that the event handling is successful/valid- See Also:
Mouse.onMouseButton(long, int, int, int)
,GLFW.GLFW_MOUSE_BUTTON_1
- Mappings:
Namespace Name Mixin selector official c
Ldxx;c(DDI)Z
intermediary method_25406
Lnet/minecraft/class_364;method_25406(DDI)Z
named mouseReleased
Lnet/minecraft/client/gui/Element;mouseReleased(DDI)Z
-
isPointOverSlot
- Mappings:
Namespace Name Mixin selector official a
Lebm;a(Lboa;DD)Z
intermediary method_2387
Lnet/minecraft/class_465;method_2387(Lnet/minecraft/class_1735;DD)Z
named isPointOverSlot
Lnet/minecraft/client/gui/screen/ingame/HandledScreen;isPointOverSlot(Lnet/minecraft/screen/slot/Slot;DD)Z
-
isPointWithinBounds
protected boolean isPointWithinBounds(int x, int y, int width, int height, double pointX, double pointY)- Mappings:
Namespace Name Mixin selector official a
Lebm;a(IIIIDD)Z
intermediary method_2378
Lnet/minecraft/class_465;method_2378(IIIIDD)Z
named isPointWithinBounds
Lnet/minecraft/client/gui/screen/ingame/HandledScreen;isPointWithinBounds(IIIIDD)Z
-
onMouseClick
- See Also:
ScreenHandler.onSlotClick(int, int, net.minecraft.screen.slot.SlotActionType, net.minecraft.entity.player.PlayerEntity)
- Mappings:
Namespace Name Mixin selector official a
Lebm;a(Lboa;IILbms;)V
intermediary method_2383
Lnet/minecraft/class_465;method_2383(Lnet/minecraft/class_1735;IILnet/minecraft/class_1713;)V
named onMouseClick
Lnet/minecraft/client/gui/screen/ingame/HandledScreen;onMouseClick(Lnet/minecraft/screen/slot/Slot;IILnet/minecraft/screen/slot/SlotActionType;)V
-
keyPressed
public boolean keyPressed(int keyCode, int scanCode, int modifiers)Callback for when a key down event has been captured. The key code is identified by the constants inGLFW
class.- Specified by:
keyPressed
in interfaceElement
- Specified by:
keyPressed
in interfaceParentElement
- Overrides:
keyPressed
in classScreen
- Parameters:
keyCode
- the named key code of the event as described in theGLFW
classscanCode
- the unique/platform-specific scan code of the keyboard inputmodifiers
- a GLFW bitfield describing the modifier keys that are held down (see GLFW Modifier key flags)- Returns:
true
to indicate that the event handling is successful/valid- See Also:
Keyboard.onKey(long, int, int, int, int)
,GLFW.GLFW_KEY_Q
,GLFWKeyCallbackI.invoke(long, int, int, int, int)
- Mappings:
Namespace Name Mixin selector official a
Ldxx;a(III)Z
intermediary method_25404
Lnet/minecraft/class_364;method_25404(III)Z
named keyPressed
Lnet/minecraft/client/gui/Element;keyPressed(III)Z
-
handleHotbarKeyPressed
protected boolean handleHotbarKeyPressed(int keyCode, int scanCode)- Mappings:
Namespace Name Mixin selector official a
Lebm;a(II)Z
intermediary method_2384
Lnet/minecraft/class_465;method_2384(II)Z
named handleHotbarKeyPressed
Lnet/minecraft/client/gui/screen/ingame/HandledScreen;handleHotbarKeyPressed(II)Z
-
removed
public void removed() -
isPauseScreen
public boolean isPauseScreen()- Overrides:
isPauseScreen
in classScreen
- Mappings:
Namespace Name Mixin selector official ai_
Leap;ai_()Z
intermediary method_25421
Lnet/minecraft/class_437;method_25421()Z
named isPauseScreen
Lnet/minecraft/client/gui/screen/Screen;isPauseScreen()Z
-
tick
public void tick() -
getScreenHandler
- Specified by:
getScreenHandler
in interfaceScreenHandlerProvider<T extends ScreenHandler>
- Mappings:
Namespace Name Mixin selector official h
Lecn;h()Lbmj;
intermediary method_17577
Lnet/minecraft/class_3936;method_17577()Lnet/minecraft/class_1703;
named getScreenHandler
Lnet/minecraft/client/gui/screen/ingame/ScreenHandlerProvider;getScreenHandler()Lnet/minecraft/screen/ScreenHandler;
-
onClose
public void onClose()
-