Class BeaconScreen.PowerButton
- 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.screen.inventory.BeaconScreen.Button
-
- net.minecraft.client.gui.screen.inventory.BeaconScreen.PowerButton
-
- All Implemented Interfaces:
IGuiEventListener,IRenderable
- Enclosing class:
- BeaconScreen
class BeaconScreen.PowerButton extends BeaconScreen.Button
-
-
Field Summary
Fields Modifier and Type Field Description private Effecteffectprivate booleanisPrimaryprivate TextureAtlasSpritespriteprivate ITextComponenttooltip-
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 PowerButton(int p_i50827_2_, int p_i50827_3_, Effect p_i50827_4_, boolean p_i50827_5_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private ITextComponentcreateTooltip(Effect p_243337_1_, boolean p_243337_2_)voidonPress()protected voidrenderIcon(MatrixStack p_230454_1_)voidrenderToolTip(MatrixStack p_230443_1_, int p_230443_2_, int p_230443_3_)-
Methods inherited from class net.minecraft.client.gui.screen.inventory.BeaconScreen.Button
isSelected, renderButton, setSelected
-
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, createNarrationMessage, 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
-
-
-
-
Field Detail
-
effect
private final Effect effect
-
sprite
private final TextureAtlasSprite sprite
-
isPrimary
private final boolean isPrimary
-
tooltip
private final ITextComponent tooltip
-
-
Constructor Detail
-
PowerButton
public PowerButton(int p_i50827_2_, int p_i50827_3_, Effect p_i50827_4_, boolean p_i50827_5_)
-
-
Method Detail
-
createTooltip
private ITextComponent createTooltip(Effect p_243337_1_, boolean p_243337_2_)
-
onPress
public void onPress()
- Specified by:
onPressin classAbstractButton
-
renderToolTip
public void renderToolTip(MatrixStack p_230443_1_, int p_230443_2_, int p_230443_3_)
- Overrides:
renderToolTipin classWidget
-
renderIcon
protected void renderIcon(MatrixStack p_230454_1_)
- Specified by:
renderIconin classBeaconScreen.Button
-
-