Package net.minecraft.client.gui.widget
Class PressableTextWidget
java.lang.Object
net.minecraft.client.gui.DrawableHelper
net.minecraft.client.gui.widget.ClickableWidget
net.minecraft.client.gui.widget.PressableWidget
net.minecraft.client.gui.widget.ButtonWidget
net.minecraft.client.gui.widget.PressableTextWidget
- All Implemented Interfaces:
class_8021,Drawable,Element,Narratable,Selectable
- Mappings:
Namespace Name official emgintermediary net/minecraft/class_7077named net/minecraft/client/gui/widget/PressableTextWidget
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.client.gui.widget.ButtonWidget
ButtonWidget.Builder, ButtonWidget.NarrationSupplier, ButtonWidget.PressActionNested classes/interfaces inherited from interface net.minecraft.client.gui.Selectable
Selectable.SelectionType -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Textprivate final Textprivate final TextRendererFields inherited from class net.minecraft.client.gui.widget.ButtonWidget
DEFAULT_HEIGHT, DEFAULT_NARRATION_SUPPLIER, DEFAULT_WIDTH, DEFAULT_WIDTH_SMALL, narrationSupplier, onPressFields inherited from class net.minecraft.client.gui.widget.ClickableWidget
active, alpha, field_41797, height, hovered, visible, WIDGETS_TEXTURE, widthFields inherited from class net.minecraft.client.gui.DrawableHelper
GUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTUREFields inherited from interface net.minecraft.client.gui.Element
MAX_DOUBLE_CLICK_INTERVAL -
Constructor Summary
ConstructorsConstructorDescriptionPressableTextWidget(int x, int y, int width, int height, Text text, ButtonWidget.PressAction onPress, TextRenderer textRenderer) -
Method Summary
Modifier and TypeMethodDescriptionvoidrenderButton(MatrixStack matrices, int mouseX, int mouseY, float delta) Methods inherited from class net.minecraft.client.gui.widget.ButtonWidget
appendClickableNarrations, builder, getNarrationMessage, onPressMethods inherited from class net.minecraft.client.gui.widget.PressableWidget
keyPressed, onClickMethods inherited from class net.minecraft.client.gui.widget.ClickableWidget
appendDefaultNarrations, appendNarrations, clicked, getHeight, getMessage, getNarrationMessage, getTooltipPositioner, getType, getWidth, getX, getY, getYImage, isFocused, isHovered, isMouseOver, isNarratable, isValidClickButton, method_48202, method_48203, method_48205, method_48206, mouseClicked, mouseDragged, mouseReleased, onDrag, onRelease, playDownSound, render, renderBackground, setAlpha, setFocused, setMessage, setTooltip, setTooltipDelay, setWidth, setX, setYMethods inherited from class net.minecraft.client.gui.DrawableHelper
disableScissor, drawCenteredText, drawCenteredText, drawCenteredTextWithShadow, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, drawWithOutline, drawWithShadow, enableScissor, fill, fillGradient, fillGradient, fillGradient, getZOffset, method_48196, setZOffsetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.class_8021
method_48229Methods inherited from interface net.minecraft.client.gui.Element
charTyped, keyReleased, method_48218, mouseMoved, mouseScrolled
-
Field Details
-
textRenderer
- Mappings:
Namespace Name Mixin selector official aLemg;a:Lela;intermediary field_37257Lnet/minecraft/class_7077;field_37257:Lnet/minecraft/class_327;named textRendererLnet/minecraft/client/gui/widget/PressableTextWidget;textRenderer:Lnet/minecraft/client/font/TextRenderer;
-
text
- Mappings:
Namespace Name Mixin selector official bLemg;b:Lsu;intermediary field_37258Lnet/minecraft/class_7077;field_37258:Lnet/minecraft/class_2561;named textLnet/minecraft/client/gui/widget/PressableTextWidget;text:Lnet/minecraft/text/Text;
-
hoverText
- Mappings:
Namespace Name Mixin selector official cLemg;c:Lsu;intermediary field_37259Lnet/minecraft/class_7077;field_37259:Lnet/minecraft/class_2561;named hoverTextLnet/minecraft/client/gui/widget/PressableTextWidget;hoverText:Lnet/minecraft/text/Text;
-
-
Constructor Details
-
PressableTextWidget
public PressableTextWidget(int x, int y, int width, int height, Text text, ButtonWidget.PressAction onPress, TextRenderer textRenderer) - Mappings:
Namespace Name Mixin selector official <init>Lemg;<init>(IIIILsu;Lelm$c;Lela;)Vintermediary <init>Lnet/minecraft/class_7077;<init>(IIIILnet/minecraft/class_2561;Lnet/minecraft/class_4185$class_4241;Lnet/minecraft/class_327;)Vnamed <init>Lnet/minecraft/client/gui/widget/PressableTextWidget;<init>(IIIILnet/minecraft/text/Text;Lnet/minecraft/client/gui/widget/ButtonWidget$PressAction;Lnet/minecraft/client/font/TextRenderer;)V
-
-
Method Details
-
renderButton
- Overrides:
renderButtonin classClickableWidget- Mappings:
Namespace Name Mixin selector official bLelj;b(Leer;IIF)Vintermediary method_25359Lnet/minecraft/class_339;method_25359(Lnet/minecraft/class_4587;IIF)Vnamed renderButtonLnet/minecraft/client/gui/widget/ClickableWidget;renderButton(Lnet/minecraft/client/util/math/MatrixStack;IIF)V
-