@Environment(value=CLIENT) public class PageTurnWidget extends ButtonWidget
ButtonWidget.PressAction, ButtonWidget.TooltipSupplier
Modifier and Type | Field and Description |
---|---|
private boolean |
isNextPageButton |
private boolean |
playPageTurnSound |
EMPTY, onPress, tooltipSupplier
active, alpha, height, hovered, nextNarration, visible, WIDGETS_LOCATION, width, x, y
GUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE
Constructor and Description |
---|
PageTurnWidget(int x,
int y,
boolean isNextPageButton,
ButtonWidget.PressAction action,
boolean playPageTurnSound) |
Modifier and Type | Method and Description |
---|---|
void |
playDownSound(SoundManager soundManager) |
void |
renderButton(MatrixStack matrices,
int mouseX,
int mouseY,
float delta) |
onPress, renderToolTip
keyPressed, onClick
changeFocus, clicked, getHeight, getMessage, getNarrationMessage, getWidth, getYImage, isFocused, isHovered, isMouseOver, isValidClickButton, mouseClicked, mouseDragged, mouseReleased, narrate, onDrag, onFocusedChanged, onRelease, queueNarration, render, renderBg, setAlpha, setFocused, setMessage, setWidth
drawCenteredString, drawCenteredText, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, fill, fillGradient, fillGradient, getZOffset, method_29343, setZOffset
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
charTyped, keyReleased, mouseMoved, mouseScrolled
private final boolean isNextPageButton
private final boolean playPageTurnSound
public PageTurnWidget(int x, int y, boolean isNextPageButton, ButtonWidget.PressAction action, boolean playPageTurnSound)
public void renderButton(MatrixStack matrices, int mouseX, int mouseY, float delta)
renderButton
in class ButtonWidget
public void playDownSound(SoundManager soundManager)
playDownSound
in class AbstractButtonWidget