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
FieldsFields inherited from class net.minecraft.client.gui.components.AbstractWidget
active, alpha, height, isHovered, packedFGColor, UNSET_FG_COLOR, visible, WIDGETS_LOCATION, widthFields inherited from class net.minecraft.client.gui.GuiComponent
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATIONFields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBeaconScreenButton(int p_98022_, int p_98023_) protectedBeaconScreenButton(int p_169654_, int p_169655_, Component p_169656_) -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidrenderButton(PoseStack p_98027_, int p_98028_, int p_98029_, float p_98030_) protected abstract voidrenderIcon(PoseStack p_98025_) voidsetSelected(boolean p_98032_) voidupdateWidgetNarration(NarrationElementOutput p_259705_) Methods inherited from class net.minecraft.client.gui.components.AbstractButton
keyPressed, onClick, onPressMethods 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, wrapDefaultNarrationMessageMethods 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, vLineMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.screens.inventory.BeaconScreen.BeaconButton
updateStatusMethods 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:
renderButtonin classAbstractWidget
-
renderIcon
-
isSelected
public boolean isSelected() -
setSelected
public void setSelected(boolean p_98032_) -
updateWidgetNarration
- Specified by:
updateWidgetNarrationin classAbstractWidget
-