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:
class_6379,class_6383,Drawable,Element
- Direct Known Subclasses:
RecipeGroupButtonWidget
- Mappings:
Namespace Name official dxaintermediary net/minecraft/class_361named net/minecraft/client/gui/widget/ToggleButtonWidget
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.class_6379
class_6379.class_6380 -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected intprotected Identifierprotected booleanprotected intprotected intFields inherited from class net.minecraft.client.gui.widget.ClickableWidget
active, alpha, height, hovered, visible, WIDGETS_TEXTURE, width, x, yFields inherited from class net.minecraft.client.gui.DrawableHelper
GUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidmethod_37020(class_6382 class_6382)voidrenderButton(MatrixStack matrices, int mouseX, int mouseY, float delta)voidsetPos(int x, int y)voidsetTextureUV(int u, int v, int pressedUOffset, int hoverVOffset, Identifier texture)voidsetToggled(boolean toggled)Methods inherited from class net.minecraft.client.gui.widget.ClickableWidget
changeFocus, clicked, getHeight, getMessage, getNarrationMessage, getNarrationMessage, getWidth, getYImage, isFocused, isHovered, isMouseOver, isValidClickButton, method_37018, method_37021, mouseClicked, mouseDragged, mouseReleased, onClick, onDrag, onFocusedChanged, onRelease, playDownSound, render, renderBackground, renderToolTip, setAlpha, setFocused, setMessage, setWidthMethods inherited from class net.minecraft.client.gui.DrawableHelper
drawCenteredText, drawCenteredText, drawCenteredTextWithShadow, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, drawWithShadow, fill, fillGradient, fillGradient, fillGradient, getZOffset, method_29343, 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
-
Field Details
-
texture
- Mappings:
Namespace Name Mixin selector official aLdxa;a:Lwr;intermediary field_2193Lnet/minecraft/class_361;field_2193:Lnet/minecraft/class_2960;named textureLnet/minecraft/client/gui/widget/ToggleButtonWidget;texture:Lnet/minecraft/util/Identifier;
-
toggled
protected boolean toggled- Mappings:
Namespace Name Mixin selector official bLdxa;b:Zintermediary field_2194Lnet/minecraft/class_361;field_2194:Znamed toggledLnet/minecraft/client/gui/widget/ToggleButtonWidget;toggled:Z
-
u
protected int u- Mappings:
Namespace Name Mixin selector official cLdxa;c:Iintermediary field_2192Lnet/minecraft/class_361;field_2192:Inamed uLnet/minecraft/client/gui/widget/ToggleButtonWidget;u:I
-
v
protected int v- Mappings:
Namespace Name Mixin selector official dLdxa;d:Iintermediary field_2191Lnet/minecraft/class_361;field_2191:Inamed vLnet/minecraft/client/gui/widget/ToggleButtonWidget;v:I
-
pressedUOffset
protected int pressedUOffset- Mappings:
Namespace Name Mixin selector official eLdxa;e:Iintermediary field_2190Lnet/minecraft/class_361;field_2190:Inamed pressedUOffsetLnet/minecraft/client/gui/widget/ToggleButtonWidget;pressedUOffset:I
-
hoverVOffset
protected int hoverVOffset- Mappings:
Namespace Name Mixin selector official rLdxa;r:Iintermediary field_2189Lnet/minecraft/class_361;field_2189:Inamed hoverVOffsetLnet/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>Ldxa;<init>(IIIIZ)Vintermediary <init>Lnet/minecraft/class_361;<init>(IIIIZ)Vnamed <init>Lnet/minecraft/client/gui/widget/ToggleButtonWidget;<init>(IIIIZ)V
-
-
Method Details
-
setTextureUV
- Mappings:
Namespace Name Mixin selector official aLdxa;a(IIIILwr;)Vintermediary method_1962Lnet/minecraft/class_361;method_1962(IIIILnet/minecraft/class_2960;)Vnamed setTextureUVLnet/minecraft/client/gui/widget/ToggleButtonWidget;setTextureUV(IIIILnet/minecraft/util/Identifier;)V
-
setToggled
public void setToggled(boolean toggled)- Mappings:
Namespace Name Mixin selector official eLdxa;e(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 aLdxa;a()Zintermediary method_1965Lnet/minecraft/class_361;method_1965()Znamed isToggledLnet/minecraft/client/gui/widget/ToggleButtonWidget;isToggled()Z
-
setPos
public void setPos(int x, int y)- Mappings:
Namespace Name Mixin selector official aLdxa;a(II)Vintermediary method_1963Lnet/minecraft/class_361;method_1963(II)Vnamed setPosLnet/minecraft/client/gui/widget/ToggleButtonWidget;setPos(II)V
-
method_37020
- Mappings:
Namespace Name Mixin selector official aLdyn;a(Ldym;)Vintermediary method_37020Lnet/minecraft/class_6383;method_37020(Lnet/minecraft/class_6382;)Vnamed method_37020Lnet/minecraft/class_6383;method_37020(Lnet/minecraft/class_6382;)V
-
renderButton
- Overrides:
renderButtonin classClickableWidget- Mappings:
Namespace Name Mixin selector official bLdwh;b(Ldpu;IIF)Vintermediary method_25359Lnet/minecraft/class_339;method_25359(Lnet/minecraft/class_4587;IIF)Vnamed renderButtonLnet/minecraft/client/gui/widget/ClickableWidget;renderButton(Lnet/minecraft/client/util/math/MatrixStack;IIF)V
-