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 floatvoidextractBackground(GuiGraphicsExtractor graphics, int mouseX, int mouseY, float a) protected voidextractMenuBackground(GuiGraphicsExtractor graphics, int x, int y, int width, int height) voidextractRenderState(GuiGraphicsExtractor graphics, int mouseX, int mouseY, float a) private voidextractVignette(GuiGraphicsExtractor graphics) protected voidinit()booleanbooleanbooleankeyPressed(KeyEvent event) booleankeyReleased(KeyEvent event) voidonClose()voidremoved()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, extractBlurredBackground, extractMenuBackground, extractMenuBackgroundTexture, extractPanorama, extractRenderStateWithTooltipAndSubtitles, extractTransparentBackground, fadeWidgets, fillCrashDetails, findNarratableWidget, getFont, getMinecraft, getRectangle, getTitle, getTooltipFromItem, getUsageNarration, handleDelayedNarration, init, insertText, isInGameUi, isMouseOver, isValidCharacterForName, onFilesDrop, panoramaShouldSpin, rebuildWidgets, removeWidget, 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, preeditUpdated, 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
-
extractRenderState
- Specified by:
extractRenderStatein interfaceRenderable- Overrides:
extractRenderStatein classScreen
-
extractVignette
-
extractBackground
- Overrides:
extractBackgroundin classScreen
-
extractMenuBackground
protected void extractMenuBackground(GuiGraphicsExtractor graphics, int x, int y, int width, int height) - Overrides:
extractMenuBackgroundin classScreen
-
isPauseScreen
public boolean isPauseScreen()- Overrides:
isPauseScreenin classScreen
-
isAllowedInPortal
public boolean isAllowedInPortal()- Overrides:
isAllowedInPortalin classScreen
-
removed
-
getBackgroundMusic
- Overrides:
getBackgroundMusicin classScreen
-