Class WinScreen
java.lang.Object
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraft.client.gui.screens.Screen
net.minecraft.client.gui.screens.WinScreen
- All Implemented Interfaces:
ContainerEventHandler, GuiEventListener, Renderable, TabOrderedElement
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class Screen
Screen.NarratableSearchResult -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate it.unimi.dsi.fastutil.ints.IntSetprivate static final Identifierprivate intprivate static final Identifierprivate List<FormattedCharSequence> private static final org.slf4j.Loggerprivate final LogoRendererprivate static final Stringprivate static final Stringprivate final Runnableprivate final booleanprivate static final Identifierprivate floatprivate floatprivate static final Componentprivate static final floatprivate static final floatprivate booleanprivate final it.unimi.dsi.fastutil.ints.IntSetprivate intprivate final floatprivate static final IdentifierFields inherited from class Screen
FADE_IN_TIME, font, FOOTER_SEPARATOR, HEADER_SEPARATOR, height, INWORLD_FOOTER_SEPARATOR, INWORLD_HEADER_SEPARATOR, MENU_BACKGROUND, minecraft, narratorButton, renderables, screenExecutor, title, width -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidaddCreditsFile(Reader inputReader) private voidaddCreditsLine(Component line, boolean centered, boolean narrated) private voidprivate voidaddPoemFile(Reader inputReader) private voidaddPoemLines(String line) private floatprotected voidinit()booleanbooleanbooleankeyPressed(KeyEvent event) booleankeyReleased(KeyEvent event) voidonClose()voidremoved()voidrender(GuiGraphics graphics, int mouseX, int mouseY, float a) Renders the graphical user interface (GUI) element.voidrenderBackground(GuiGraphics graphics, int mouseX, int mouseY, float a) protected voidrenderMenuBackground(GuiGraphics graphics, int x, int y, int width, int height) private voidrenderVignette(GuiGraphics graphics) private voidrespawn()voidtick()private voidwrapCreditsIO(Identifier file, WinScreen.CreditsReader creditsReader) Methods inherited from class Screen
added, addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, canInterruptWithAnotherScreen, changeFocus, children, clearFocus, clearWidgets, clickCommandAction, clickUrlAction, defaultHandleClickEvent, defaultHandleGameClickEvent, fadeWidgets, fillCrashDetails, findNarratableWidget, getFont, getMinecraft, getRectangle, getTitle, getTooltipFromItem, getUsageNarration, handleDelayedNarration, init, insertText, isInGameUi, isMouseOver, isValidCharacterForName, onFilesDrop, panoramaShouldSpin, rebuildWidgets, removeWidget, renderBlurredBackground, renderMenuBackground, renderMenuBackgroundTexture, renderPanorama, renderTransparentBackground, renderWithTooltipAndSubtitles, repositionElements, resize, setInitialFocus, setInitialFocus, shouldCloseOnEsc, shouldNarrateNavigation, showsActiveEffects, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, updateNarratorStatusMethods inherited from class AbstractContainerEventHandler
getFocused, isDragging, setDragging, setFocusedMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ContainerEventHandler
charTyped, getBorderForArrowNavigation, getChildAt, getCurrentFocusPath, isFocused, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, nextFocusPath, setFocusedMethods inherited from interface GuiEventListener
mouseMoved, shouldTakeFocusAfterInteractionMethods inherited from interface TabOrderedElement
getTabOrderGroup
-
Field Details
-
VIGNETTE_LOCATION
-
LOGGER
private static final org.slf4j.Logger LOGGER -
SECTION_HEADING
-
NAME_PREFIX
- See Also:
-
OBFUSCATE_TOKEN
-
SPEEDUP_FACTOR
private static final float SPEEDUP_FACTOR- See Also:
-
SPEEDUP_FACTOR_FAST
private static final float SPEEDUP_FACTOR_FAST- See Also:
-
END_POEM_LOCATION
-
CREDITS_LOCATION
-
POSTCREDITS_LOCATION
-
poem
private final boolean poem -
onFinished
-
scroll
private float scroll -
lines
-
narratorComponents
-
centeredLines
private it.unimi.dsi.fastutil.ints.IntSet centeredLines -
totalScrollLength
private int totalScrollLength -
speedupActive
private boolean speedupActive -
speedupModifiers
private final it.unimi.dsi.fastutil.ints.IntSet speedupModifiers -
scrollSpeed
private float scrollSpeed -
unmodifiedScrollSpeed
private final float unmodifiedScrollSpeed -
direction
private int direction -
logoRenderer
-
-
Constructor Details
-
WinScreen
-
-
Method Details
-
calculateScrollSpeed
private float calculateScrollSpeed() -
tick
-
keyPressed
- Specified by:
keyPressedin interfaceContainerEventHandler- Specified by:
keyPressedin interfaceGuiEventListener- Overrides:
keyPressedin classScreen
-
keyReleased
-
onClose
-
respawn
private void respawn() -
init
-
getNarrationMessage
- Overrides:
getNarrationMessagein classScreen
-
wrapCreditsIO
-
addPoemFile
- Throws:
IOException
-
addCreditsFile
-
addEmptyLine
private void addEmptyLine() -
addPoemLines
-
addCreditsLine
-
render
Description copied from interface:RenderableRenders the graphical user interface (GUI) element.- Specified by:
renderin interfaceRenderable- Overrides:
renderin classScreen- Parameters:
graphics- the GuiGraphics object used for rendering.mouseX- the x-coordinate of the mouse cursor.mouseY- the y-coordinate of the mouse cursor.a- the partial tick time.
-
renderVignette
-
renderBackground
- Overrides:
renderBackgroundin classScreen
-
renderMenuBackground
- Overrides:
renderMenuBackgroundin classScreen
-
isPauseScreen
public boolean isPauseScreen()- Overrides:
isPauseScreenin classScreen
-
isAllowedInPortal
public boolean isAllowedInPortal()- Overrides:
isAllowedInPortalin classScreen
-
removed
-
getBackgroundMusic
- Overrides:
getBackgroundMusicin classScreen
-