Package net.minecraft.client.gui.widget
Class ToggleButtonWidget
java.lang.Object
net.minecraft.client.gui.DrawableHelper
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 epb
intermediary net/minecraft/class_361
named net/minecraft/client/gui/widget/ToggleButtonWidget
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.client.gui.Selectable
Selectable.SelectionType
-
Field Summary
Modifier and TypeFieldDescriptionprotected int
protected int
protected Identifier
protected boolean
protected int
protected int
Fields inherited from class net.minecraft.client.gui.widget.ClickableWidget
ACCESSIBILITY_TEXTURE, active, alpha, height, hovered, visible, WIDGETS_TEXTURE, width
Fields inherited from class net.minecraft.client.gui.DrawableHelper
GUI_ICONS_TEXTURE, LIGHT_DIRT_BACKGROUND_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE
Fields inherited from interface net.minecraft.client.gui.Element
MAX_DOUBLE_CLICK_INTERVAL
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
void
renderButton
(MatrixStack matrices, int mouseX, int mouseY, float delta) void
setTextureUV
(int u, int v, int pressedUOffset, int hoverVOffset, Identifier texture) void
setToggled
(boolean toggled) Methods inherited from class net.minecraft.client.gui.widget.ClickableWidget
appendDefaultNarrations, appendNarrations, clicked, drawScrollableText, drawScrollableText, drawTexture, forEachChild, getHeight, getMessage, getNarrationMessage, getNarrationMessage, getNavigationFocus, getNavigationOrder, getNavigationPath, 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, setY
Methods inherited from class net.minecraft.client.gui.DrawableHelper
disableScissor, drawBorder, drawCenteredTextWithShadow, drawCenteredTextWithShadow, drawCenteredTextWithShadow, drawHorizontalLine, drawNineSlicedTexture, drawNineSlicedTexture, drawNineSlicedTexture, drawRepeatingTexture, drawSprite, drawSprite, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawTextWithShadow, drawTextWithShadow, drawVerticalLine, drawWithOutline, enableScissor, fill, fill, fillGradient, fillGradient, fillGradient
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
-
texture
- Mappings:
Namespace Name Mixin selector official a
Lepb;a:Ladd;
intermediary field_2193
Lnet/minecraft/class_361;field_2193:Lnet/minecraft/class_2960;
named texture
Lnet/minecraft/client/gui/widget/ToggleButtonWidget;texture:Lnet/minecraft/util/Identifier;
-
toggled
protected boolean toggled- Mappings:
Namespace Name Mixin selector official b
Lepb;b:Z
intermediary field_2194
Lnet/minecraft/class_361;field_2194:Z
named toggled
Lnet/minecraft/client/gui/widget/ToggleButtonWidget;toggled:Z
-
u
protected int u- Mappings:
Namespace Name Mixin selector official c
Lepb;c:I
intermediary field_2192
Lnet/minecraft/class_361;field_2192:I
named u
Lnet/minecraft/client/gui/widget/ToggleButtonWidget;u:I
-
v
protected int v- Mappings:
Namespace Name Mixin selector official d
Lepb;d:I
intermediary field_2191
Lnet/minecraft/class_361;field_2191:I
named v
Lnet/minecraft/client/gui/widget/ToggleButtonWidget;v:I
-
pressedUOffset
protected int pressedUOffset- Mappings:
Namespace Name Mixin selector official e
Lepb;e:I
intermediary field_2190
Lnet/minecraft/class_361;field_2190:I
named pressedUOffset
Lnet/minecraft/client/gui/widget/ToggleButtonWidget;pressedUOffset:I
-
hoverVOffset
protected int hoverVOffset- Mappings:
Namespace Name Mixin selector official f
Lepb;f:I
intermediary field_2189
Lnet/minecraft/class_361;field_2189:I
named hoverVOffset
Lnet/minecraft/client/gui/widget/ToggleButtonWidget;hoverVOffset:I
-
-
Constructor Details
-
ToggleButtonWidget
public ToggleButtonWidget(int x, int y, int width, int height, boolean toggled) - Mappings:
Namespace Name Mixin selector official <init>
Lepb;<init>(IIIIZ)V
intermediary <init>
Lnet/minecraft/class_361;<init>(IIIIZ)V
named <init>
Lnet/minecraft/client/gui/widget/ToggleButtonWidget;<init>(IIIIZ)V
-
-
Method Details
-
setTextureUV
- Mappings:
Namespace Name Mixin selector official a
Lepb;a(IIIILadd;)V
intermediary method_1962
Lnet/minecraft/class_361;method_1962(IIIILnet/minecraft/class_2960;)V
named setTextureUV
Lnet/minecraft/client/gui/widget/ToggleButtonWidget;setTextureUV(IIIILnet/minecraft/util/Identifier;)V
-
setToggled
public void setToggled(boolean toggled) - Mappings:
Namespace Name Mixin selector official b
Lepb;b(Z)V
intermediary method_1964
Lnet/minecraft/class_361;method_1964(Z)V
named setToggled
Lnet/minecraft/client/gui/widget/ToggleButtonWidget;setToggled(Z)V
-
isToggled
public boolean isToggled()- Mappings:
Namespace Name Mixin selector official a
Lepb;a()Z
intermediary method_1965
Lnet/minecraft/class_361;method_1965()Z
named isToggled
Lnet/minecraft/client/gui/widget/ToggleButtonWidget;isToggled()Z
-
appendClickableNarrations
- Specified by:
appendClickableNarrations
in classClickableWidget
- Mappings:
Namespace Name Mixin selector official a
Lenz;a(Lere;)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
-
renderButton
- Specified by:
renderButton
in classClickableWidget
- Mappings:
Namespace Name Mixin selector official b
Lenz;b(Lehe;IIF)V
intermediary method_48579
Lnet/minecraft/class_339;method_48579(Lnet/minecraft/class_4587;IIF)V
named renderButton
Lnet/minecraft/client/gui/widget/ClickableWidget;renderButton(Lnet/minecraft/client/util/math/MatrixStack;IIF)V
-