Package net.minecraft.client.gui.screens
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 net.minecraft.client.gui.screens.Screen
Screen.DeferredTooltipRendering, Screen.NarratableSearchResult
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate it.unimi.dsi.fastutil.ints.IntSet
private static final ResourceLocation
private int
private static final ResourceLocation
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 static final ResourceLocation
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
CUBE_MAP, font, FOOTER_SEPARATOR, HEADER_SEPARATOR, height, INWORLD_FOOTER_SEPARATOR, INWORLD_HEADER_SEPARATOR, MENU_BACKGROUND, minecraft, narratorButton, PANORAMA, renderables, screenExecutor, title, width
Fields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
addCreditsFile
(Reader pReader) private void
addCreditsLine
(Component pCreditsLine, boolean pCentered) private void
private void
addPoemFile
(Reader pReader) private void
addPoemLines
(String pText) private float
protected void
init()
boolean
boolean
keyPressed
(int p_169469_, int p_169470_, int p_169471_) Called when a keyboard key is pressed within the GUI element.boolean
keyReleased
(int p_169476_, int p_169477_, int p_169478_) Called when a keyboard key is released within the GUI element.void
onClose()
void
removed()
void
render
(GuiGraphics p_281907_, int p_282364_, int p_282696_, float p_281316_) Neo: mixins targeting this method won't fire for container screens asAbstractContainerScreen.render(net.minecraft.client.gui.GuiGraphics, int, int, float)
replicates this method in place of a super call to insert an eventvoid
renderBackground
(GuiGraphics p_282239_, int p_294762_, int p_295473_, float p_296441_) protected void
renderMenuBackground
(GuiGraphics p_333914_, int p_333869_, int p_334014_, int p_333930_, int p_333890_) private void
renderVignette
(GuiGraphics pGuiGraphics) private void
respawn()
void
tick()
private void
wrapCreditsIO
(ResourceLocation pLocation, WinScreen.CreditsReader pReader) Methods inherited from class net.minecraft.client.gui.screens.Screen
added, addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, changeFocus, children, clearFocus, clearTooltipForNextRenderPass, clearWidgets, fillCrashDetails, findNarratableWidget, getFont, getMinecraft, getNarrationMessage, getRectangle, getTitle, getTooltipFromItem, getUsageNarration, handleComponentClicked, handleDelayedNarration, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, onFilesDrop, rebuildWidgets, removeWidget, renderBlurredBackground, renderMenuBackground, renderMenuBackgroundTexture, renderPanorama, renderTransparentBackground, renderWithTooltip, repositionElements, resize, setInitialFocus, setInitialFocus, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, shouldCloseOnEsc, shouldNarrateNavigation, showsActiveEffects, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, updateNarratorStatus
Methods inherited from class net.minecraft.client.gui.components.events.AbstractContainerEventHandler
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.components.events.ContainerEventHandler
charTyped, getChildAt, getCurrentFocusPath, isFocused, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, nextFocusPath, setFocused
Methods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
getBorderForArrowNavigation, mouseMoved
Methods inherited from interface net.minecraft.client.gui.components.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
-
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
public void tick() -
keyPressed
public boolean keyPressed(int p_169469_, int p_169470_, int p_169471_) Description copied from interface:ContainerEventHandler
Called when a keyboard key is pressed within the GUI element.- Specified by:
keyPressed
in interfaceContainerEventHandler
- Specified by:
keyPressed
in interfaceGuiEventListener
- Overrides:
keyPressed
in classScreen
- Parameters:
p_169469_
- the key code of the pressed key.p_169470_
- the scan code of the pressed key.p_169471_
- the keyboard modifiers.- Returns:
true
if the event is consumed,false
otherwise.
-
keyReleased
public boolean keyReleased(int p_169476_, int p_169477_, int p_169478_) Description copied from interface:ContainerEventHandler
Called when a keyboard key is released within the GUI element.- Parameters:
p_169476_
- the key code of the released key.p_169477_
- the scan code of the released key.p_169478_
- the keyboard modifiers.- Returns:
true
if the event is consumed,false
otherwise.
-
onClose
public void onClose() -
respawn
private void respawn() -
init
protected void init() -
wrapCreditsIO
-
addPoemFile
- Throws:
IOException
-
addCreditsFile
-
addEmptyLine
private void addEmptyLine() -
addPoemLines
-
addCreditsLine
-
render
Description copied from class:Screen
Neo: mixins targeting this method won't fire for container screens asAbstractContainerScreen.render(net.minecraft.client.gui.GuiGraphics, int, int, float)
replicates this method in place of a super call to insert an event- Specified by:
render
in interfaceRenderable
- Overrides:
render
in classScreen
- Parameters:
p_281907_
- the GuiGraphics object used for rendering.p_282364_
- the x-coordinate of the mouse cursor.p_282696_
- the y-coordinate of the mouse cursor.p_281316_
- the partial tick time.
-
renderVignette
-
renderBackground
- Overrides:
renderBackground
in classScreen
-
renderMenuBackground
protected void renderMenuBackground(GuiGraphics p_333914_, int p_333869_, int p_334014_, int p_333930_, int p_333890_) - Overrides:
renderMenuBackground
in classScreen
-
isPauseScreen
public boolean isPauseScreen()- Overrides:
isPauseScreen
in classScreen
-
removed
public void removed() -
getBackgroundMusic
- Overrides:
getBackgroundMusic
in classScreen
-