Class PotatoCreditsScreen

All Implemented Interfaces:
Drawable, Element, Navigable, ParentElement

@Environment(CLIENT) public class PotatoCreditsScreen extends Screen
Mappings:
Namespace Name
official foi
intermediary net/minecraft/class_9604
named net/minecraft/client/gui/screen/PotatoCreditsScreen
  • Field Details

    • VIGNETTE_TEXTURE

      private static final Identifier VIGNETTE_TEXTURE
      Mappings:
      Namespace Name Mixin selector
      official a Lfoi;a:Lakt;
      intermediary field_51084 Lnet/minecraft/class_9604;field_51084:Lnet/minecraft/class_2960;
      named VIGNETTE_TEXTURE Lnet/minecraft/client/gui/screen/PotatoCreditsScreen;VIGNETTE_TEXTURE:Lnet/minecraft/util/Identifier;
    • OBFUSCATION_PLACEHOLDER

      private static final String OBFUSCATION_PLACEHOLDER
      Mappings:
      Namespace Name Mixin selector
      official b Lfoi;b:Ljava/lang/String;
      intermediary field_51085 Lnet/minecraft/class_9604;field_51085:Ljava/lang/String;
      named OBFUSCATION_PLACEHOLDER Lnet/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 c Lfoi;c:F
      intermediary field_51086 Lnet/minecraft/class_9604;field_51086:F
      named SPACE_BAR_SPEED_MULTIPLIER Lnet/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 d Lfoi;d:F
      intermediary field_51087 Lnet/minecraft/class_9604;field_51087:F
      named CTRL_KEY_SPEED_MULTIPLIER Lnet/minecraft/client/gui/screen/PotatoCreditsScreen;CTRL_KEY_SPEED_MULTIPLIER:F
    • finishAction

      private final Runnable finishAction
      Mappings:
      Namespace Name Mixin selector
      official r Lfoi;r:Ljava/lang/Runnable;
      intermediary field_51088 Lnet/minecraft/class_9604;field_51088:Ljava/lang/Runnable;
      named finishAction Lnet/minecraft/client/gui/screen/PotatoCreditsScreen;finishAction:Ljava/lang/Runnable;
    • time

      private float time
      Mappings:
      Namespace Name Mixin selector
      official s Lfoi;s:F
      intermediary field_51089 Lnet/minecraft/class_9604;field_51089:F
      named time Lnet/minecraft/client/gui/screen/PotatoCreditsScreen;time:F
    • credits

      private List<OrderedText> credits
      Mappings:
      Namespace Name Mixin selector
      official u Lfoi;u:Ljava/util/List;
      intermediary field_51090 Lnet/minecraft/class_9604;field_51090:Ljava/util/List;
      named credits Lnet/minecraft/client/gui/screen/PotatoCreditsScreen;credits:Ljava/util/List;
    • centeredLines

      private IntSet centeredLines
      Mappings:
      Namespace Name Mixin selector
      official v Lfoi;v:Lit/unimi/dsi/fastutil/ints/IntSet;
      intermediary field_51091 Lnet/minecraft/class_9604;field_51091:Lit/unimi/dsi/fastutil/ints/IntSet;
      named centeredLines Lnet/minecraft/client/gui/screen/PotatoCreditsScreen;centeredLines:Lit/unimi/dsi/fastutil/ints/IntSet;
    • creditsHeight

      private int creditsHeight
      Mappings:
      Namespace Name Mixin selector
      official w Lfoi;w:I
      intermediary field_51092 Lnet/minecraft/class_9604;field_51092:I
      named creditsHeight Lnet/minecraft/client/gui/screen/PotatoCreditsScreen;creditsHeight:I
    • spaceKeyPressed

      private boolean spaceKeyPressed
      Mappings:
      Namespace Name Mixin selector
      official x Lfoi;x:Z
      intermediary field_51093 Lnet/minecraft/class_9604;field_51093:Z
      named spaceKeyPressed Lnet/minecraft/client/gui/screen/PotatoCreditsScreen;spaceKeyPressed:Z
    • pressedCtrlKeys

      private final IntSet pressedCtrlKeys
      Mappings:
      Namespace Name Mixin selector
      official y Lfoi;y:Lit/unimi/dsi/fastutil/ints/IntSet;
      intermediary field_51094 Lnet/minecraft/class_9604;field_51094:Lit/unimi/dsi/fastutil/ints/IntSet;
      named pressedCtrlKeys Lnet/minecraft/client/gui/screen/PotatoCreditsScreen;pressedCtrlKeys:Lit/unimi/dsi/fastutil/ints/IntSet;
    • speed

      private float speed
      Mappings:
      Namespace Name Mixin selector
      official z Lfoi;z:F
      intermediary field_51095 Lnet/minecraft/class_9604;field_51095:F
      named speed Lnet/minecraft/client/gui/screen/PotatoCreditsScreen;speed:F
    • baseSpeed

      private final float baseSpeed
      Mappings:
      Namespace Name Mixin selector
      official A Lfoi;A:F
      intermediary field_51081 Lnet/minecraft/class_9604;field_51081:F
      named baseSpeed Lnet/minecraft/client/gui/screen/PotatoCreditsScreen;baseSpeed:F
    • speedMultiplier

      private int speedMultiplier
      Mappings:
      Namespace Name Mixin selector
      official B Lfoi;B:I
      intermediary field_51082 Lnet/minecraft/class_9604;field_51082:I
      named speedMultiplier Lnet/minecraft/client/gui/screen/PotatoCreditsScreen;speedMultiplier:I
    • logoDrawer

      private final LogoDrawer logoDrawer
      Mappings:
      Namespace Name Mixin selector
      official C Lfoi;C:Lfje;
      intermediary field_51083 Lnet/minecraft/class_9604;field_51083:Lnet/minecraft/class_8020;
      named logoDrawer Lnet/minecraft/client/gui/screen/PotatoCreditsScreen;logoDrawer:Lnet/minecraft/client/gui/LogoDrawer;
  • Constructor Details

    • PotatoCreditsScreen

      public PotatoCreditsScreen(Runnable finishAction)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lfoi;<init>(Ljava/lang/Runnable;)V
      intermediary <init> Lnet/minecraft/class_9604;<init>(Ljava/lang/Runnable;)V
      named <init> Lnet/minecraft/client/gui/screen/PotatoCreditsScreen;<init>(Ljava/lang/Runnable;)V
  • Method Details

    • getSpeed

      private float getSpeed()
      Mappings:
      Namespace Name Mixin selector
      official B Lfoi;B()F
      intermediary method_59328 Lnet/minecraft/class_9604;method_59328()F
      named getSpeed Lnet/minecraft/client/gui/screen/PotatoCreditsScreen;getSpeed()F
    • tick

      public void tick()
      Overrides:
      tick in class Screen
      Mappings:
      Namespace Name Mixin selector
      official e Lfon;e()V
      intermediary method_25393 Lnet/minecraft/class_437;method_25393()V
      named tick Lnet/minecraft/client/gui/screen/Screen;tick()V
    • 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 in GLFW class.
      Specified by:
      keyPressed in interface Element
      Specified by:
      keyPressed in interface ParentElement
      Overrides:
      keyPressed in class Screen
      Parameters:
      keyCode - the named key code of the event as described in the GLFW class
      scanCode - the unique/platform-specific scan code of the keyboard input
      modifiers - a GLFW bitfield describing the modifier keys that are held down (see GLFW Modifier key flags)
      Returns:
      true to indicate that the event handling is successful/valid
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lfkj;a(III)Z
      intermediary method_25404 Lnet/minecraft/class_364;method_25404(III)Z
      named keyPressed Lnet/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 in GLFW class.
      Parameters:
      keyCode - the named key code of the event as described in the GLFW class
      scanCode - the unique/platform-specific scan code of the keyboard input
      modifiers - a GLFW bitfield describing the modifier keys that are held down (see GLFW Modifier key flags)
      Returns:
      true to indicate that the event handling is successful/valid
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official c Lfkj;c(III)Z
      intermediary method_16803 Lnet/minecraft/class_364;method_16803(III)Z
      named keyReleased Lnet/minecraft/client/gui/Element;keyReleased(III)Z
    • close

      public void close()
      Overrides:
      close in class Screen
      Mappings:
      Namespace Name Mixin selector
      official d Lfon;d()V
      intermediary method_25419 Lnet/minecraft/class_437;method_25419()V
      named close Lnet/minecraft/client/gui/screen/Screen;close()V
    • closeScreen

      private void closeScreen()
      Mappings:
      Namespace Name Mixin selector
      official C Lfoi;C()V
      intermediary method_59329 Lnet/minecraft/class_9604;method_59329()V
      named closeScreen Lnet/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.

      Overrides:
      init in class Screen
      Mappings:
      Namespace Name Mixin selector
      official aN_ Lfon;aN_()V
      intermediary method_25426 Lnet/minecraft/class_437;method_25426()V
      named init Lnet/minecraft/client/gui/screen/Screen;init()V
    • load

      private void load(String id, PotatoCreditsScreen.CreditsReader reader)
      Mappings:
      Namespace Name Mixin selector
      official a Lfoi;a(Ljava/lang/String;Lfoi$a;)V
      intermediary method_59333 Lnet/minecraft/class_9604;method_59333(Ljava/lang/String;Lnet/minecraft/class_9604$class_9605;)V
      named load Lnet/minecraft/client/gui/screen/PotatoCreditsScreen;load(Ljava/lang/String;Lnet/minecraft/client/gui/screen/PotatoCreditsScreen$CreditsReader;)V
    • readPotato

      private void readPotato(Reader reader) throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official a Lfoi;a(Ljava/io/Reader;)V
      intermediary method_59331 Lnet/minecraft/class_9604;method_59331(Ljava/io/Reader;)V
      named readPotato Lnet/minecraft/client/gui/screen/PotatoCreditsScreen;readPotato(Ljava/io/Reader;)V
    • addEmptyLine

      private void addEmptyLine()
      Mappings:
      Namespace Name Mixin selector
      official D Lfoi;D()V
      intermediary method_59330 Lnet/minecraft/class_9604;method_59330()V
      named addEmptyLine Lnet/minecraft/client/gui/screen/PotatoCreditsScreen;addEmptyLine()V
    • addText

      private void addText(String text)
      Mappings:
      Namespace Name Mixin selector
      official a Lfoi;a(Ljava/lang/String;)V
      intermediary method_59332 Lnet/minecraft/class_9604;method_59332(Ljava/lang/String;)V
      named addText Lnet/minecraft/client/gui/screen/PotatoCreditsScreen;addText(Ljava/lang/String;)V
    • render

      public void render(DrawContext context, int mouseX, int mouseY, float delta)
      Specified by:
      render in interface Drawable
      Overrides:
      render in class Screen
      Mappings:
      Namespace Name Mixin selector
      official a Lfjq;a(Lfia;IIF)V
      intermediary method_25394 Lnet/minecraft/class_4068;method_25394(Lnet/minecraft/class_332;IIF)V
      named render Lnet/minecraft/client/gui/Drawable;render(Lnet/minecraft/client/gui/DrawContext;IIF)V
    • renderVignette

      private void renderVignette(DrawContext context)
      Mappings:
      Namespace Name Mixin selector
      official c Lfoi;c(Lfia;)V
      intermediary method_59334 Lnet/minecraft/class_9604;method_59334(Lnet/minecraft/class_332;)V
      named renderVignette Lnet/minecraft/client/gui/screen/PotatoCreditsScreen;renderVignette(Lnet/minecraft/client/gui/DrawContext;)V
    • renderBackground

      public void renderBackground(DrawContext context, int mouseX, int mouseY, float delta)
      Renders the background of this screen.

      If the client is in a world, renders the translucent background gradient. Otherwise renders the background texture.

      Overrides:
      renderBackground in class Screen
      Mappings:
      Namespace Name Mixin selector
      official b Lfon;b(Lfia;IIF)V
      intermediary method_25420 Lnet/minecraft/class_437;method_25420(Lnet/minecraft/class_332;IIF)V
      named renderBackground Lnet/minecraft/client/gui/screen/Screen;renderBackground(Lnet/minecraft/client/gui/DrawContext;IIF)V
    • shouldPause

      public boolean shouldPause()
      Overrides:
      shouldPause in class Screen
      Mappings:
      Namespace Name Mixin selector
      official k Lfon;k()Z
      intermediary method_25421 Lnet/minecraft/class_437;method_25421()Z
      named shouldPause Lnet/minecraft/client/gui/screen/Screen;shouldPause()Z
    • removed

      public void removed()
      Overrides:
      removed in class Screen
      Mappings:
      Namespace Name Mixin selector
      official j Lfon;j()V
      intermediary method_25432 Lnet/minecraft/class_437;method_25432()V
      named removed Lnet/minecraft/client/gui/screen/Screen;removed()V
    • getMusic

      public MusicSound getMusic()
      Overrides:
      getMusic in class Screen
      Mappings:
      Namespace Name Mixin selector
      official aL_ Lfon;aL_()Lavl;
      intermediary method_50024 Lnet/minecraft/class_437;method_50024()Lnet/minecraft/class_5195;
      named getMusic Lnet/minecraft/client/gui/screen/Screen;getMusic()Lnet/minecraft/sound/MusicSound;