Class BookSigningScreen
java.lang.Object
net.minecraft.client.gui.AbstractParentElement
net.minecraft.client.gui.screen.Screen
net.minecraft.client.gui.screen.ingame.BookSigningScreen
- All Implemented Interfaces:
Drawable
,Element
,Navigable
,ParentElement
- Mappings:
Namespace Name named net/minecraft/client/gui/screen/ingame/BookSigningScreen
intermediary net/minecraft/class_11385
official ggg
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.client.gui.screen.Screen
Screen.SelectedElementNarrationData
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate String
private TextFieldWidget
private final Text
private static final Text
private final BookEditScreen
private static final Text
private final Hand
private final PlayerEntity
private static final Text
private static final Text
Fields inherited from class net.minecraft.client.gui.screen.Screen
client, executor, field_60460, FOOTER_SEPARATOR_TEXTURE, HEADER_SEPARATOR_TEXTURE, height, INWORLD_FOOTER_SEPARATOR_TEXTURE, INWORLD_HEADER_SEPARATOR_TEXTURE, MENU_BACKGROUND_TEXTURE, narratorToggleButton, textRenderer, title, width
Fields inherited from interface net.minecraft.client.gui.Element
MAX_DOUBLE_CLICK_INTERVAL
-
Constructor Summary
ConstructorsConstructorDescriptionBookSigningScreen
(BookEditScreen editScreen, PlayerEntity player, Hand hand, List<String> pages) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
init()
Called when a screen should be initialized.boolean
keyPressed
(int keyCode, int scanCode, int modifiers) Callback for when a key down event has been captured.private void
void
render
(DrawContext context, int mouseX, int mouseY, float deltaTicks) void
renderBackground
(DrawContext context, int mouseX, int mouseY, float deltaTicks) Renders the background of this screen.protected void
This should be overridden with a call toScreen.setInitialFocus(Element)
to set the element that is initially focused.Methods inherited from class net.minecraft.client.gui.screen.Screen
addCrashReportSection, addDrawable, addDrawableChild, addElementNarrations, addScreenNarrations, addSelectableChild, applyBlur, applyKeyPressNarratorDelay, applyMouseMoveNarratorDelay, applyMousePressScrollNarratorDelay, blur, children, clearAndInit, clearChildren, close, findSelectedElementData, getMusic, getNarratedTitle, getNavigationFocus, getTextRenderer, getTitle, getTooltipFromItem, getUsageNarrationText, handleBasicClickEvent, handleClickEvent, handleClickEvent, handleOpenUri, handleRunCommand, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, hasUsageText, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, narrateScreenIfNarrationEnabled, onDisplayed, onFilesDropped, refreshNarrator, refreshWidgetPositions, remove, removed, renderBackgroundTexture, renderDarkening, renderDarkening, renderInGameBackground, renderPanoramaBackground, renderWithTooltip, resize, setInitialFocus, setWidgetAlpha, shouldCloseOnEsc, shouldPause, showsStatusEffects, switchFocus, tick, updateNarrator
Methods inherited from class net.minecraft.client.gui.AbstractParentElement
getFocused, isDragging, setDragging, setFocused
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
getBorder, mouseMoved
Methods inherited from interface net.minecraft.client.gui.navigation.Navigable
getNavigationOrder
Methods inherited from interface net.minecraft.client.gui.ParentElement
charTyped, getFocusedPath, getNavigationPath, hoveredElement, isFocused, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, setFocused
-
Field Details
-
EDIT_TITLE_TEXT
- Mappings:
Namespace Name Mixin selector named EDIT_TITLE_TEXT
Lnet/minecraft/client/gui/screen/ingame/BookSigningScreen;EDIT_TITLE_TEXT:Lnet/minecraft/text/Text;
intermediary field_60466
Lnet/minecraft/class_11385;field_60466:Lnet/minecraft/class_2561;
official a
Lggg;a:Lxo;
-
FINALIZE_WARNING_TEXT
- Mappings:
Namespace Name Mixin selector named FINALIZE_WARNING_TEXT
Lnet/minecraft/client/gui/screen/ingame/BookSigningScreen;FINALIZE_WARNING_TEXT:Lnet/minecraft/text/Text;
intermediary field_60467
Lnet/minecraft/class_11385;field_60467:Lnet/minecraft/class_2561;
official b
Lggg;b:Lxo;
-
TITLE_TEXT
- Mappings:
Namespace Name Mixin selector named TITLE_TEXT
Lnet/minecraft/client/gui/screen/ingame/BookSigningScreen;TITLE_TEXT:Lnet/minecraft/text/Text;
intermediary field_60468
Lnet/minecraft/class_11385;field_60468:Lnet/minecraft/class_2561;
official c
Lggg;c:Lxo;
-
TITLE_BOX_TEXT
- Mappings:
Namespace Name Mixin selector named TITLE_BOX_TEXT
Lnet/minecraft/client/gui/screen/ingame/BookSigningScreen;TITLE_BOX_TEXT:Lnet/minecraft/text/Text;
intermediary field_60469
Lnet/minecraft/class_11385;field_60469:Lnet/minecraft/class_2561;
official d
Lggg;d:Lxo;
-
editScreen
- Mappings:
Namespace Name Mixin selector named editScreen
Lnet/minecraft/client/gui/screen/ingame/BookSigningScreen;editScreen:Lnet/minecraft/client/gui/screen/ingame/BookEditScreen;
intermediary field_60470
Lnet/minecraft/class_11385;field_60470:Lnet/minecraft/class_473;
official e
Lggg;e:Lggf;
-
player
- Mappings:
Namespace Name Mixin selector named player
Lnet/minecraft/client/gui/screen/ingame/BookSigningScreen;player:Lnet/minecraft/entity/player/PlayerEntity;
intermediary field_60471
Lnet/minecraft/class_11385;field_60471:Lnet/minecraft/class_1657;
official f
Lggg;f:Lcut;
-
pages
- Mappings:
Namespace Name Mixin selector named pages
Lnet/minecraft/client/gui/screen/ingame/BookSigningScreen;pages:Ljava/util/List;
intermediary field_60472
Lnet/minecraft/class_11385;field_60472:Ljava/util/List;
official u
Lggg;u:Ljava/util/List;
-
hand
- Mappings:
Namespace Name Mixin selector named hand
Lnet/minecraft/client/gui/screen/ingame/BookSigningScreen;hand:Lnet/minecraft/util/Hand;
intermediary field_60473
Lnet/minecraft/class_11385;field_60473:Lnet/minecraft/class_1268;
official v
Lggg;v:Lbxi;
-
bylineText
- Mappings:
Namespace Name Mixin selector named bylineText
Lnet/minecraft/client/gui/screen/ingame/BookSigningScreen;bylineText:Lnet/minecraft/text/Text;
intermediary field_60474
Lnet/minecraft/class_11385;field_60474:Lnet/minecraft/class_2561;
official w
Lggg;w:Lxo;
-
bookTitleTextField
- Mappings:
Namespace Name Mixin selector named bookTitleTextField
Lnet/minecraft/client/gui/screen/ingame/BookSigningScreen;bookTitleTextField:Lnet/minecraft/client/gui/widget/TextFieldWidget;
intermediary field_60475
Lnet/minecraft/class_11385;field_60475:Lnet/minecraft/class_342;
official x
Lggg;x:Lfxw;
-
bookTitle
- Mappings:
Namespace Name Mixin selector named bookTitle
Lnet/minecraft/client/gui/screen/ingame/BookSigningScreen;bookTitle:Ljava/lang/String;
intermediary field_60465
Lnet/minecraft/class_11385;field_60465:Ljava/lang/String;
official y
Lggg;y:Ljava/lang/String;
-
-
Constructor Details
-
BookSigningScreen
public BookSigningScreen(BookEditScreen editScreen, PlayerEntity player, Hand hand, List<String> pages) - Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/client/gui/screen/ingame/BookSigningScreen;<init>(Lnet/minecraft/client/gui/screen/ingame/BookEditScreen;Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/Hand;Ljava/util/List;)V
intermediary <init>
Lnet/minecraft/class_11385;<init>(Lnet/minecraft/class_473;Lnet/minecraft/class_1657;Lnet/minecraft/class_1268;Ljava/util/List;)V
official <init>
Lggg;<init>(Lggf;Lcut;Lbxi;Ljava/util/List;)V
-
-
Method Details
-
init
protected void init()Called when a screen should be initialized.This method is called when this screen is opened or resized.
-
setInitialFocus
protected void setInitialFocus()This should be overridden with a call toScreen.setInitialFocus(Element)
to set the element that is initially focused.- Overrides:
setInitialFocus
in classScreen
- Mappings:
Namespace Name Mixin selector named setInitialFocus
Lnet/minecraft/client/gui/screen/Screen;setInitialFocus()V
intermediary method_56131
Lnet/minecraft/class_437;method_56131()V
official aF_
Lges;aF_()V
-
onFinalize
private void onFinalize()- Mappings:
Namespace Name Mixin selector named onFinalize
Lnet/minecraft/client/gui/screen/ingame/BookSigningScreen;onFinalize()V
intermediary method_71544
Lnet/minecraft/class_11385;method_71544()V
official l
Lggg;l()V
-
keyPressed
public boolean keyPressed(int keyCode, int scanCode, int modifiers) Callback for when a key down event has been captured. The key code is identified by the constants inGLFW
class.- Specified by:
keyPressed
in interfaceElement
- Specified by:
keyPressed
in interfaceParentElement
- Overrides:
keyPressed
in classScreen
- Parameters:
keyCode
- the named key code of the event as described in theGLFW
classscanCode
- the unique/platform-specific scan code of the keyboard inputmodifiers
- a GLFW bitfield describing the modifier keys that are held down (see GLFW Modifier key flags)- Returns:
true
to indicate that the event handling is successful/valid- See Also:
- Mappings:
Namespace Name Mixin selector named keyPressed
Lnet/minecraft/client/gui/Element;keyPressed(III)Z
intermediary method_25404
Lnet/minecraft/class_364;method_25404(III)Z
official a
Lfzm;a(III)Z
-
render
- Specified by:
render
in interfaceDrawable
- Overrides:
render
in classScreen
- Mappings:
Namespace Name Mixin selector named render
Lnet/minecraft/client/gui/Drawable;render(Lnet/minecraft/client/gui/DrawContext;IIF)V
intermediary method_25394
Lnet/minecraft/class_4068;method_25394(Lnet/minecraft/class_332;IIF)V
official a
Lfyr;a(Lfxa;IIF)V
-
renderBackground
Renders the background of this screen.If the client is in a world, renders the translucent background gradient. Otherwise renders the background texture.
- Overrides:
renderBackground
in classScreen
- Mappings:
Namespace Name Mixin selector named renderBackground
Lnet/minecraft/client/gui/screen/Screen;renderBackground(Lnet/minecraft/client/gui/DrawContext;IIF)V
intermediary method_25420
Lnet/minecraft/class_437;method_25420(Lnet/minecraft/class_332;IIF)V
official b
Lges;b(Lfxa;IIF)V
-