Class LockIconButton
- java.lang.Object
-
- net.minecraft.client.gui.AbstractGui
-
- net.minecraft.client.gui.widget.Widget
-
- net.minecraft.client.gui.widget.button.AbstractButton
-
- net.minecraft.client.gui.widget.button.Button
-
- net.minecraft.client.gui.widget.button.LockIconButton
-
- All Implemented Interfaces:
IGuiEventListener
,IRenderable
public class LockIconButton extends Button
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
LockIconButton.Icon
-
Nested classes/interfaces inherited from class net.minecraft.client.gui.widget.button.Button
Button.IPressable, Button.ITooltip
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
locked
-
Fields inherited from class net.minecraft.client.gui.widget.button.Button
NO_TOOLTIP, onPress, onTooltip
-
Fields inherited from class net.minecraft.client.gui.widget.Widget
active, alpha, height, isHovered, nextNarration, packedFGColor, UNSET_FG_COLOR, visible, WIDGETS_LOCATION, width, x, y
-
Fields inherited from class net.minecraft.client.gui.AbstractGui
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATION
-
-
Constructor Summary
Constructors Constructor Description LockIconButton(int p_i51133_1_, int p_i51133_2_, Button.IPressable p_i51133_3_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected IFormattableTextComponent
createNarrationMessage()
boolean
isLocked()
void
renderButton(MatrixStack p_230431_1_, int p_230431_2_, int p_230431_3_, float p_230431_4_)
void
setLocked(boolean p_175229_1_)
-
Methods inherited from class net.minecraft.client.gui.widget.button.Button
onPress, renderToolTip
-
Methods inherited from class net.minecraft.client.gui.widget.button.AbstractButton
keyPressed, onClick
-
Methods inherited from class net.minecraft.client.gui.widget.Widget
changeFocus, clearFGColor, clicked, getFGColor, getHeight, getMessage, getWidth, getYImage, isFocused, isHovered, isMouseOver, isValidClickButton, mouseClicked, mouseDragged, mouseReleased, narrate, onDrag, onFocusedChanged, onRelease, playDownSound, queueNarration, render, renderBg, setAlpha, setFGColor, setFocused, setHeight, setMessage, setWidth
-
Methods inherited from class net.minecraft.client.gui.AbstractGui
blit, blit, blit, blit, blit, blitOutlineBlack, drawCenteredString, drawCenteredString, drawString, drawString, fill, fillGradient, fillGradient, getBlitOffset, hLine, setBlitOffset, vLine
-
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.IGuiEventListener
charTyped, keyReleased, mouseMoved, mouseScrolled
-
-
-
-
Constructor Detail
-
LockIconButton
public LockIconButton(int p_i51133_1_, int p_i51133_2_, Button.IPressable p_i51133_3_)
-
-
Method Detail
-
createNarrationMessage
protected IFormattableTextComponent createNarrationMessage()
- Overrides:
createNarrationMessage
in classWidget
-
isLocked
public boolean isLocked()
-
setLocked
public void setLocked(boolean p_175229_1_)
-
renderButton
public void renderButton(MatrixStack p_230431_1_, int p_230431_2_, int p_230431_3_, float p_230431_4_)
- Overrides:
renderButton
in classButton
-
-