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>
- Mappings:
Namespace Name official dwz
intermediary net/minecraft/class_3935
named net/minecraft/client/gui/screen/ingame/LecternScreen
-
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
handler
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 handler, 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, 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, method_33284, 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
-
handler
- Mappings:
Namespace Name Mixin selector official c
Ldwz;c:Lbkr;
intermediary field_17422
Lnet/minecraft/class_3935;field_17422:Lnet/minecraft/class_3916;
named handler
Lnet/minecraft/client/gui/screen/ingame/LecternScreen;handler:Lnet/minecraft/screen/LecternScreenHandler;
-
listener
- Mappings:
Namespace Name Mixin selector official p
Ldwz;p:Lbkd;
intermediary field_17423
Lnet/minecraft/class_3935;field_17423:Lnet/minecraft/class_1712;
named listener
Lnet/minecraft/client/gui/screen/ingame/LecternScreen;listener:Lnet/minecraft/screen/ScreenHandlerListener;
-
-
Constructor Details
-
LecternScreen
- Mappings:
Namespace Name Mixin selector official <init>
Ldwz;<init>(Lbkr;Lbhk;Loi;)V
intermediary <init>
Lnet/minecraft/class_3935;<init>(Lnet/minecraft/class_3916;Lnet/minecraft/class_1661;Lnet/minecraft/class_2561;)V
named <init>
Lnet/minecraft/client/gui/screen/ingame/LecternScreen;<init>(Lnet/minecraft/screen/LecternScreenHandler;Lnet/minecraft/entity/player/PlayerInventory;Lnet/minecraft/text/Text;)V
-
-
Method Details
-
getScreenHandler
- Specified by:
getScreenHandler
in interfaceScreenHandlerProvider<LecternScreenHandler>
- Mappings:
Namespace Name Mixin selector official n
Ldwz;n()Lbkr;
intermediary method_17573
Lnet/minecraft/class_3935;method_17573()Lnet/minecraft/class_3916;
named getScreenHandler
Lnet/minecraft/client/gui/screen/ingame/LecternScreen;getScreenHandler()Lnet/minecraft/screen/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
- Mappings:
Namespace Name Mixin selector official b
Ldve;b()V
intermediary method_25426
Lnet/minecraft/class_437;method_25426()V
named init
Lnet/minecraft/client/gui/screen/Screen;init()V
-
onClose
public void onClose() -
removed
public void removed() -
addCloseButton
protected void addCloseButton()- Overrides:
addCloseButton
in classBookScreen
- Mappings:
Namespace Name Mixin selector official i
Ldwg;i()V
intermediary method_17557
Lnet/minecraft/class_3872;method_17557()V
named addCloseButton
Lnet/minecraft/client/gui/screen/ingame/BookScreen;addCloseButton()V
-
goToPreviousPage
protected void goToPreviousPage()- Overrides:
goToPreviousPage
in classBookScreen
- Mappings:
Namespace Name Mixin selector official l
Ldwg;l()V
intermediary method_17057
Lnet/minecraft/class_3872;method_17057()V
named goToPreviousPage
Lnet/minecraft/client/gui/screen/ingame/BookScreen;goToPreviousPage()V
-
goToNextPage
protected void goToNextPage()- Overrides:
goToNextPage
in classBookScreen
- Mappings:
Namespace Name Mixin selector official m
Ldwg;m()V
intermediary method_17058
Lnet/minecraft/class_3872;method_17058()V
named goToNextPage
Lnet/minecraft/client/gui/screen/ingame/BookScreen;goToNextPage()V
-
jumpToPage
protected boolean jumpToPage(int page)- Overrides:
jumpToPage
in classBookScreen
- Mappings:
Namespace Name Mixin selector official b
Ldwg;b(I)Z
intermediary method_17789
Lnet/minecraft/class_3872;method_17789(I)Z
named jumpToPage
Lnet/minecraft/client/gui/screen/ingame/BookScreen;jumpToPage(I)Z
-
sendButtonPressPacket
private void sendButtonPressPacket(int id)- Mappings:
Namespace Name Mixin selector official c
Ldwz;c(I)V
intermediary method_17572
Lnet/minecraft/class_3935;method_17572(I)V
named sendButtonPressPacket
Lnet/minecraft/client/gui/screen/ingame/LecternScreen;sendButtonPressPacket(I)V
-
isPauseScreen
public boolean isPauseScreen()- Overrides:
isPauseScreen
in classScreen
- Mappings:
Namespace Name Mixin selector official aD_
Ldve;aD_()Z
intermediary method_25421
Lnet/minecraft/class_437;method_25421()Z
named isPauseScreen
Lnet/minecraft/client/gui/screen/Screen;isPauseScreen()Z
-
updatePageProvider
private void updatePageProvider()- Mappings:
Namespace Name Mixin selector official o
Ldwz;o()V
intermediary method_17574
Lnet/minecraft/class_3935;method_17574()V
named updatePageProvider
Lnet/minecraft/client/gui/screen/ingame/LecternScreen;updatePageProvider()V
-
updatePage
private void updatePage()- Mappings:
Namespace Name Mixin selector official p
Ldwz;p()V
intermediary method_17575
Lnet/minecraft/class_3935;method_17575()V
named updatePage
Lnet/minecraft/client/gui/screen/ingame/LecternScreen;updatePage()V
-