Package net.minecraft.client.gui.widget
Class EmptyWidget
java.lang.Object
net.minecraft.client.gui.DrawableHelper
net.minecraft.client.gui.widget.ClickableWidget
net.minecraft.client.gui.widget.EmptyWidget
- All Implemented Interfaces:
Drawable
,Element
,Narratable
,Selectable
- Mappings:
Namespace Name official elz
intermediary net/minecraft/class_7852
named net/minecraft/client/gui/widget/EmptyWidget
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.client.gui.Selectable
Selectable.SelectionType
-
Field Summary
Fields inherited from class net.minecraft.client.gui.widget.ClickableWidget
active, alpha, height, hovered, visible, WIDGETS_TEXTURE, width
Fields inherited from class net.minecraft.client.gui.DrawableHelper
GUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE
Fields inherited from interface net.minecraft.client.gui.Element
MAX_DOUBLE_CLICK_INTERVAL
-
Constructor Summary
ConstructorDescriptionEmptyWidget
(int width, int height) EmptyWidget
(int x, int y, int width, int height) -
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
changeFocus
(boolean lookForwards) Changes the focusing element by cycling to the next/previous element.static ClickableWidget
ofHeight
(int height) static ClickableWidget
ofWidth
(int width) Methods inherited from class net.minecraft.client.gui.widget.ClickableWidget
appendDefaultNarrations, appendNarrations, clicked, getHeight, getMessage, getNarrationMessage, getNarrationMessage, getTooltipPositioner, getType, getWidth, getX, getY, getYImage, isFocused, isHovered, isMouseOver, isNarratable, isValidClickButton, mouseClicked, mouseDragged, mouseReleased, onClick, onDrag, onFocusedChanged, onRelease, playDownSound, render, renderBackground, renderButton, setAlpha, setFocused, setMessage, setPos, setTooltip, setTooltipDelay, setWidth, setX, setY
Methods 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, 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
charTyped, keyPressed, keyReleased, mouseMoved, mouseScrolled
-
Constructor Details
-
EmptyWidget
public EmptyWidget(int width, int height) - Mappings:
Namespace Name Mixin selector official <init>
Lelz;<init>(II)V
intermediary <init>
Lnet/minecraft/class_7852;<init>(II)V
named <init>
Lnet/minecraft/client/gui/widget/EmptyWidget;<init>(II)V
-
EmptyWidget
public EmptyWidget(int x, int y, int width, int height) - Mappings:
Namespace Name Mixin selector official <init>
Lelz;<init>(IIII)V
intermediary <init>
Lnet/minecraft/class_7852;<init>(IIII)V
named <init>
Lnet/minecraft/client/gui/widget/EmptyWidget;<init>(IIII)V
-
-
Method Details
-
appendClickableNarrations
- Specified by:
appendClickableNarrations
in classClickableWidget
- Mappings:
Namespace Name Mixin selector official a
Lekw;a(Lenk;)V
intermediary method_47399
Lnet/minecraft/class_339;method_47399(Lnet/minecraft/class_6382;)V
named appendClickableNarrations
Lnet/minecraft/client/gui/widget/ClickableWidget;appendClickableNarrations(Lnet/minecraft/client/gui/screen/narration/NarrationMessageBuilder;)V
-
changeFocus
public boolean changeFocus(boolean lookForwards) Changes the focusing element by cycling to the next/previous element. This action is done typically when the user has pressed the 'Tab' or 'Ctrl+Tab' key.- Specified by:
changeFocus
in interfaceElement
- Overrides:
changeFocus
in classClickableWidget
- Parameters:
lookForwards
-true
to cycle forwards, otherwise cycle backwards- Returns:
true
to indicate that the event handling is successful/valid- Mappings:
Namespace Name Mixin selector official b
Lemg;b(Z)Z
intermediary method_25407
Lnet/minecraft/class_364;method_25407(Z)Z
named changeFocus
Lnet/minecraft/client/gui/Element;changeFocus(Z)Z
-
ofWidth
- Mappings:
Namespace Name Mixin selector official g
Lelz;g(I)Lekw;
intermediary method_46512
Lnet/minecraft/class_7852;method_46512(I)Lnet/minecraft/class_339;
named ofWidth
Lnet/minecraft/client/gui/widget/EmptyWidget;ofWidth(I)Lnet/minecraft/client/gui/widget/ClickableWidget;
-
ofHeight
- Mappings:
Namespace Name Mixin selector official h
Lelz;h(I)Lekw;
intermediary method_46513
Lnet/minecraft/class_7852;method_46513(I)Lnet/minecraft/class_339;
named ofHeight
Lnet/minecraft/client/gui/widget/EmptyWidget;ofHeight(I)Lnet/minecraft/client/gui/widget/ClickableWidget;
-