Package net.minecraft.client.gui.widget
Class PressableWidget
java.lang.Object
net.minecraft.client.gui.widget.ClickableWidget
net.minecraft.client.gui.widget.ClickableWidget.class_12230
net.minecraft.client.gui.widget.PressableWidget
- All Implemented Interfaces:
Drawable,Element,Narratable,Navigable,Selectable,Widget
- Direct Known Subclasses:
BeaconScreen.BaseButtonWidget,ButtonWidget,CheckboxWidget,CyclingButtonWidget
A pressable widget has a press action. It is pressed when it is clicked. It is
also pressed when enter or space keys are pressed when it is selected.
- Mappings:
Namespace Name named net/minecraft/client/gui/widget/PressableWidgetintermediary net/minecraft/class_4264official ggg
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.client.gui.widget.ClickableWidget
ClickableWidget.class_12230Nested classes/interfaces inherited from interface net.minecraft.client.gui.Selectable
Selectable.SelectionType -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleankeyPressed(KeyInput input) Callback for when a key down event has been captured.protected abstract voidmethod_75752(DrawContext drawContext, int int2, int int3, float float2) protected voidmethod_75793(class_12225 class_12225) protected final voidmethod_75794(DrawContext drawContext) private voidmethod_75795(DrawContext drawContext) voidabstract voidonPress(AbstractInput input) protected final voidrenderWidget(DrawContext context, int mouseX, int mouseY, float deltaTicks) Methods inherited from class net.minecraft.client.gui.widget.ClickableWidget.class_12230
getMessage, method_75800, setMessageMethods inherited from class net.minecraft.client.gui.widget.ClickableWidget
appendClickableNarrations, appendDefaultNarrations, appendNarrations, forEachChild, getBottom, getHeight, getNarrationMessage, getNarrationMessage, getNavigationFocus, getNavigationOrder, getNavigationPath, getRight, getType, getWidth, getX, getY, isFocused, isHovered, isInteractable, isMouseOver, isSelected, isValidClickButton, method_75798, method_75799, mouseClicked, mouseDragged, mouseReleased, onDrag, onRelease, playClickSound, playDownSound, render, setAlpha, setDimensions, setDimensionsAndPosition, setFocused, setHeight, setNavigationOrder, setTooltip, setTooltipDelay, setWidth, setX, setYMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.Element
charTyped, getBorder, getFocusedPath, isClickable, keyReleased, mouseMoved, mouseScrolledMethods inherited from interface net.minecraft.client.gui.Selectable
getNarratedPartsMethods inherited from interface net.minecraft.client.gui.widget.Widget
setPosition
-
Field Details
-
field_43050
protected static final int field_43050- See Also:
- Mappings:
Namespace Name Mixin selector named field_43050Lnet/minecraft/client/gui/widget/PressableWidget;field_43050:Iintermediary field_43050Lnet/minecraft/class_4264;field_43050:Iofficial eLggg;e:I
-
TEXTURES
- Mappings:
Namespace Name Mixin selector named TEXTURESLnet/minecraft/client/gui/widget/PressableWidget;TEXTURES:Lnet/minecraft/client/gui/screen/ButtonTextures;intermediary field_45339Lnet/minecraft/class_4264;field_45339:Lnet/minecraft/class_8666;official aLggg;a:Lgig;
-
-
Constructor Details
-
PressableWidget
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/client/gui/widget/ClickableWidget;<init>(IIIILnet/minecraft/text/Text;)Vintermediary <init>Lnet/minecraft/class_339;<init>(IIIILnet/minecraft/class_2561;)Vofficial <init>Lggo;<init>(IIIILym;)V
-
-
Method Details
-
onPress
- Mappings:
Namespace Name Mixin selector named onPressLnet/minecraft/client/gui/widget/PressableWidget;onPress(Lnet/minecraft/client/input/AbstractInput;)Vintermediary method_25306Lnet/minecraft/class_4264;method_25306(Lnet/minecraft/class_11907;)Vofficial aLggg;a(Lgwk;)V
-
renderWidget
- Specified by:
renderWidgetin classClickableWidget- Mappings:
Namespace Name Mixin selector named renderWidgetLnet/minecraft/client/gui/widget/ClickableWidget;renderWidget(Lnet/minecraft/client/gui/DrawContext;IIF)Vintermediary method_48579Lnet/minecraft/class_339;method_48579(Lnet/minecraft/class_332;IIF)Vofficial a_Lggo;a_(Lggd;IIF)V
-
method_75752
- Mappings:
Namespace Name Mixin selector named method_75752Lnet/minecraft/client/gui/widget/PressableWidget;method_75752(Lnet/minecraft/client/gui/DrawContext;IIF)Vintermediary method_75752Lnet/minecraft/class_4264;method_75752(Lnet/minecraft/class_332;IIF)Vofficial bLggg;b(Lggd;IIF)V
-
method_75793
- Mappings:
Namespace Name Mixin selector named method_75793Lnet/minecraft/client/gui/widget/PressableWidget;method_75793(Lnet/minecraft/class_12225;)Vintermediary method_75793Lnet/minecraft/class_4264;method_75793(Lnet/minecraft/class_12225;)Vofficial aLggg;a(Lgfx;)V
-
method_75794
- Mappings:
Namespace Name Mixin selector named method_75794Lnet/minecraft/client/gui/widget/PressableWidget;method_75794(Lnet/minecraft/client/gui/DrawContext;)Vintermediary method_75794Lnet/minecraft/class_4264;method_75794(Lnet/minecraft/class_332;)Vofficial aLggg;a(Lggd;)V
-
method_75795
- Mappings:
Namespace Name Mixin selector named method_75795Lnet/minecraft/client/gui/widget/PressableWidget;method_75795(Lnet/minecraft/client/gui/DrawContext;)Vintermediary method_75795Lnet/minecraft/class_4264;method_75795(Lnet/minecraft/class_332;)Vofficial bLggg;b(Lggd;)V
-
onClick
- Overrides:
onClickin classClickableWidget- Mappings:
Namespace Name Mixin selector named onClickLnet/minecraft/client/gui/widget/ClickableWidget;onClick(Lnet/minecraft/client/gui/Click;Z)Vintermediary method_25348Lnet/minecraft/class_339;method_25348(Lnet/minecraft/class_11909;Z)Vofficial bLggo;b(Lgwm;Z)V
-
keyPressed
Callback for when a key down event has been captured. The key code is identified by the constants inGLFWclass.- Returns:
trueto indicate that the event handling is successful/valid- See Also:
- Mappings:
Namespace Name Mixin selector named keyPressedLnet/minecraft/client/gui/Element;keyPressed(Lnet/minecraft/client/input/KeyInput;)Zintermediary method_25404Lnet/minecraft/class_364;method_25404(Lnet/minecraft/class_11908;)Zofficial aLgjy;a(Lgwl;)Z
-