Package net.minecraft.client.gui.screens
Class WinScreen
java.lang.Object
net.minecraft.client.gui.GuiComponent
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 classes/interfaces inherited from class net.minecraft.client.gui.screens.Screen
Screen.DeferredTooltipRendering, Screen.NarratableSearchResult
-
Field Summary
Modifier and TypeFieldDescriptionprivate it.unimi.dsi.fastutil.ints.IntSet
private List<FormattedCharSequence>
private static final org.slf4j.Logger
private final LogoRenderer
private static final String
private static final String
private final Runnable
private final boolean
private float
private float
private static final Component
private static final float
private static final float
private boolean
private final it.unimi.dsi.fastutil.ints.IntSet
private int
private final float
private static final ResourceLocation
Fields inherited from class net.minecraft.client.gui.screens.Screen
font, height, itemRenderer, minecraft, passEvents, renderables, title, width
Fields inherited from class net.minecraft.client.gui.GuiComponent
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, LIGHT_DIRT_BACKGROUND, STATS_ICON_LOCATION
Fields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
addCreditsFile
(Reader p_232820_) private void
addCreditsLine
(Component p_169473_, boolean p_169474_) private void
private void
addPoemFile
(Reader p_232818_) private void
addPoemLines
(String p_181398_) private float
protected void
init()
boolean
keyPressed
(int p_169469_, int p_169470_, int p_169471_) boolean
keyReleased
(int p_169476_, int p_169477_, int p_169478_) void
onClose()
void
private void
private void
respawn()
void
tick()
private void
wrapCreditsIO
(String p_197399_, WinScreen.CreditsReader p_197400_) Methods inherited from class net.minecraft.client.gui.screens.Screen
added, addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, changeFocus, children, clearWidgets, findNarratableWidget, getMinecraft, getNarrationMessage, getRectangle, getTitle, getTooltipFromItem, handleComponentClicked, handleDelayedNarration, hasAltDown, hasControlDown, hasShiftDown, hideWidgets, init, insertText, isCopy, isCut, isMouseOver, isPaste, isPauseScreen, isSelectAll, isValidCharacterForName, narrationEnabled, onFilesDrop, rebuildWidgets, removed, removeWidget, renderBackground, renderComponentHoverEffect, renderComponentTooltip, renderComponentTooltip, renderComponentTooltip, renderComponentTooltip, renderDirtBackground, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderWithTooltip, repositionElements, resize, setInitialFocus, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, shouldCloseOnEsc, shouldNarrateNavigation, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, wrapScreenError
Methods inherited from class net.minecraft.client.gui.components.events.AbstractContainerEventHandler
getFocused, isDragging, setDragging, setFocused
Methods inherited from class net.minecraft.client.gui.GuiComponent
blit, blit, blit, blit, blit, blit, blitNineSliced, blitNineSliced, blitNineSliced, blitOutlineBlack, blitRepeating, disableScissor, drawCenteredString, drawCenteredString, drawCenteredString, drawString, drawString, drawString, enableScissor, fill, fill, fillGradient, fillGradient, fillGradient, hLine, renderOutline, 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.components.events.ContainerEventHandler
charTyped, getChildAt, getCurrentFocusPath, isFocused, magicalSpecialHackyFocus, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, nextFocusPath, setFocused
Methods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
mouseMoved
Methods inherited from interface net.minecraft.client.gui.components.TabOrderedElement
getTabOrderGroup
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
VIGNETTE_LOCATION
-
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:
-
poem
private final boolean poem -
onFinished
-
scroll
private float scroll -
lines
-
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 -
logoRenderer
-
-
Constructor Details
-
WinScreen
-
-
Method Details
-
calculateScrollSpeed
private float calculateScrollSpeed() -
tick
public void tick() -
keyPressed
public boolean keyPressed(int p_169469_, int p_169470_, int p_169471_) - Specified by:
keyPressed
in interfaceContainerEventHandler
- Specified by:
keyPressed
in interfaceGuiEventListener
- Overrides:
keyPressed
in classScreen
-
keyReleased
public boolean keyReleased(int p_169476_, int p_169477_, int p_169478_) -
onClose
public void onClose() -
respawn
private void respawn() -
init
protected void init() -
wrapCreditsIO
-
addPoemFile
- Throws:
IOException
-
addCreditsFile
-
addEmptyLine
private void addEmptyLine() -
addPoemLines
-
addCreditsLine
-
renderBg
-
render
- Specified by:
render
in interfaceRenderable
- Overrides:
render
in classScreen
-