@Environment(value=CLIENT) public class LecternScreen extends BookScreen implements ScreenHandlerProvider<LecternScreenHandler>
BookScreen.Contents, BookScreen.WritableBookContents, BookScreen.WrittenBookContents
Modifier and Type | Field and Description |
---|---|
private LecternScreenHandler |
container |
private ScreenHandlerListener |
listener |
BOOK_TEXTURE, EMPTY_PROVIDER
buttons, children, client, height, itemRenderer, passEvents, textRenderer, title, width
GUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE
Constructor and Description |
---|
LecternScreen(LecternScreenHandler container,
PlayerInventory inventory,
Text title) |
Modifier and Type | Method and Description |
---|---|
protected void |
addCloseButton() |
LecternScreenHandler |
getScreenHandler() |
protected void |
goToNextPage() |
protected void |
goToPreviousPage() |
protected void |
init()
Called when a screen should be initialized.
|
boolean |
isPauseScreen() |
protected boolean |
jumpToPage(int page) |
void |
onClose() |
void |
removed() |
private void |
sendButtonPressPacket(int id) |
private void |
updatePage() |
private void |
updatePageProvider() |
addPageButtons, getTextAt, handleTextClick, keyPressed, mouseClicked, readPages, render, setPage, setPageProvider
addButton, addChild, children, filesDragged, getNarrationMessage, getTitle, getTooltipFromItem, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, renderBackground, renderBackground, renderBackgroundTexture, renderOrderedTooltip, renderTextHoverEffect, renderTooltip, renderTooltip, renderTooltip, resize, sendMessage, sendMessage, shouldCloseOnEsc, tick, wrapScreenError
getFocused, isDragging, setDragging, setFocused
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
changeFocus, charTyped, focusOn, hoveredElement, keyReleased, mouseDragged, mouseReleased, mouseScrolled, setInitialFocus
mouseMoved
private final LecternScreenHandler container
private final ScreenHandlerListener listener
public LecternScreen(LecternScreenHandler container, PlayerInventory inventory, Text title)
public LecternScreenHandler getScreenHandler()
getScreenHandler
in interface ScreenHandlerProvider<LecternScreenHandler>
protected void init()
This method is called when this screen is opened
or resized.
init
in class BookScreen
protected void addCloseButton()
addCloseButton
in class BookScreen
protected void goToPreviousPage()
goToPreviousPage
in class BookScreen
protected void goToNextPage()
goToNextPage
in class BookScreen
protected boolean jumpToPage(int page)
jumpToPage
in class BookScreen
private void sendButtonPressPacket(int id)
public boolean isPauseScreen()
isPauseScreen
in class Screen
private void updatePageProvider()
private void updatePage()