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 - fqa
- 
Nested Class SummaryNested classes/interfaces inherited from interface net.minecraft.client.gui.SelectableSelectable.SelectionType
- 
Field SummaryFieldsFields inherited from class net.minecraft.client.gui.widget.ClickableWidgetactive, alpha, height, hovered, visible, widthFields inherited from interface net.minecraft.client.gui.ElementMAX_DOUBLE_CLICK_INTERVAL
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidbooleanvoidrenderWidget(DrawContext context, int mouseX, int mouseY, float delta) voidsetTextures(ButtonTextures textures) voidsetToggled(boolean toggled) Methods inherited from class net.minecraft.client.gui.widget.ClickableWidgetappendDefaultNarrations, appendNarrations, 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, playClickSound, playDownSound, render, setAlpha, setDimensions, setDimensionsAndPosition, setFocused, setHeight, setMessage, setNavigationOrder, setTooltip, setTooltipDelay, setWidth, setX, setYMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.ElementcharTyped, getBorder, getFocusedPath, keyPressed, keyReleased, mouseMoved, mouseScrolledMethods inherited from interface net.minecraft.client.gui.SelectablegetNarratedPartsMethods inherited from interface net.minecraft.client.gui.widget.WidgetsetPosition
- 
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- Lfqa;a:Lfqh;
 
- 
toggledprotected 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- Lfqa;b:Z
 
 
- 
- 
Constructor Details- 
ToggleButtonWidgetpublic 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>- Lfqa;<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- Lfqa;a(Lfqh;)V
 
- 
setToggledpublic 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- Lfqa;b(Z)V
 
- 
isToggledpublic 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- Lfqa;a()Z
 
- 
appendClickableNarrations- Specified by:
- appendClickableNarrationsin class- ClickableWidget
- 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- Lfos;a(Lfsr;)V
 
- 
renderWidget- Specified by:
- renderWidgetin class- ClickableWidget
- 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- Lfos;b(Lfof;IIF)V
 
 
-