Class LecternScreen
java.lang.Object
net.minecraft.client.gui.DrawableHelper
net.minecraft.client.gui.AbstractParentElement
net.minecraft.client.gui.screen.Screen
net.minecraft.client.gui.screen.ingame.BookScreen
net.minecraft.client.gui.screen.ingame.LecternScreen
- All Implemented Interfaces:
Drawable
,Element
,ParentElement
,ScreenHandlerProvider<LecternScreenHandler>
,TickableElement
@Environment(CLIENT) public class LecternScreen extends BookScreen implements ScreenHandlerProvider<LecternScreenHandler>
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.client.gui.screen.ingame.BookScreen
BookScreen.Contents, BookScreen.WritableBookContents, BookScreen.WrittenBookContents
-
Field Summary
Fields Modifier and Type Field Description private LecternScreenHandler
container
private ScreenHandlerListener
listener
Fields inherited from class net.minecraft.client.gui.screen.ingame.BookScreen
BOOK_TEXTURE, EMPTY_PROVIDER
Fields inherited from class net.minecraft.client.gui.screen.Screen
buttons, children, client, height, itemRenderer, passEvents, textRenderer, title, width
Fields inherited from class net.minecraft.client.gui.DrawableHelper
GUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE
-
Constructor Summary
Constructors Constructor Description LecternScreen(LecternScreenHandler container, PlayerInventory inventory, Text title)
-
Method Summary
Modifier and Type Method 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()
Methods inherited from class net.minecraft.client.gui.screen.ingame.BookScreen
addPageButtons, getTextAt, handleTextClick, keyPressed, mouseClicked, readPages, render, setPage, setPageProvider
Methods inherited from class net.minecraft.client.gui.screen.Screen
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
Methods inherited from class net.minecraft.client.gui.AbstractParentElement
getFocused, isDragging, setDragging, setFocused
Methods inherited from class net.minecraft.client.gui.DrawableHelper
drawCenteredString, drawCenteredText, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, fill, fillGradient, fillGradient, getZOffset, method_29343, setZOffset
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.Element
mouseMoved
Methods inherited from interface net.minecraft.client.gui.ParentElement
changeFocus, charTyped, focusOn, hoveredElement, keyReleased, mouseDragged, mouseReleased, mouseScrolled, setInitialFocus
-
Field Details
-
container
-
listener
-
-
Constructor Details
-
LecternScreen
-
-
Method Details
-
getScreenHandler
- Specified by:
getScreenHandler
in interfaceScreenHandlerProvider<LecternScreenHandler>
-
init
protected void init()Called when a screen should be initialized.This method is called when this screen is
opened
or resized.- Overrides:
init
in classBookScreen
-
onClose
public void onClose() -
removed
public void removed() -
addCloseButton
protected void addCloseButton()- Overrides:
addCloseButton
in classBookScreen
-
goToPreviousPage
protected void goToPreviousPage()- Overrides:
goToPreviousPage
in classBookScreen
-
goToNextPage
protected void goToNextPage()- Overrides:
goToNextPage
in classBookScreen
-
jumpToPage
protected boolean jumpToPage(int page)- Overrides:
jumpToPage
in classBookScreen
-
sendButtonPressPacket
private void sendButtonPressPacket(int id) -
isPauseScreen
public boolean isPauseScreen()- Overrides:
isPauseScreen
in classScreen
-
updatePageProvider
private void updatePageProvider() -
updatePage
private void updatePage()
-