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,Widget
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.client.gui.screens.Screen
Screen.NarratableSearchResult -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate it.unimi.dsi.fastutil.ints.IntSetprivate static ResourceLocationprivate List<FormattedCharSequence>private static org.apache.logging.log4j.Loggerprivate static ResourceLocationprivate static intprivate static Stringprivate static Stringprivate Runnableprivate booleanprivate floatprivate floatprivate static Componentprivate static floatprivate static floatprivate booleanprivate it.unimi.dsi.fastutil.ints.IntSetprivate intprivate floatprivate static ResourceLocationFields inherited from class net.minecraft.client.gui.screens.Screen
font, height, itemRenderer, minecraft, passEvents, renderables, title, widthFields inherited from class net.minecraft.client.gui.GuiComponent
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidaddCreditsLine(Component p_169473_, boolean p_169474_)private voidprivate voidaddPoemLines(String p_181398_)private floatprotected voidinit()booleankeyPressed(int p_169469_, int p_169470_, int p_169471_)booleankeyReleased(int p_169476_, int p_169477_, int p_169478_)voidonClose()voidprivate voidrenderBg()private voidrespawn()voidtick()Methods inherited from class net.minecraft.client.gui.screens.Screen
addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, children, clearWidgets, findNarratableWidget, getMinecraft, getNarrationMessage, getTitle, getTooltipFromItem, handleComponentClicked, handleDelayedNarration, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isPauseScreen, isSelectAll, isValidCharacterForName, narrationEnabled, onFilesDrop, removed, removeWidget, renderBackground, renderBackground, renderComponentHoverEffect, renderComponentTooltip, renderComponentTooltip, renderComponentTooltip, renderComponentTooltip, renderComponentToolTip, renderDirtBackground, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderToolTip, resize, sendMessage, sendMessage, shouldCloseOnEsc, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, wrapScreenErrorMethods inherited from class net.minecraft.client.gui.components.events.AbstractContainerEventHandler
getFocused, isDragging, setDragging, setFocusedMethods inherited from class net.minecraft.client.gui.GuiComponent
blit, blit, blit, blit, blit, blitOutlineBlack, drawCenteredString, drawCenteredString, drawCenteredString, drawString, drawString, drawString, fill, fillGradient, fillGradient, fillGradient, getBlitOffset, hLine, setBlitOffset, vLineMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.components.events.ContainerEventHandler
changeFocus, charTyped, getChildAt, magicalSpecialHackyFocus, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, setInitialFocusMethods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
mouseMoved
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
LOGO_LOCATION
-
EDITION_LOCATION
-
VIGNETTE_LOCATION
-
SECTION_HEADING
-
NAME_PREFIX
- See Also:
- Constant Field Values
-
OBFUSCATE_TOKEN
-
LOGO_WIDTH
private static final int LOGO_WIDTH- See Also:
- Constant Field Values
-
SPEEDUP_FACTOR
private static final float SPEEDUP_FACTOR- See Also:
- Constant Field Values
-
SPEEDUP_FACTOR_FAST
private static final float SPEEDUP_FACTOR_FAST- See Also:
- Constant Field Values
-
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
-
-
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:
keyPressedin interfaceContainerEventHandler- Specified by:
keyPressedin interfaceGuiEventListener- Overrides:
keyPressedin 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() -
addEmptyLine
private void addEmptyLine() -
addPoemLines
-
addCreditsLine
-
renderBg
private void renderBg() -
render
-