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 named net/minecraft/client/gui/widget/ToggleButtonWidget
intermediary net/minecraft/class_361
official fjm
-
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, width
Fields inherited from interface net.minecraft.client.gui.Element
MAX_DOUBLE_CLICK_INTERVAL
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
void
renderWidget
(DrawContext context, int mouseX, int mouseY, float delta) void
setTextures
(ButtonTextures textures) void
setToggled
(boolean toggled) Methods inherited from class net.minecraft.client.gui.widget.ClickableWidget
appendDefaultNarrations, appendNarrations, clicked, drawScrollableText, drawScrollableText, drawScrollableText, forEachChild, getBottom, getHeight, getMessage, getNarrationMessage, getNarrationMessage, getNavigationFocus, getNavigationOrder, getNavigationPath, getRight, getTooltip, getType, getWidth, getX, getY, isFocused, isHovered, isMouseOver, isNarratable, isSelected, isValidClickButton, mouseClicked, mouseDragged, mouseReleased, onClick, onDrag, onRelease, playDownSound, render, setAlpha, setDimensions, setDimensionsAndPosition, setFocused, setHeight, setMessage, setNavigationOrder, setTooltip, setTooltipDelay, setWidth, setX, setY
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, getFocusedPath, keyPressed, keyReleased, mouseMoved, mouseScrolled
Methods inherited from interface net.minecraft.client.gui.widget.Widget
setPosition
-
Field Details
-
textures
- Mappings:
Namespace Name Mixin selector named textures
Lnet/minecraft/client/gui/widget/ToggleButtonWidget;textures:Lnet/minecraft/client/gui/screen/ButtonTextures;
intermediary field_45390
Lnet/minecraft/class_361;field_45390:Lnet/minecraft/class_8666;
official a
Lfjm;a:Lfjt;
-
toggled
protected boolean toggled- Mappings:
Namespace Name Mixin selector named toggled
Lnet/minecraft/client/gui/widget/ToggleButtonWidget;toggled:Z
intermediary field_2194
Lnet/minecraft/class_361;field_2194:Z
official b
Lfjm;b:Z
-
-
Constructor Details
-
ToggleButtonWidget
public ToggleButtonWidget(int x, int y, int width, int height, boolean toggled) - Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/client/gui/widget/ToggleButtonWidget;<init>(IIIIZ)V
intermediary <init>
Lnet/minecraft/class_361;<init>(IIIIZ)V
official <init>
Lfjm;<init>(IIIIZ)V
-
-
Method Details
-
setTextures
- Mappings:
Namespace Name Mixin selector named setTextures
Lnet/minecraft/client/gui/widget/ToggleButtonWidget;setTextures(Lnet/minecraft/client/gui/screen/ButtonTextures;)V
intermediary method_1962
Lnet/minecraft/class_361;method_1962(Lnet/minecraft/class_8666;)V
official a
Lfjm;a(Lfjt;)V
-
setToggled
public void setToggled(boolean toggled) - Mappings:
Namespace Name Mixin selector named setToggled
Lnet/minecraft/client/gui/widget/ToggleButtonWidget;setToggled(Z)V
intermediary method_1964
Lnet/minecraft/class_361;method_1964(Z)V
official b
Lfjm;b(Z)V
-
isToggled
public boolean isToggled()- Mappings:
Namespace Name Mixin selector named isToggled
Lnet/minecraft/client/gui/widget/ToggleButtonWidget;isToggled()Z
intermediary method_1965
Lnet/minecraft/class_361;method_1965()Z
official a
Lfjm;a()Z
-
appendClickableNarrations
- Specified by:
appendClickableNarrations
in classClickableWidget
- Mappings:
Namespace Name Mixin selector named appendClickableNarrations
Lnet/minecraft/client/gui/widget/ClickableWidget;appendClickableNarrations(Lnet/minecraft/client/gui/screen/narration/NarrationMessageBuilder;)V
intermediary method_47399
Lnet/minecraft/class_339;method_47399(Lnet/minecraft/class_6382;)V
official a
Lfie;a(Lfmc;)V
-
renderWidget
- Specified by:
renderWidget
in classClickableWidget
- Mappings:
Namespace Name Mixin selector named renderWidget
Lnet/minecraft/client/gui/widget/ClickableWidget;renderWidget(Lnet/minecraft/client/gui/DrawContext;IIF)V
intermediary method_48579
Lnet/minecraft/class_339;method_48579(Lnet/minecraft/class_332;IIF)V
official b
Lfie;b(Lfht;IIF)V
-