Package net.minecraft.client.gui.widget
Class ToggleButtonWidget
java.lang.Object
net.minecraft.client.gui.widget.ClickableWidget
net.minecraft.client.gui.widget.ToggleButtonWidget
- All Implemented Interfaces:
Drawable,Element,Narratable,Navigable,Selectable,Widget
- Direct Known Subclasses:
RecipeGroupButtonWidget
- Mappings:
Namespace Name official etmintermediary net/minecraft/class_361named net/minecraft/client/gui/widget/ToggleButtonWidget
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.client.gui.Selectable
Selectable.SelectionType -
Field Summary
FieldsFields inherited from class net.minecraft.client.gui.widget.ClickableWidget
active, alpha, height, hovered, visible, widthFields inherited from interface net.minecraft.client.gui.Element
MAX_DOUBLE_CLICK_INTERVAL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanvoidrenderButton(DrawContext context, int mouseX, int mouseY, float delta) voidsetTextures(ButtonTextures textures) voidsetToggled(boolean toggled) Methods inherited from class net.minecraft.client.gui.widget.ClickableWidget
appendDefaultNarrations, appendNarrations, clicked, drawScrollableText, drawScrollableText, drawScrollableText, forEachChild, getHeight, getMessage, getNarrationMessage, getNarrationMessage, getNavigationFocus, getNavigationOrder, getNavigationPath, getTooltip, getTooltipPositioner, getType, getWidth, getX, getY, isFocused, isHovered, isMouseOver, isNarratable, isSelected, isValidClickButton, mouseClicked, mouseDragged, mouseReleased, onClick, onDrag, onRelease, playDownSound, render, setAlpha, setFocused, setMessage, 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, getFocusedPath, keyPressed, keyReleased, mouseMoved, mouseScrolledMethods inherited from interface net.minecraft.client.gui.widget.Widget
setPosition
-
Field Details
-
textures
- Mappings:
Namespace Name Mixin selector official aLetm;a:Lett;intermediary field_45390Lnet/minecraft/class_361;field_45390:Lnet/minecraft/class_8666;named texturesLnet/minecraft/client/gui/widget/ToggleButtonWidget;textures:Lnet/minecraft/client/gui/screen/ButtonTextures;
-
toggled
protected boolean toggled- Mappings:
Namespace Name Mixin selector official bLetm;b:Zintermediary field_2194Lnet/minecraft/class_361;field_2194:Znamed toggledLnet/minecraft/client/gui/widget/ToggleButtonWidget;toggled:Z
-
-
Constructor Details
-
ToggleButtonWidget
public ToggleButtonWidget(int x, int y, int width, int height, boolean toggled) - Mappings:
Namespace Name Mixin selector official <init>Letm;<init>(IIIIZ)Vintermediary <init>Lnet/minecraft/class_361;<init>(IIIIZ)Vnamed <init>Lnet/minecraft/client/gui/widget/ToggleButtonWidget;<init>(IIIIZ)V
-
-
Method Details
-
setTextures
- Mappings:
Namespace Name Mixin selector official aLetm;a(Lett;)Vintermediary method_1962Lnet/minecraft/class_361;method_1962(Lnet/minecraft/class_8666;)Vnamed setTexturesLnet/minecraft/client/gui/widget/ToggleButtonWidget;setTextures(Lnet/minecraft/client/gui/screen/ButtonTextures;)V
-
setToggled
public void setToggled(boolean toggled) - Mappings:
Namespace Name Mixin selector official bLetm;b(Z)Vintermediary method_1964Lnet/minecraft/class_361;method_1964(Z)Vnamed setToggledLnet/minecraft/client/gui/widget/ToggleButtonWidget;setToggled(Z)V
-
isToggled
public boolean isToggled()- Mappings:
Namespace Name Mixin selector official aLetm;a()Zintermediary method_1965Lnet/minecraft/class_361;method_1965()Znamed isToggledLnet/minecraft/client/gui/widget/ToggleButtonWidget;isToggled()Z
-
appendClickableNarrations
- Specified by:
appendClickableNarrationsin classClickableWidget- Mappings:
Namespace Name Mixin selector official aLesg;a(Levt;)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
-
renderButton
- Specified by:
renderButtonin classClickableWidget- Mappings:
Namespace Name Mixin selector official bLesg;b(Lerx;IIF)Vintermediary method_48579Lnet/minecraft/class_339;method_48579(Lnet/minecraft/class_332;IIF)Vnamed renderButtonLnet/minecraft/client/gui/widget/ClickableWidget;renderButton(Lnet/minecraft/client/gui/DrawContext;IIF)V
-