类 AbstractPressableButtonWidget
- java.lang.Object
-
- net.minecraft.client.gui.DrawableHelper
-
- net.minecraft.client.gui.widget.AbstractButtonWidget
-
- net.minecraft.client.gui.widget.AbstractPressableButtonWidget
-
@Environment(CLIENT) public abstract class AbstractPressableButtonWidget extends AbstractButtonWidget
- Mappings:
Namespace Name official dvqintermediary net/minecraft/class_4264named net/minecraft/client/gui/widget/AbstractPressableButtonWidget
-
-
字段概要
-
从类继承的字段 net.minecraft.client.gui.widget.AbstractButtonWidget
active, alpha, height, hovered, nextNarration, visible, WIDGETS_LOCATION, width, x, y
-
从类继承的字段 net.minecraft.client.gui.DrawableHelper
GUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE
-
-
构造器概要
构造器 构造器 说明 AbstractPressableButtonWidget(int x, int y, int width, int height, Text message)
-
方法概要
所有方法 实例方法 抽象方法 具体方法 修饰符和类型 方法 说明 booleankeyPressed(int keyCode, int scanCode, int modifiers)Callback for when a key down event has been captured.voidonClick(double mouseX, double mouseY)abstract voidonPress()-
从类继承的方法 net.minecraft.client.gui.widget.AbstractButtonWidget
changeFocus, clicked, getHeight, getMessage, getNarrationMessage, getNarrationMessage, getWidth, getYImage, isFocused, isHovered, isMouseOver, isValidClickButton, mouseClicked, mouseDragged, mouseReleased, narrate, onDrag, onFocusedChanged, onRelease, playDownSound, queueNarration, render, renderBg, renderButton, renderToolTip, setAlpha, setFocused, setMessage, setWidth
-
从类继承的方法 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
charTyped, keyReleased, mouseMoved, mouseScrolled
-
-
-
-
构造器详细资料
-
AbstractPressableButtonWidget
public AbstractPressableButtonWidget(int x, int y, int width, int height, Text message)- Mappings:
Namespace Name Mixin selector official <init>Ldvu;<init>(IIIILon;)Vintermediary <init>Lnet/minecraft/class_339;<init>(IIIILnet/minecraft/class_2561;)Vnamed <init>Lnet/minecraft/client/gui/widget/AbstractButtonWidget;<init>(IIIILnet/minecraft/text/Text;)V
-
-
方法详细资料
-
onPress
public abstract void onPress()
- Mappings:
Namespace Name Mixin selector official bLdvq;b()Vintermediary method_25306Lnet/minecraft/class_4264;method_25306()Vnamed onPressLnet/minecraft/client/gui/widget/AbstractPressableButtonWidget;onPress()V
-
onClick
public void onClick(double mouseX, double mouseY)- 覆盖:
onClick在类中AbstractButtonWidget- Mappings:
Namespace Name Mixin selector official aLdvu;a(DD)Vintermediary method_25348Lnet/minecraft/class_339;method_25348(DD)Vnamed onClickLnet/minecraft/client/gui/widget/AbstractButtonWidget;onClick(DD)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.- 参数:
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
-
-