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
,Widget
,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, x, y
Fields inherited from class net.minecraft.client.gui.GuiComponent
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATION
-
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
boolean
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
updateNarration(NarrationElementOutput p_169659_)
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, defaultButtonNarrationText, getFGColor, getHeight, getMessage, getWidth, getYImage, isActive, isFocused, isHovered, isMouseOver, isValidClickButton, mouseClicked, mouseDragged, mouseReleased, narrationPriority, onDrag, onFocusedChanged, onRelease, playDownSound, render, renderBg, renderToolTip, setAlpha, setFGColor, setFocused, setHeight, setMessage, setWidth, wrapDefaultNarrationMessage
Methods inherited from class net.minecraft.client.gui.GuiComponent
blit, blit, blit, blit, blit, blitOutlineBlack, drawCenteredString, drawCenteredString, drawCenteredString, drawString, drawString, drawString, 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
renderToolTip, 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_) -
isShowingTooltip
public boolean isShowingTooltip()- Specified by:
isShowingTooltip
in interfaceBeaconScreen.BeaconButton
-
updateNarration
- Specified by:
updateNarration
in interfaceNarrationSupplier
-