Package net.minecraft.client.gui.screen
Class PotatoCreditsScreen
java.lang.Object
net.minecraft.client.gui.AbstractParentElement
net.minecraft.client.gui.screen.Screen
net.minecraft.client.gui.screen.PotatoCreditsScreen
- All Implemented Interfaces:
Drawable,Element,Navigable,ParentElement
- Mappings:
Namespace Name official foiintermediary net/minecraft/class_9604named net/minecraft/client/gui/screen/PotatoCreditsScreen
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class net.minecraft.client.gui.screen.Screen
Screen.SelectedElementNarrationData -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final floatprivate IntSetprivate List<OrderedText> private intprivate static final floatprivate final Runnableprivate final LogoDrawerprivate static final Stringprivate final IntSetprivate static final floatprivate booleanprivate floatprivate intprivate floatprivate static final IdentifierFields inherited from class net.minecraft.client.gui.screen.Screen
client, executor, FOOTER_SEPARATOR_TEXTURE, HEADER_SEPARATOR_TEXTURE, height, INWORLD_FOOTER_SEPARATOR_TEXTURE, INWORLD_HEADER_SEPARATOR_TEXTURE, MENU_BACKGROUND_TEXTURE, PANORAMA_RENDERER, ROTATING_PANORAMA_RENDERER, textRenderer, title, widthFields inherited from interface net.minecraft.client.gui.Element
MAX_DOUBLE_CLICK_INTERVAL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidprivate voidvoidclose()private voidgetMusic()private floatgetSpeed()protected voidinit()Called when a screen should be initialized.booleankeyPressed(int keyCode, int scanCode, int modifiers) Callback for when a key down event has been captured.booleankeyReleased(int keyCode, int scanCode, int modifiers) Callback for when a key down event has been captured.private voidload(String id, PotatoCreditsScreen.CreditsReader reader) private voidreadPotato(Reader reader) voidremoved()voidrender(DrawContext context, int mouseX, int mouseY, float delta) voidrenderBackground(DrawContext context, int mouseX, int mouseY, float delta) Renders the background of this screen.private voidrenderVignette(DrawContext context) booleanvoidtick()Methods inherited from class net.minecraft.client.gui.screen.Screen
addDrawable, addDrawableChild, addElementNarrations, addScreenNarrations, addSelectableChild, applyBlur, applyKeyPressNarratorDelay, applyMouseMoveNarratorDelay, applyMousePressScrollNarratorDelay, applyNarratorModeChangeDelay, blur, children, clearAndInit, clearChildren, filesDragged, findSelectedElementData, getNarratedTitle, getNavigationFocus, getTitle, getTooltipFromItem, getUsageNarrationText, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, hasUsageText, init, initTabNavigation, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, narrateScreenIfNarrationEnabled, onDisplayed, remove, renderBackgroundTexture, renderDarkening, renderDarkening, renderInGameBackground, renderPanoramaBackground, renderWithTooltip, resize, setInitialFocus, setInitialFocus, setTooltip, setTooltip, setTooltip, setTooltip, shouldCloseOnEsc, switchFocus, updateNarrator, wrapScreenErrorMethods inherited from class net.minecraft.client.gui.AbstractParentElement
getFocused, isDragging, setDragging, setFocusedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.Element
mouseMovedMethods inherited from interface net.minecraft.client.gui.navigation.Navigable
getNavigationOrderMethods inherited from interface net.minecraft.client.gui.ParentElement
charTyped, getFocusedPath, getNavigationPath, hoveredElement, isFocused, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, setFocused
-
Field Details
-
VIGNETTE_TEXTURE
- Mappings:
Namespace Name Mixin selector official aLfoi;a:Lakt;intermediary field_51084Lnet/minecraft/class_9604;field_51084:Lnet/minecraft/class_2960;named VIGNETTE_TEXTURELnet/minecraft/client/gui/screen/PotatoCreditsScreen;VIGNETTE_TEXTURE:Lnet/minecraft/util/Identifier;
-
OBFUSCATION_PLACEHOLDER
- Mappings:
Namespace Name Mixin selector official bLfoi;b:Ljava/lang/String;intermediary field_51085Lnet/minecraft/class_9604;field_51085:Ljava/lang/String;named OBFUSCATION_PLACEHOLDERLnet/minecraft/client/gui/screen/PotatoCreditsScreen;OBFUSCATION_PLACEHOLDER:Ljava/lang/String;
-
SPACE_BAR_SPEED_MULTIPLIER
private static final float SPACE_BAR_SPEED_MULTIPLIER- See Also:
- Mappings:
Namespace Name Mixin selector official cLfoi;c:Fintermediary field_51086Lnet/minecraft/class_9604;field_51086:Fnamed SPACE_BAR_SPEED_MULTIPLIERLnet/minecraft/client/gui/screen/PotatoCreditsScreen;SPACE_BAR_SPEED_MULTIPLIER:F
-
CTRL_KEY_SPEED_MULTIPLIER
private static final float CTRL_KEY_SPEED_MULTIPLIER- See Also:
- Mappings:
Namespace Name Mixin selector official dLfoi;d:Fintermediary field_51087Lnet/minecraft/class_9604;field_51087:Fnamed CTRL_KEY_SPEED_MULTIPLIERLnet/minecraft/client/gui/screen/PotatoCreditsScreen;CTRL_KEY_SPEED_MULTIPLIER:F
-
finishAction
- Mappings:
Namespace Name Mixin selector official rLfoi;r:Ljava/lang/Runnable;intermediary field_51088Lnet/minecraft/class_9604;field_51088:Ljava/lang/Runnable;named finishActionLnet/minecraft/client/gui/screen/PotatoCreditsScreen;finishAction:Ljava/lang/Runnable;
-
time
private float time- Mappings:
Namespace Name Mixin selector official sLfoi;s:Fintermediary field_51089Lnet/minecraft/class_9604;field_51089:Fnamed timeLnet/minecraft/client/gui/screen/PotatoCreditsScreen;time:F
-
credits
- Mappings:
Namespace Name Mixin selector official uLfoi;u:Ljava/util/List;intermediary field_51090Lnet/minecraft/class_9604;field_51090:Ljava/util/List;named creditsLnet/minecraft/client/gui/screen/PotatoCreditsScreen;credits:Ljava/util/List;
-
centeredLines
- Mappings:
Namespace Name Mixin selector official vLfoi;v:Lit/unimi/dsi/fastutil/ints/IntSet;intermediary field_51091Lnet/minecraft/class_9604;field_51091:Lit/unimi/dsi/fastutil/ints/IntSet;named centeredLinesLnet/minecraft/client/gui/screen/PotatoCreditsScreen;centeredLines:Lit/unimi/dsi/fastutil/ints/IntSet;
-
creditsHeight
private int creditsHeight- Mappings:
Namespace Name Mixin selector official wLfoi;w:Iintermediary field_51092Lnet/minecraft/class_9604;field_51092:Inamed creditsHeightLnet/minecraft/client/gui/screen/PotatoCreditsScreen;creditsHeight:I
-
spaceKeyPressed
private boolean spaceKeyPressed- Mappings:
Namespace Name Mixin selector official xLfoi;x:Zintermediary field_51093Lnet/minecraft/class_9604;field_51093:Znamed spaceKeyPressedLnet/minecraft/client/gui/screen/PotatoCreditsScreen;spaceKeyPressed:Z
-
pressedCtrlKeys
- Mappings:
Namespace Name Mixin selector official yLfoi;y:Lit/unimi/dsi/fastutil/ints/IntSet;intermediary field_51094Lnet/minecraft/class_9604;field_51094:Lit/unimi/dsi/fastutil/ints/IntSet;named pressedCtrlKeysLnet/minecraft/client/gui/screen/PotatoCreditsScreen;pressedCtrlKeys:Lit/unimi/dsi/fastutil/ints/IntSet;
-
speed
private float speed- Mappings:
Namespace Name Mixin selector official zLfoi;z:Fintermediary field_51095Lnet/minecraft/class_9604;field_51095:Fnamed speedLnet/minecraft/client/gui/screen/PotatoCreditsScreen;speed:F
-
baseSpeed
private final float baseSpeed- Mappings:
Namespace Name Mixin selector official ALfoi;A:Fintermediary field_51081Lnet/minecraft/class_9604;field_51081:Fnamed baseSpeedLnet/minecraft/client/gui/screen/PotatoCreditsScreen;baseSpeed:F
-
speedMultiplier
private int speedMultiplier- Mappings:
Namespace Name Mixin selector official BLfoi;B:Iintermediary field_51082Lnet/minecraft/class_9604;field_51082:Inamed speedMultiplierLnet/minecraft/client/gui/screen/PotatoCreditsScreen;speedMultiplier:I
-
logoDrawer
- Mappings:
Namespace Name Mixin selector official CLfoi;C:Lfje;intermediary field_51083Lnet/minecraft/class_9604;field_51083:Lnet/minecraft/class_8020;named logoDrawerLnet/minecraft/client/gui/screen/PotatoCreditsScreen;logoDrawer:Lnet/minecraft/client/gui/LogoDrawer;
-
-
Constructor Details
-
PotatoCreditsScreen
- Mappings:
Namespace Name Mixin selector official <init>Lfoi;<init>(Ljava/lang/Runnable;)Vintermediary <init>Lnet/minecraft/class_9604;<init>(Ljava/lang/Runnable;)Vnamed <init>Lnet/minecraft/client/gui/screen/PotatoCreditsScreen;<init>(Ljava/lang/Runnable;)V
-
-
Method Details
-
getSpeed
private float getSpeed()- Mappings:
Namespace Name Mixin selector official BLfoi;B()Fintermediary method_59328Lnet/minecraft/class_9604;method_59328()Fnamed getSpeedLnet/minecraft/client/gui/screen/PotatoCreditsScreen;getSpeed()F
-
tick
public void tick() -
keyPressed
public boolean keyPressed(int keyCode, int scanCode, int modifiers) Callback for when a key down event has been captured. The key code is identified by the constants inGLFWclass.- Specified by:
keyPressedin interfaceElement- Specified by:
keyPressedin interfaceParentElement- Overrides:
keyPressedin classScreen- Parameters:
keyCode- the named key code of the event as described in theGLFWclassscanCode- the unique/platform-specific scan code of the keyboard inputmodifiers- a GLFW bitfield describing the modifier keys that are held down (see GLFW Modifier key flags)- Returns:
trueto indicate that the event handling is successful/valid- See Also:
- Mappings:
Namespace Name Mixin selector official aLfkj;a(III)Zintermediary method_25404Lnet/minecraft/class_364;method_25404(III)Znamed keyPressedLnet/minecraft/client/gui/Element;keyPressed(III)Z
-
keyReleased
public boolean keyReleased(int keyCode, int scanCode, int modifiers) Callback for when a key down event has been captured. The key code is identified by the constants inGLFWclass.- Parameters:
keyCode- the named key code of the event as described in theGLFWclassscanCode- the unique/platform-specific scan code of the keyboard inputmodifiers- a GLFW bitfield describing the modifier keys that are held down (see GLFW Modifier key flags)- Returns:
trueto indicate that the event handling is successful/valid- See Also:
- Mappings:
Namespace Name Mixin selector official cLfkj;c(III)Zintermediary method_16803Lnet/minecraft/class_364;method_16803(III)Znamed keyReleasedLnet/minecraft/client/gui/Element;keyReleased(III)Z
-
close
public void close() -
closeScreen
private void closeScreen()- Mappings:
Namespace Name Mixin selector official CLfoi;C()Vintermediary method_59329Lnet/minecraft/class_9604;method_59329()Vnamed closeScreenLnet/minecraft/client/gui/screen/PotatoCreditsScreen;closeScreen()V
-
init
protected void init()Called when a screen should be initialized.This method is called when this screen is opened or resized.
This should call
Screen.setInitialFocus()to set the element that is initially focused. -
load
- Mappings:
Namespace Name Mixin selector official aLfoi;a(Ljava/lang/String;Lfoi$a;)Vintermediary method_59333Lnet/minecraft/class_9604;method_59333(Ljava/lang/String;Lnet/minecraft/class_9604$class_9605;)Vnamed loadLnet/minecraft/client/gui/screen/PotatoCreditsScreen;load(Ljava/lang/String;Lnet/minecraft/client/gui/screen/PotatoCreditsScreen$CreditsReader;)V
-
readPotato
- Throws:
IOException- Mappings:
Namespace Name Mixin selector official aLfoi;a(Ljava/io/Reader;)Vintermediary method_59331Lnet/minecraft/class_9604;method_59331(Ljava/io/Reader;)Vnamed readPotatoLnet/minecraft/client/gui/screen/PotatoCreditsScreen;readPotato(Ljava/io/Reader;)V
-
addEmptyLine
private void addEmptyLine()- Mappings:
Namespace Name Mixin selector official DLfoi;D()Vintermediary method_59330Lnet/minecraft/class_9604;method_59330()Vnamed addEmptyLineLnet/minecraft/client/gui/screen/PotatoCreditsScreen;addEmptyLine()V
-
addText
- Mappings:
Namespace Name Mixin selector official aLfoi;a(Ljava/lang/String;)Vintermediary method_59332Lnet/minecraft/class_9604;method_59332(Ljava/lang/String;)Vnamed addTextLnet/minecraft/client/gui/screen/PotatoCreditsScreen;addText(Ljava/lang/String;)V
-
render
- Specified by:
renderin interfaceDrawable- Overrides:
renderin classScreen- Mappings:
Namespace Name Mixin selector official aLfjq;a(Lfia;IIF)Vintermediary method_25394Lnet/minecraft/class_4068;method_25394(Lnet/minecraft/class_332;IIF)Vnamed renderLnet/minecraft/client/gui/Drawable;render(Lnet/minecraft/client/gui/DrawContext;IIF)V
-
renderVignette
- Mappings:
Namespace Name Mixin selector official cLfoi;c(Lfia;)Vintermediary method_59334Lnet/minecraft/class_9604;method_59334(Lnet/minecraft/class_332;)Vnamed renderVignetteLnet/minecraft/client/gui/screen/PotatoCreditsScreen;renderVignette(Lnet/minecraft/client/gui/DrawContext;)V
-
renderBackground
Renders the background of this screen.If the client is in a world, renders the translucent background gradient. Otherwise renders the background texture.
- Overrides:
renderBackgroundin classScreen- Mappings:
Namespace Name Mixin selector official bLfon;b(Lfia;IIF)Vintermediary method_25420Lnet/minecraft/class_437;method_25420(Lnet/minecraft/class_332;IIF)Vnamed renderBackgroundLnet/minecraft/client/gui/screen/Screen;renderBackground(Lnet/minecraft/client/gui/DrawContext;IIF)V
-
shouldPause
public boolean shouldPause()- Overrides:
shouldPausein classScreen- Mappings:
Namespace Name Mixin selector official kLfon;k()Zintermediary method_25421Lnet/minecraft/class_437;method_25421()Znamed shouldPauseLnet/minecraft/client/gui/screen/Screen;shouldPause()Z
-
removed
public void removed() -
getMusic
-