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 elzintermediary net/minecraft/class_7852named 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, 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
ConstructorsConstructorDescriptionEmptyWidget(int width, int height) EmptyWidget(int x, int y, int width, int height) -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanchangeFocus(boolean lookForwards) Changes the focusing element by cycling to the next/previous element.static ClickableWidgetofHeight(int height) static ClickableWidgetofWidth(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, 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, setZOffsetMethods 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, keyPressed, keyReleased, mouseMoved, mouseScrolled
-
Constructor Details
-
EmptyWidget
public EmptyWidget(int width, int height) - Mappings:
Namespace Name Mixin selector official <init>Lelz;<init>(II)Vintermediary <init>Lnet/minecraft/class_7852;<init>(II)Vnamed <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)Vintermediary <init>Lnet/minecraft/class_7852;<init>(IIII)Vnamed <init>Lnet/minecraft/client/gui/widget/EmptyWidget;<init>(IIII)V
-
-
Method Details
-
appendClickableNarrations
- Specified by:
appendClickableNarrationsin classClickableWidget- Mappings:
Namespace Name Mixin selector official aLekw;a(Lenk;)Vintermediary method_47399Lnet/minecraft/class_339;method_47399(Lnet/minecraft/class_6382;)Vnamed appendClickableNarrationsLnet/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:
changeFocusin interfaceElement- Overrides:
changeFocusin classClickableWidget- Parameters:
lookForwards-trueto cycle forwards, otherwise cycle backwards- Returns:
trueto indicate that the event handling is successful/valid- Mappings:
Namespace Name Mixin selector official bLemg;b(Z)Zintermediary method_25407Lnet/minecraft/class_364;method_25407(Z)Znamed changeFocusLnet/minecraft/client/gui/Element;changeFocus(Z)Z
-
ofWidth
- Mappings:
Namespace Name Mixin selector official gLelz;g(I)Lekw;intermediary method_46512Lnet/minecraft/class_7852;method_46512(I)Lnet/minecraft/class_339;named ofWidthLnet/minecraft/client/gui/widget/EmptyWidget;ofWidth(I)Lnet/minecraft/client/gui/widget/ClickableWidget;
-
ofHeight
- Mappings:
Namespace Name Mixin selector official hLelz;h(I)Lekw;intermediary method_46513Lnet/minecraft/class_7852;method_46513(I)Lnet/minecraft/class_339;named ofHeightLnet/minecraft/client/gui/widget/EmptyWidget;ofHeight(I)Lnet/minecraft/client/gui/widget/ClickableWidget;
-