Class BeaconScreen.BeaconScreenButton
java.lang.Object
net.minecraft.client.gui.GuiComponent
net.minecraft.client.gui.components.AbstractWidget
net.minecraft.client.gui.components.AbstractButton
net.minecraft.client.gui.screens.inventory.BeaconScreen.BeaconScreenButton
- All Implemented Interfaces:
GuiEventListener
,Renderable
,NarratableEntry
,NarrationSupplier
,BeaconScreen.BeaconButton
- Direct Known Subclasses:
BeaconScreen.BeaconPowerButton
,BeaconScreen.BeaconSpriteScreenButton
- Enclosing class:
- BeaconScreen
abstract static class BeaconScreen.BeaconScreenButton
extends AbstractButton
implements BeaconScreen.BeaconButton
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.client.gui.narration.NarratableEntry
NarratableEntry.NarrationPriority
-
Field Summary
Fields inherited from class net.minecraft.client.gui.components.AbstractWidget
active, alpha, height, isHovered, packedFGColor, UNSET_FG_COLOR, visible, WIDGETS_LOCATION, width
Fields inherited from class net.minecraft.client.gui.GuiComponent
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATION
Fields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS
-
Constructor Summary
ModifierConstructorDescriptionprotected
BeaconScreenButton
(int p_98022_, int p_98023_) protected
BeaconScreenButton
(int p_169654_, int p_169655_, Component p_169656_) -
Method Summary
Modifier and TypeMethodDescriptionboolean
void
renderButton
(PoseStack p_98027_, int p_98028_, int p_98029_, float p_98030_) protected abstract void
renderIcon
(PoseStack p_98025_) void
setSelected
(boolean p_98032_) void
updateWidgetNarration
(NarrationElementOutput p_259705_) Methods inherited from class net.minecraft.client.gui.components.AbstractButton
keyPressed, onClick, onPress
Methods inherited from class net.minecraft.client.gui.components.AbstractWidget
changeFocus, clearFGColor, clicked, createNarrationMessage, createTooltipPositioner, defaultButtonNarrationText, getFGColor, getHeight, getMessage, getWidth, getX, getY, getYImage, isActive, isFocused, isHoveredOrFocused, isMouseOver, isValidClickButton, mouseClicked, mouseDragged, mouseReleased, narrationPriority, onDrag, onFocusedChanged, onRelease, playDownSound, render, renderBg, setAlpha, setFGColor, setFocused, setHeight, setMessage, setPosition, setTooltip, setTooltipDelay, setWidth, setX, setY, updateNarration, wrapDefaultNarrationMessage
Methods inherited from class net.minecraft.client.gui.GuiComponent
blit, blit, blit, blit, blit, blitOutlineBlack, disableScissor, drawCenteredString, drawCenteredString, drawCenteredString, drawString, drawString, drawString, enableScissor, fill, fillGradient, 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.screens.inventory.BeaconScreen.BeaconButton
updateStatus
Methods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
charTyped, keyReleased, mouseMoved, mouseScrolled
-
Field Details
-
selected
private boolean selected
-
-
Constructor Details
-
BeaconScreenButton
protected BeaconScreenButton(int p_98022_, int p_98023_) -
BeaconScreenButton
-
-
Method Details
-
renderButton
- Overrides:
renderButton
in classAbstractWidget
-
renderIcon
-
isSelected
public boolean isSelected() -
setSelected
public void setSelected(boolean p_98032_) -
updateWidgetNarration
- Specified by:
updateWidgetNarration
in classAbstractWidget
-