@Environment(value=CLIENT) public class PageTurnWidget extends ButtonWidget
ButtonWidget.PressAction| Modifier and Type | Field and Description |
|---|---|
private boolean |
isNextPageButton |
private boolean |
playPageTurnSound |
onPressactive, alpha, height, hovered, nextNarration, visible, WIDGETS_LOCATION, width, x, yBACKGROUND_TEXTURE, GUI_ICONS_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 matrixStack,
int int2,
int int3,
float float2) |
onPresskeyPressed, onClickchangeFocus, clicked, getHeight, getMessage, getNarrationMessage, getWidth, getYImage, isFocused, isHovered, isMouseOver, isValidClickButton, mouseClicked, mouseDragged, mouseReleased, narrate, onDrag, onFocusedChanged, onRelease, queueNarration, render, renderBg, renderToolTip, setAlpha, setFocused, setMessage, setWidthdrawCenteredString, drawHorizontalLine, drawSprite, drawString, drawTexture, drawTexture, drawTexture, drawTexture, drawVerticalLine, fill, fillGradient, getZOffset, method_27534, method_27535, setZOffsetclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcharTyped, keyReleased, mouseMoved, mouseScrolledprivate final boolean isNextPageButton
private final boolean playPageTurnSound
public PageTurnWidget(int x,
int y,
boolean isNextPageButton,
ButtonWidget.PressAction action,
boolean playPageTurnSound)
public void renderButton(MatrixStack matrixStack, int int2, int int3, float float2)
renderButton in class AbstractButtonWidgetpublic void playDownSound(SoundManager soundManager)
playDownSound in class AbstractButtonWidget