Package net.minecraft.client.gui.widget
Class LockButtonWidget
java.lang.Object
net.minecraft.client.gui.widget.ClickableWidget
net.minecraft.client.gui.widget.PressableWidget
net.minecraft.client.gui.widget.ButtonWidget
net.minecraft.client.gui.widget.LockButtonWidget
- All Implemented Interfaces:
Drawable
,Element
,Narratable
,Navigable
,Selectable
,Widget
- Mappings:
Namespace Name official etg
intermediary net/minecraft/class_347
named net/minecraft/client/gui/widget/LockButtonWidget
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.client.gui.widget.ButtonWidget
ButtonWidget.Builder, ButtonWidget.NarrationSupplier, ButtonWidget.PressAction
Nested classes/interfaces inherited from interface net.minecraft.client.gui.Selectable
Selectable.SelectionType
-
Field Summary
Fields inherited from class net.minecraft.client.gui.widget.ButtonWidget
DEFAULT_HEIGHT, DEFAULT_NARRATION_SUPPLIER, DEFAULT_WIDTH, DEFAULT_WIDTH_SMALL, narrationSupplier, onPress
Fields inherited from class net.minecraft.client.gui.widget.PressableWidget
field_43050
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 TypeMethodDescriptionprotected MutableText
boolean
isLocked()
void
renderButton
(DrawContext context, int mouseX, int mouseY, float delta) void
setLocked
(boolean locked) Methods inherited from class net.minecraft.client.gui.widget.ButtonWidget
appendClickableNarrations, builder, onPress
Methods inherited from class net.minecraft.client.gui.widget.PressableWidget
drawMessage, keyPressed, onClick
Methods inherited from class net.minecraft.client.gui.widget.ClickableWidget
appendDefaultNarrations, appendNarrations, clicked, drawScrollableText, drawScrollableText, drawScrollableText, forEachChild, getHeight, getMessage, getNarrationMessage, getNavigationFocus, getNavigationOrder, getNavigationPath, getTooltip, getTooltipPositioner, getType, getWidth, getX, getY, isFocused, isHovered, isMouseOver, isNarratable, isSelected, isValidClickButton, mouseClicked, mouseDragged, mouseReleased, onDrag, onRelease, playDownSound, render, setAlpha, 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, keyReleased, mouseMoved, mouseScrolled
Methods inherited from interface net.minecraft.client.gui.widget.Widget
setPosition
-
Field Details
-
locked
private boolean locked- Mappings:
Namespace Name Mixin selector official a
Letg;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>
Letg;<init>(IILesq$c;)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 classButtonWidget
- Mappings:
Namespace Name Mixin selector official aE_
Leso;aE_()Lty;
intermediary method_25360
Lnet/minecraft/class_339;method_25360()Lnet/minecraft/class_5250;
named getNarrationMessage
Lnet/minecraft/client/gui/widget/ClickableWidget;getNarrationMessage()Lnet/minecraft/text/MutableText;
-
isLocked
public boolean isLocked()- Mappings:
Namespace Name Mixin selector official a
Letg;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 b
Letg;b(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 classPressableWidget
- Mappings:
Namespace Name Mixin selector official b
Leso;b(Lesf;IIF)V
intermediary method_48579
Lnet/minecraft/class_339;method_48579(Lnet/minecraft/class_332;IIF)V
named renderButton
Lnet/minecraft/client/gui/widget/ClickableWidget;renderButton(Lnet/minecraft/client/gui/DrawContext;IIF)V
-