Package net.minecraft.client.gui.widget
Class LockButtonWidget
java.lang.Object
net.minecraft.client.gui.DrawableHelper
net.minecraft.client.gui.widget.AbstractButtonWidget
net.minecraft.client.gui.widget.AbstractPressableButtonWidget
net.minecraft.client.gui.widget.ButtonWidget
net.minecraft.client.gui.widget.LockButtonWidget
@Environment(CLIENT) public class LockButtonWidget extends ButtonWidget
- Mappings:
Namespace Name official dsf
intermediary net/minecraft/class_347
named net/minecraft/client/gui/widget/LockButtonWidget
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
LockButtonWidget.IconLocation
Nested classes/interfaces inherited from class net.minecraft.client.gui.widget.ButtonWidget
ButtonWidget.PressAction, ButtonWidget.TooltipSupplier
-
Field Summary
Fields Modifier and Type Field Description private boolean
locked
Fields inherited from class net.minecraft.client.gui.widget.ButtonWidget
EMPTY, onPress, tooltipSupplier
Fields inherited from class net.minecraft.client.gui.widget.AbstractButtonWidget
active, alpha, height, hovered, nextNarration, visible, WIDGETS_LOCATION, width, x, y
Fields inherited from class net.minecraft.client.gui.DrawableHelper
GUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE
-
Constructor Summary
Constructors Constructor Description LockButtonWidget(int x, int y, ButtonWidget.PressAction action)
-
Method Summary
Modifier and Type Method Description protected MutableText
getNarrationMessage()
boolean
isLocked()
void
renderButton(MatrixStack matrices, int mouseX, int mouseY, float delta)
void
setLocked(boolean locked)
Methods inherited from class net.minecraft.client.gui.widget.ButtonWidget
onPress, renderToolTip
Methods inherited from class net.minecraft.client.gui.widget.AbstractPressableButtonWidget
keyPressed, onClick
Methods inherited from class net.minecraft.client.gui.widget.AbstractButtonWidget
changeFocus, clicked, getHeight, getMessage, getNarrationMessage, getWidth, getYImage, isFocused, isHovered, isMouseOver, isValidClickButton, mouseClicked, mouseDragged, mouseReleased, narrate, onDrag, onFocusedChanged, onRelease, playDownSound, queueNarration, render, renderBg, setAlpha, setFocused, setMessage, setWidth
Methods inherited from class net.minecraft.client.gui.DrawableHelper
drawCenteredString, drawCenteredText, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, fill, fillGradient, fillGradient, getZOffset, method_29343, method_33284, setZOffset
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, keyReleased, mouseMoved, mouseScrolled
-
Field Details
-
locked
private boolean locked- Mappings:
Namespace Name Mixin selector official a
Ldsf;a:Z
intermediary field_2131
Lnet/minecraft/class_347;field_2131:Z
named locked
Lnet/minecraft/client/gui/widget/LockButtonWidget;locked:Z
-
-
Constructor Details
-
LockButtonWidget
- Mappings:
Namespace Name Mixin selector official <init>
Ldsf;<init>(IILdru$a;)V
intermediary <init>
Lnet/minecraft/class_347;<init>(IILnet/minecraft/class_4185$class_4241;)V
named <init>
Lnet/minecraft/client/gui/widget/LockButtonWidget;<init>(IILnet/minecraft/client/gui/widget/ButtonWidget$PressAction;)V
-
-
Method Details
-
getNarrationMessage
- Overrides:
getNarrationMessage
in classAbstractButtonWidget
- Mappings:
Namespace Name Mixin selector official c
Ldrs;c()Loo;
intermediary method_25360
Lnet/minecraft/class_339;method_25360()Lnet/minecraft/class_5250;
named getNarrationMessage
Lnet/minecraft/client/gui/widget/AbstractButtonWidget;getNarrationMessage()Lnet/minecraft/text/MutableText;
-
isLocked
public boolean isLocked()- Mappings:
Namespace Name Mixin selector official a
Ldsf;a()Z
intermediary method_1896
Lnet/minecraft/class_347;method_1896()Z
named isLocked
Lnet/minecraft/client/gui/widget/LockButtonWidget;isLocked()Z
-
setLocked
public void setLocked(boolean locked)- Mappings:
Namespace Name Mixin selector official e
Ldsf;e(Z)V
intermediary method_1895
Lnet/minecraft/class_347;method_1895(Z)V
named setLocked
Lnet/minecraft/client/gui/widget/LockButtonWidget;setLocked(Z)V
-
renderButton
- Overrides:
renderButton
in classButtonWidget
- Mappings:
Namespace Name Mixin selector official b
Ldrs;b(Ldlr;IIF)V
intermediary method_25359
Lnet/minecraft/class_339;method_25359(Lnet/minecraft/class_4587;IIF)V
named renderButton
Lnet/minecraft/client/gui/widget/AbstractButtonWidget;renderButton(Lnet/minecraft/client/util/math/MatrixStack;IIF)V
-