Package net.minecraft.client.gui.screen
Class LecternScreen
- java.lang.Object
-
- net.minecraft.client.gui.AbstractGui
-
- net.minecraft.client.gui.FocusableGui
-
- net.minecraft.client.gui.screen.Screen
-
- net.minecraft.client.gui.screen.ReadBookScreen
-
- net.minecraft.client.gui.screen.LecternScreen
-
- All Implemented Interfaces:
IGuiEventListener
,IHasContainer<LecternContainer>
,INestedGuiEventHandler
,IRenderable
,IScreen
public class LecternScreen extends ReadBookScreen implements IHasContainer<LecternContainer>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.minecraft.client.gui.screen.ReadBookScreen
ReadBookScreen.IBookInfo, ReadBookScreen.UnwrittenBookInfo, ReadBookScreen.WrittenBookInfo
-
-
Field Summary
Fields Modifier and Type Field Description private IContainerListener
listener
private LecternContainer
menu
-
Fields inherited from class net.minecraft.client.gui.screen.ReadBookScreen
BOOK_LOCATION, EMPTY_ACCESS
-
Fields inherited from class net.minecraft.client.gui.screen.Screen
buttons, children, font, height, itemRenderer, minecraft, passEvents, title, width
-
Fields inherited from class net.minecraft.client.gui.AbstractGui
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATION
-
-
Constructor Summary
Constructors Constructor Description LecternScreen(LecternContainer p_i51082_1_, PlayerInventory p_i51082_2_, ITextComponent p_i51082_3_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
bookChanged()
protected void
createMenuControls()
protected boolean
forcePage(int p_214153_1_)
LecternContainer
getMenu()
protected void
init()
boolean
isPauseScreen()
void
onClose()
protected void
pageBack()
private void
pageChanged()
protected void
pageForward()
void
removed()
private void
sendButtonClick(int p_214179_1_)
-
Methods inherited from class net.minecraft.client.gui.screen.ReadBookScreen
convertPages, createPageControlButtons, getClickedComponentStyleAt, handleComponentClicked, keyPressed, mouseClicked, render, setBookAccess, setPage
-
Methods inherited from class net.minecraft.client.gui.screen.Screen
addButton, addWidget, children, getMinecraft, getNarrationMessage, getTitle, getTooltipFromItem, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, onFilesDrop, renderBackground, renderBackground, renderComponentHoverEffect, renderComponentTooltip, renderDirtBackground, renderTooltip, renderTooltip, renderTooltip, renderToolTip, renderWrappedToolTip, resize, sendMessage, sendMessage, shouldCloseOnEsc, tick, wrapScreenError
-
Methods inherited from class net.minecraft.client.gui.FocusableGui
getFocused, isDragging, setDragging, setFocused
-
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
mouseMoved
-
Methods inherited from interface net.minecraft.client.gui.INestedGuiEventHandler
changeFocus, charTyped, getChildAt, keyReleased, magicalSpecialHackyFocus, mouseDragged, mouseReleased, mouseScrolled, setInitialFocus
-
-
-
-
Field Detail
-
menu
private final LecternContainer menu
-
listener
private final IContainerListener listener
-
-
Constructor Detail
-
LecternScreen
public LecternScreen(LecternContainer p_i51082_1_, PlayerInventory p_i51082_2_, ITextComponent p_i51082_3_)
-
-
Method Detail
-
getMenu
public LecternContainer getMenu()
- Specified by:
getMenu
in interfaceIHasContainer<LecternContainer>
-
init
protected void init()
- Overrides:
init
in classReadBookScreen
-
createMenuControls
protected void createMenuControls()
- Overrides:
createMenuControls
in classReadBookScreen
-
pageBack
protected void pageBack()
- Overrides:
pageBack
in classReadBookScreen
-
pageForward
protected void pageForward()
- Overrides:
pageForward
in classReadBookScreen
-
forcePage
protected boolean forcePage(int p_214153_1_)
- Overrides:
forcePage
in classReadBookScreen
-
sendButtonClick
private void sendButtonClick(int p_214179_1_)
-
isPauseScreen
public boolean isPauseScreen()
- Overrides:
isPauseScreen
in classScreen
-
bookChanged
private void bookChanged()
-
pageChanged
private void pageChanged()
-
-