类 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>
-
- 所有已实现的接口:
Drawable,Element,ParentElement,ScreenHandlerProvider<T>,TickableElement
- 直接已知子类:
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 eacintermediary net/minecraft/class_465named net/minecraft/client/gui/screen/ingame/HandledScreen
-
-
字段概要
-
从类继承的字段 net.minecraft.client.gui.screen.Screen
buttons, children, client, height, itemRenderer, passEvents, textRenderer, title, width
-
从类继承的字段 net.minecraft.client.gui.DrawableHelper
GUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE
-
-
构造器概要
构造器 构造器 说明 HandledScreen(T handler, PlayerInventory inventory, Text title)
-
方法概要
所有方法 静态方法 实例方法 抽象方法 具体方法 修饰符和类型 方法 说明 private voidcalculateOffset()protected abstract voiddrawBackground(MatrixStack matrices, float delta, int mouseX, int mouseY)protected voiddrawForeground(MatrixStack matrices, int mouseX, int mouseY)private voiddrawItem(ItemStack stack, int xPosition, int yPosition, String amountText)protected voiddrawMouseoverTooltip(MatrixStack matrices, int x, int y)private voiddrawSlot(MatrixStack matrices, Slot slot)TgetScreenHandler()private @Nullable SlotgetSlotAt(double xPosition, double yPosition)protected booleanhandleHotbarKeyPressed(int keyCode, int scanCode)protected voidinit()Called when a screen should be initialized.protected booleanisClickOutsideBounds(double mouseX, double mouseY, int left, int top, int button)booleanisPauseScreen()private booleanisPointOverSlot(Slot slot, double pointX, double pointY)protected booleanisPointWithinBounds(int xPosition, int yPosition, int width, int height, double pointX, double pointY)booleankeyPressed(int keyCode, int scanCode, int modifiers)Callback for when a key down event has been captured.private voidmethod_30107(int button)static voidmethod_33285(MatrixStack matrixStack, int int2, int int3, int int4)booleanmouseClicked(double mouseX, double mouseY, int button)Callback for when a mouse button down event has been captured.booleanmouseDragged(double mouseX, double mouseY, int button, double deltaX, double deltaY)Callback for when a mouse button drag event has been captured.booleanmouseReleased(double mouseX, double mouseY, int button)Callback for when a mouse button release event has been captured.voidonClose()protected voidonMouseClick(Slot slot, int slotId, int button, SlotActionType actionType)voidremoved()voidrender(MatrixStack matrices, int mouseX, int mouseY, float delta)voidtick()-
从类继承的方法 net.minecraft.client.gui.screen.Screen
addButton, addChild, children, filesDragged, getNarrationMessage, getTitle, getTooltipFromItem, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, renderBackground, renderBackground, renderBackgroundTexture, renderOrderedTooltip, renderTextHoverEffect, renderTooltip, renderTooltip, renderTooltip, renderTooltip, resize, sendMessage, sendMessage, shouldCloseOnEsc, wrapScreenError
-
从类继承的方法 net.minecraft.client.gui.AbstractParentElement
getFocused, isDragging, setDragging, setFocused
-
从类继承的方法 net.minecraft.client.gui.DrawableHelper
drawCenteredString, drawCenteredText, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, fill, fillGradient, fillGradient, getZOffset, method_29343, method_33284, method_35719, method_35720, setZOffset
-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 net.minecraft.client.gui.Element
mouseMoved
-
从接口继承的方法 net.minecraft.client.gui.ParentElement
changeFocus, charTyped, focusOn, hoveredElement, keyReleased, mouseScrolled, setInitialFocus
-
-
-
-
字段详细资料
-
BACKGROUND_TEXTURE
public static final Identifier BACKGROUND_TEXTURE
- Mappings:
Namespace Name Mixin selector official aLeac;a:Lwp;intermediary field_2801Lnet/minecraft/class_465;field_2801:Lnet/minecraft/class_2960;named BACKGROUND_TEXTURELnet/minecraft/client/gui/screen/ingame/HandledScreen;BACKGROUND_TEXTURE:Lnet/minecraft/util/Identifier;
-
field_32318
private static final float field_32318
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official BLeac;B:Fintermediary field_32318Lnet/minecraft/class_465;field_32318:Fnamed field_32318Lnet/minecraft/client/gui/screen/ingame/HandledScreen;field_32318:F
-
field_32319
private static final int field_32319
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official CLeac;C:Iintermediary field_32319Lnet/minecraft/class_465;field_32319:Inamed field_32319Lnet/minecraft/client/gui/screen/ingame/HandledScreen;field_32319:I
-
field_32320
private static final int field_32320
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official DLeac;D:Iintermediary field_32320Lnet/minecraft/class_465;field_32320:Inamed field_32320Lnet/minecraft/client/gui/screen/ingame/HandledScreen;field_32320:I
-
field_32322
public static final int field_32322
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official bLeac;b:Iintermediary field_32322Lnet/minecraft/class_465;field_32322:Inamed field_32322Lnet/minecraft/client/gui/screen/ingame/HandledScreen;field_32322:I
-
field_32321
private static final int field_32321
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official ELeac;E:Iintermediary field_32321Lnet/minecraft/class_465;field_32321:Inamed field_32321Lnet/minecraft/client/gui/screen/ingame/HandledScreen;field_32321:I
-
backgroundWidth
protected int backgroundWidth
- Mappings:
Namespace Name Mixin selector official cLeac;c:Iintermediary field_2792Lnet/minecraft/class_465;field_2792:Inamed backgroundWidthLnet/minecraft/client/gui/screen/ingame/HandledScreen;backgroundWidth:I
-
backgroundHeight
protected int backgroundHeight
- Mappings:
Namespace Name Mixin selector official pLeac;p:Iintermediary field_2779Lnet/minecraft/class_465;field_2779:Inamed backgroundHeightLnet/minecraft/client/gui/screen/ingame/HandledScreen;backgroundHeight:I
-
titleX
protected int titleX
- Mappings:
Namespace Name Mixin selector official qLeac;q:Iintermediary field_25267Lnet/minecraft/class_465;field_25267:Inamed titleXLnet/minecraft/client/gui/screen/ingame/HandledScreen;titleX:I
-
titleY
protected int titleY
- Mappings:
Namespace Name Mixin selector official rLeac;r:Iintermediary field_25268Lnet/minecraft/class_465;field_25268:Inamed titleYLnet/minecraft/client/gui/screen/ingame/HandledScreen;titleY:I
-
playerInventoryTitleX
protected int playerInventoryTitleX
- Mappings:
Namespace Name Mixin selector official sLeac;s:Iintermediary field_25269Lnet/minecraft/class_465;field_25269:Inamed playerInventoryTitleXLnet/minecraft/client/gui/screen/ingame/HandledScreen;playerInventoryTitleX:I
-
playerInventoryTitleY
protected int playerInventoryTitleY
- Mappings:
Namespace Name Mixin selector official tLeac;t:Iintermediary field_25270Lnet/minecraft/class_465;field_25270:Inamed playerInventoryTitleYLnet/minecraft/client/gui/screen/ingame/HandledScreen;playerInventoryTitleY:I
-
handler
protected final T extends ScreenHandler handler
- Mappings:
Namespace Name Mixin selector official uLeac;u:Lbll;intermediary field_2797Lnet/minecraft/class_465;field_2797:Lnet/minecraft/class_1703;named handlerLnet/minecraft/client/gui/screen/ingame/HandledScreen;handler:Lnet/minecraft/screen/ScreenHandler;
-
displayName
protected final Text displayName
- Mappings:
Namespace Name Mixin selector official vLeac;v:Lon;intermediary field_29347Lnet/minecraft/class_465;field_29347:Lnet/minecraft/class_2561;named displayNameLnet/minecraft/client/gui/screen/ingame/HandledScreen;displayName:Lnet/minecraft/text/Text;
-
focusedSlot
@Nullable protected @Nullable Slot focusedSlot
- Mappings:
Namespace Name Mixin selector official wLeac;w:Lbnc;intermediary field_2787Lnet/minecraft/class_465;field_2787:Lnet/minecraft/class_1735;named focusedSlotLnet/minecraft/client/gui/screen/ingame/HandledScreen;focusedSlot:Lnet/minecraft/screen/slot/Slot;
-
touchDragSlotStart
@Nullable private @Nullable Slot touchDragSlotStart
- Mappings:
Namespace Name Mixin selector official FLeac;F:Lbnc;intermediary field_2777Lnet/minecraft/class_465;field_2777:Lnet/minecraft/class_1735;named touchDragSlotStartLnet/minecraft/client/gui/screen/ingame/HandledScreen;touchDragSlotStart:Lnet/minecraft/screen/slot/Slot;
-
touchDropOriginSlot
@Nullable private @Nullable Slot touchDropOriginSlot
- Mappings:
Namespace Name Mixin selector official GLeac;G:Lbnc;intermediary field_2802Lnet/minecraft/class_465;field_2802:Lnet/minecraft/class_1735;named touchDropOriginSlotLnet/minecraft/client/gui/screen/ingame/HandledScreen;touchDropOriginSlot:Lnet/minecraft/screen/slot/Slot;
-
touchHoveredSlot
@Nullable private @Nullable Slot touchHoveredSlot
- Mappings:
Namespace Name Mixin selector official HLeac;H:Lbnc;intermediary field_2780Lnet/minecraft/class_465;field_2780:Lnet/minecraft/class_1735;named touchHoveredSlotLnet/minecraft/client/gui/screen/ingame/HandledScreen;touchHoveredSlot:Lnet/minecraft/screen/slot/Slot;
-
lastClickedSlot
@Nullable private @Nullable Slot lastClickedSlot
- Mappings:
Namespace Name Mixin selector official ILeac;I:Lbnc;intermediary field_2799Lnet/minecraft/class_465;field_2799:Lnet/minecraft/class_1735;named lastClickedSlotLnet/minecraft/client/gui/screen/ingame/HandledScreen;lastClickedSlot:Lnet/minecraft/screen/slot/Slot;
-
field_2776
protected int field_2776
- Mappings:
Namespace Name Mixin selector official xLeac;x:Iintermediary field_2776Lnet/minecraft/class_465;field_2776:Inamed field_2776Lnet/minecraft/client/gui/screen/ingame/HandledScreen;field_2776:I
-
field_2800
protected int field_2800
- Mappings:
Namespace Name Mixin selector official yLeac;y:Iintermediary field_2800Lnet/minecraft/class_465;field_2800:Inamed field_2800Lnet/minecraft/client/gui/screen/ingame/HandledScreen;field_2800:I
-
touchIsRightClickDrag
private boolean touchIsRightClickDrag
- Mappings:
Namespace Name Mixin selector official JLeac;J:Zintermediary field_2789Lnet/minecraft/class_465;field_2789:Znamed touchIsRightClickDragLnet/minecraft/client/gui/screen/ingame/HandledScreen;touchIsRightClickDrag:Z
-
touchDragStack
private ItemStack touchDragStack
- Mappings:
Namespace Name Mixin selector official KLeac;K:Lbpr;intermediary field_2782Lnet/minecraft/class_465;field_2782:Lnet/minecraft/class_1799;named touchDragStackLnet/minecraft/client/gui/screen/ingame/HandledScreen;touchDragStack:Lnet/minecraft/item/ItemStack;
-
touchDropX
private int touchDropX
- Mappings:
Namespace Name Mixin selector official LLeac;L:Iintermediary field_2784Lnet/minecraft/class_465;field_2784:Inamed touchDropXLnet/minecraft/client/gui/screen/ingame/HandledScreen;touchDropX:I
-
touchDropY
private int touchDropY
- Mappings:
Namespace Name Mixin selector official MLeac;M:Iintermediary field_2796Lnet/minecraft/class_465;field_2796:Inamed touchDropYLnet/minecraft/client/gui/screen/ingame/HandledScreen;touchDropY:I
-
touchDropTime
private long touchDropTime
- Mappings:
Namespace Name Mixin selector official NLeac;N:Jintermediary field_2795Lnet/minecraft/class_465;field_2795:Jnamed touchDropTimeLnet/minecraft/client/gui/screen/ingame/HandledScreen;touchDropTime:J
-
touchDropReturningStack
private ItemStack touchDropReturningStack
- Mappings:
Namespace Name Mixin selector official OLeac;O:Lbpr;intermediary field_2785Lnet/minecraft/class_465;field_2785:Lnet/minecraft/class_1799;named touchDropReturningStackLnet/minecraft/client/gui/screen/ingame/HandledScreen;touchDropReturningStack:Lnet/minecraft/item/ItemStack;
-
touchDropTimer
private long touchDropTimer
- Mappings:
Namespace Name Mixin selector official PLeac;P:Jintermediary field_2781Lnet/minecraft/class_465;field_2781:Jnamed touchDropTimerLnet/minecraft/client/gui/screen/ingame/HandledScreen;touchDropTimer:J
-
cursorDragSlots
protected final Set<Slot> cursorDragSlots
- Mappings:
Namespace Name Mixin selector official zLeac;z:Ljava/util/Set;intermediary field_2793Lnet/minecraft/class_465;field_2793:Ljava/util/Set;named cursorDragSlotsLnet/minecraft/client/gui/screen/ingame/HandledScreen;cursorDragSlots:Ljava/util/Set;
-
cursorDragging
protected boolean cursorDragging
- Mappings:
Namespace Name Mixin selector official ALeac;A:Zintermediary field_2794Lnet/minecraft/class_465;field_2794:Znamed cursorDraggingLnet/minecraft/client/gui/screen/ingame/HandledScreen;cursorDragging:Z
-
heldButtonType
private int heldButtonType
- Mappings:
Namespace Name Mixin selector official QLeac;Q:Iintermediary field_2790Lnet/minecraft/class_465;field_2790:Inamed heldButtonTypeLnet/minecraft/client/gui/screen/ingame/HandledScreen;heldButtonType:I
-
heldButtonCode
private int heldButtonCode
- Mappings:
Namespace Name Mixin selector official RLeac;R:Iintermediary field_2778Lnet/minecraft/class_465;field_2778:Inamed heldButtonCodeLnet/minecraft/client/gui/screen/ingame/HandledScreen;heldButtonCode:I
-
cancelNextRelease
private boolean cancelNextRelease
- Mappings:
Namespace Name Mixin selector official SLeac;S:Zintermediary field_2798Lnet/minecraft/class_465;field_2798:Znamed cancelNextReleaseLnet/minecraft/client/gui/screen/ingame/HandledScreen;cancelNextRelease:Z
-
draggedStackRemainder
private int draggedStackRemainder
- Mappings:
Namespace Name Mixin selector official TLeac;T:Iintermediary field_2803Lnet/minecraft/class_465;field_2803:Inamed draggedStackRemainderLnet/minecraft/client/gui/screen/ingame/HandledScreen;draggedStackRemainder:I
-
lastButtonClickTime
private long lastButtonClickTime
- Mappings:
Namespace Name Mixin selector official ULeac;U:Jintermediary field_2788Lnet/minecraft/class_465;field_2788:Jnamed lastButtonClickTimeLnet/minecraft/client/gui/screen/ingame/HandledScreen;lastButtonClickTime:J
-
lastClickedButton
private int lastClickedButton
- Mappings:
Namespace Name Mixin selector official VLeac;V:Iintermediary field_2786Lnet/minecraft/class_465;field_2786:Inamed lastClickedButtonLnet/minecraft/client/gui/screen/ingame/HandledScreen;lastClickedButton:I
-
doubleClicking
private boolean doubleClicking
- Mappings:
Namespace Name Mixin selector official WLeac;W:Zintermediary field_2783Lnet/minecraft/class_465;field_2783:Znamed doubleClickingLnet/minecraft/client/gui/screen/ingame/HandledScreen;doubleClicking:Z
-
quickMovingStack
private ItemStack quickMovingStack
- Mappings:
Namespace Name Mixin selector official XLeac;X:Lbpr;intermediary field_2791Lnet/minecraft/class_465;field_2791:Lnet/minecraft/class_1799;named quickMovingStackLnet/minecraft/client/gui/screen/ingame/HandledScreen;quickMovingStack:Lnet/minecraft/item/ItemStack;
-
-
构造器详细资料
-
HandledScreen
public HandledScreen(T handler, PlayerInventory inventory, Text title)
- Mappings:
Namespace Name Mixin selector official <init>Leac;<init>(Lbll;Lbje;Lon;)Vintermediary <init>Lnet/minecraft/class_465;<init>(Lnet/minecraft/class_1703;Lnet/minecraft/class_1661;Lnet/minecraft/class_2561;)Vnamed <init>Lnet/minecraft/client/gui/screen/ingame/HandledScreen;<init>(Lnet/minecraft/screen/ScreenHandler;Lnet/minecraft/entity/player/PlayerInventory;Lnet/minecraft/text/Text;)V
-
-
方法详细资料
-
init
protected void init()
Called when a screen should be initialized.This method is called when this screen is opened or resized.
-
render
public void render(MatrixStack matrices, int mouseX, int mouseY, float delta)
- 指定者:
render在接口中Drawable- 覆盖:
render在类中Screen- Mappings:
Namespace Name Mixin selector official aLdws;a(Ldpi;IIF)Vintermediary method_25394Lnet/minecraft/class_4068;method_25394(Lnet/minecraft/class_4587;IIF)Vnamed renderLnet/minecraft/client/gui/Drawable;render(Lnet/minecraft/client/util/math/MatrixStack;IIF)V
-
method_33285
public static void method_33285(MatrixStack matrixStack, int int2, int int3, int int4)
- Mappings:
Namespace Name Mixin selector official aLeac;a(Ldpi;III)Vintermediary method_33285Lnet/minecraft/class_465;method_33285(Lnet/minecraft/class_4587;III)Vnamed method_33285Lnet/minecraft/client/gui/screen/ingame/HandledScreen;method_33285(Lnet/minecraft/client/util/math/MatrixStack;III)V
-
drawMouseoverTooltip
protected void drawMouseoverTooltip(MatrixStack matrices, int x, int y)
- Mappings:
Namespace Name Mixin selector official aLeac;a(Ldpi;II)Vintermediary method_2380Lnet/minecraft/class_465;method_2380(Lnet/minecraft/class_4587;II)Vnamed drawMouseoverTooltipLnet/minecraft/client/gui/screen/ingame/HandledScreen;drawMouseoverTooltip(Lnet/minecraft/client/util/math/MatrixStack;II)V
-
drawItem
private void drawItem(ItemStack stack, int xPosition, int yPosition, String amountText)
- Mappings:
Namespace Name Mixin selector official aLeac;a(Lbpr;IILjava/lang/String;)Vintermediary method_2382Lnet/minecraft/class_465;method_2382(Lnet/minecraft/class_1799;IILjava/lang/String;)Vnamed drawItemLnet/minecraft/client/gui/screen/ingame/HandledScreen;drawItem(Lnet/minecraft/item/ItemStack;IILjava/lang/String;)V
-
drawForeground
protected void drawForeground(MatrixStack matrices, int mouseX, int mouseY)
- Mappings:
Namespace Name Mixin selector official bLeac;b(Ldpi;II)Vintermediary method_2388Lnet/minecraft/class_465;method_2388(Lnet/minecraft/class_4587;II)Vnamed drawForegroundLnet/minecraft/client/gui/screen/ingame/HandledScreen;drawForeground(Lnet/minecraft/client/util/math/MatrixStack;II)V
-
drawBackground
protected abstract void drawBackground(MatrixStack matrices, float delta, int mouseX, int mouseY)
- Mappings:
Namespace Name Mixin selector official aLeac;a(Ldpi;FII)Vintermediary method_2389Lnet/minecraft/class_465;method_2389(Lnet/minecraft/class_4587;FII)Vnamed drawBackgroundLnet/minecraft/client/gui/screen/ingame/HandledScreen;drawBackground(Lnet/minecraft/client/util/math/MatrixStack;FII)V
-
drawSlot
private void drawSlot(MatrixStack matrices, Slot slot)
- Mappings:
Namespace Name Mixin selector official aLeac;a(Ldpi;Lbnc;)Vintermediary method_2385Lnet/minecraft/class_465;method_2385(Lnet/minecraft/class_4587;Lnet/minecraft/class_1735;)Vnamed drawSlotLnet/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 lLeac;l()Vintermediary method_2379Lnet/minecraft/class_465;method_2379()Vnamed calculateOffsetLnet/minecraft/client/gui/screen/ingame/HandledScreen;calculateOffset()V
-
getSlotAt
@Nullable private @Nullable Slot getSlotAt(double xPosition, double yPosition)
- Mappings:
Namespace Name Mixin selector official aLeac;a(DD)Lbnc;intermediary method_2386Lnet/minecraft/class_465;method_2386(DD)Lnet/minecraft/class_1735;named getSlotAtLnet/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 inGLFWclass.- 指定者:
mouseClicked在接口中Element- 指定者:
mouseClicked在接口中ParentElement- 参数:
mouseX- the X coordinate of the mousemouseY- the Y coordinate of the mousebutton- the mouse button number- 返回:
trueto indicate that the event handling is successful/valid- 另请参阅:
Mouse.onMouseButton(long, int, int, int),GLFW.GLFW_MOUSE_BUTTON_1- Mappings:
Namespace Name Mixin selector official aLdwv;a(DDI)Zintermediary method_25402Lnet/minecraft/class_364;method_25402(DDI)Znamed mouseClickedLnet/minecraft/client/gui/Element;mouseClicked(DDI)Z
-
method_30107
private void method_30107(int button)
- Mappings:
Namespace Name Mixin selector official aLeac;a(I)Vintermediary method_30107Lnet/minecraft/class_465;method_30107(I)Vnamed method_30107Lnet/minecraft/client/gui/screen/ingame/HandledScreen;method_30107(I)V
-
isClickOutsideBounds
protected boolean isClickOutsideBounds(double mouseX, double mouseY, int left, int top, int button)- Mappings:
Namespace Name Mixin selector official aLeac;a(DDIII)Zintermediary method_2381Lnet/minecraft/class_465;method_2381(DDIII)Znamed isClickOutsideBoundsLnet/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 inGLFWclass.- 指定者:
mouseDragged在接口中Element- 指定者:
mouseDragged在接口中ParentElement- 参数:
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- 返回:
trueto indicate that the event handling is successful/valid- 另请参阅:
Mouse.onCursorPos(long, double, double),GLFW.GLFW_MOUSE_BUTTON_1- Mappings:
Namespace Name Mixin selector official aLdwv;a(DDIDD)Zintermediary method_25403Lnet/minecraft/class_364;method_25403(DDIDD)Znamed mouseDraggedLnet/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 inGLFWclass.- 指定者:
mouseReleased在接口中Element- 指定者:
mouseReleased在接口中ParentElement- 参数:
mouseX- the X coordinate of the mousemouseY- the Y coordinate of the mousebutton- the mouse button number- 返回:
trueto indicate that the event handling is successful/valid- 另请参阅:
Mouse.onMouseButton(long, int, int, int),GLFW.GLFW_MOUSE_BUTTON_1- Mappings:
Namespace Name Mixin selector official cLdwv;c(DDI)Zintermediary method_25406Lnet/minecraft/class_364;method_25406(DDI)Znamed mouseReleasedLnet/minecraft/client/gui/Element;mouseReleased(DDI)Z
-
isPointOverSlot
private boolean isPointOverSlot(Slot slot, double pointX, double pointY)
- Mappings:
Namespace Name Mixin selector official aLeac;a(Lbnc;DD)Zintermediary method_2387Lnet/minecraft/class_465;method_2387(Lnet/minecraft/class_1735;DD)Znamed isPointOverSlotLnet/minecraft/client/gui/screen/ingame/HandledScreen;isPointOverSlot(Lnet/minecraft/screen/slot/Slot;DD)Z
-
isPointWithinBounds
protected boolean isPointWithinBounds(int xPosition, int yPosition, int width, int height, double pointX, double pointY)- Mappings:
Namespace Name Mixin selector official aLeac;a(IIIIDD)Zintermediary method_2378Lnet/minecraft/class_465;method_2378(IIIIDD)Znamed isPointWithinBoundsLnet/minecraft/client/gui/screen/ingame/HandledScreen;isPointWithinBounds(IIIIDD)Z
-
onMouseClick
protected void onMouseClick(Slot slot, int slotId, int button, SlotActionType actionType)
- 另请参阅:
ScreenHandler.onSlotClick(int, int, net.minecraft.screen.slot.SlotActionType, net.minecraft.entity.player.PlayerEntity)- Mappings:
Namespace Name Mixin selector official aLeac;a(Lbnc;IILblu;)Vintermediary method_2383Lnet/minecraft/class_465;method_2383(Lnet/minecraft/class_1735;IILnet/minecraft/class_1713;)Vnamed onMouseClickLnet/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 inGLFWclass.- 指定者:
keyPressed在接口中Element- 指定者:
keyPressed在接口中ParentElement- 覆盖:
keyPressed在类中Screen- 参数:
keyCode- the named key code of the event as described in theGLFWclassscanCode- 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)- 返回:
trueto indicate that the event handling is successful/valid- 另请参阅:
Keyboard.onKey(long, int, int, int, int),GLFW.GLFW_KEY_Q,GLFWKeyCallbackI.invoke(long, int, int, int, int)- Mappings:
Namespace Name Mixin selector official aLdwv;a(III)Zintermediary method_25404Lnet/minecraft/class_364;method_25404(III)Znamed keyPressedLnet/minecraft/client/gui/Element;keyPressed(III)Z
-
handleHotbarKeyPressed
protected boolean handleHotbarKeyPressed(int keyCode, int scanCode)- Mappings:
Namespace Name Mixin selector official aLeac;a(II)Zintermediary method_2384Lnet/minecraft/class_465;method_2384(II)Znamed handleHotbarKeyPressedLnet/minecraft/client/gui/screen/ingame/HandledScreen;handleHotbarKeyPressed(II)Z
-
removed
public void removed()
-
isPauseScreen
public boolean isPauseScreen()
- 覆盖:
isPauseScreen在类中Screen- Mappings:
Namespace Name Mixin selector official aE_Ldzg;aE_()Zintermediary method_25421Lnet/minecraft/class_437;method_25421()Znamed isPauseScreenLnet/minecraft/client/gui/screen/Screen;isPauseScreen()Z
-
tick
public void tick()
- 指定者:
tick在接口中TickableElement- 覆盖:
tick在类中Screen- Mappings:
Namespace Name Mixin selector official dLdwp;d()Vintermediary method_25393Lnet/minecraft/class_4893;method_25393()Vnamed tickLnet/minecraft/client/gui/screen/TickableElement;tick()V
-
getScreenHandler
public T getScreenHandler()
- 指定者:
getScreenHandler在接口中ScreenHandlerProvider<T extends ScreenHandler>- Mappings:
Namespace Name Mixin selector official hLebd;h()Lbll;intermediary method_17577Lnet/minecraft/class_3936;method_17577()Lnet/minecraft/class_1703;named getScreenHandlerLnet/minecraft/client/gui/screen/ingame/ScreenHandlerProvider;getScreenHandler()Lnet/minecraft/screen/ScreenHandler;
-
-