Class CreditsScreen

All Implemented Interfaces:
Drawable, Element, Navigable, ParentElement

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

    • VIGNETTE_TEXTURE

      private static final Identifier VIGNETTE_TEXTURE
      Mappings:
      Namespace Name Mixin selector
      named VIGNETTE_TEXTURE Lnet/minecraft/client/gui/screen/CreditsScreen;VIGNETTE_TEXTURE:Lnet/minecraft/util/Identifier;
      intermediary field_2633 Lnet/minecraft/class_445;field_2633:Lnet/minecraft/class_2960;
      official a Lfua;a:Lalz;
    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      named LOGGER Lnet/minecraft/client/gui/screen/CreditsScreen;LOGGER:Lorg/slf4j/Logger;
      intermediary field_2632 Lnet/minecraft/class_445;field_2632:Lorg/slf4j/Logger;
      official b Lfua;b:Lorg/slf4j/Logger;
    • SEPARATOR_LINE

      private static final Text SEPARATOR_LINE
      Mappings:
      Namespace Name Mixin selector
      named SEPARATOR_LINE Lnet/minecraft/client/gui/screen/CreditsScreen;SEPARATOR_LINE:Lnet/minecraft/text/Text;
      intermediary field_33955 Lnet/minecraft/class_445;field_33955:Lnet/minecraft/class_2561;
      official c Lfua;c:Lxv;
    • CENTERED_LINE_PREFIX

      private static final String CENTERED_LINE_PREFIX
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named CENTERED_LINE_PREFIX Lnet/minecraft/client/gui/screen/CreditsScreen;CENTERED_LINE_PREFIX:Ljava/lang/String;
      intermediary field_32273 Lnet/minecraft/class_445;field_32273:Ljava/lang/String;
      official d Lfua;d:Ljava/lang/String;
    • OBFUSCATION_PLACEHOLDER

      private static final String OBFUSCATION_PLACEHOLDER
      Mappings:
      Namespace Name Mixin selector
      named OBFUSCATION_PLACEHOLDER Lnet/minecraft/client/gui/screen/CreditsScreen;OBFUSCATION_PLACEHOLDER:Ljava/lang/String;
      intermediary field_24260 Lnet/minecraft/class_445;field_24260:Ljava/lang/String;
      official s Lfua;s:Ljava/lang/String;
    • SPACE_BAR_SPEED_MULTIPLIER

      private static final float SPACE_BAR_SPEED_MULTIPLIER
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named SPACE_BAR_SPEED_MULTIPLIER Lnet/minecraft/client/gui/screen/CreditsScreen;SPACE_BAR_SPEED_MULTIPLIER:F
      intermediary field_33957 Lnet/minecraft/class_445;field_33957:F
      official u Lfua;u:F
    • CTRL_KEY_SPEED_MULTIPLIER

      private static final float CTRL_KEY_SPEED_MULTIPLIER
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named CTRL_KEY_SPEED_MULTIPLIER Lnet/minecraft/client/gui/screen/CreditsScreen;CTRL_KEY_SPEED_MULTIPLIER:F
      intermediary field_34012 Lnet/minecraft/class_445;field_34012:F
      official v Lfua;v:F
    • END_POEM_TEXT_LOCATION

      private static final Identifier END_POEM_TEXT_LOCATION
      Mappings:
      Namespace Name Mixin selector
      named END_POEM_TEXT_LOCATION Lnet/minecraft/client/gui/screen/CreditsScreen;END_POEM_TEXT_LOCATION:Lnet/minecraft/util/Identifier;
      intermediary field_52137 Lnet/minecraft/class_445;field_52137:Lnet/minecraft/class_2960;
      official w Lfua;w:Lalz;
    • CREDITS_TEXT_LOCATION

      private static final Identifier CREDITS_TEXT_LOCATION
      Mappings:
      Namespace Name Mixin selector
      named CREDITS_TEXT_LOCATION Lnet/minecraft/client/gui/screen/CreditsScreen;CREDITS_TEXT_LOCATION:Lnet/minecraft/util/Identifier;
      intermediary field_52138 Lnet/minecraft/class_445;field_52138:Lnet/minecraft/class_2960;
      official x Lfua;x:Lalz;
    • POST_CREDITS_TEXT_LOCATION

      private static final Identifier POST_CREDITS_TEXT_LOCATION
      Mappings:
      Namespace Name Mixin selector
      named POST_CREDITS_TEXT_LOCATION Lnet/minecraft/client/gui/screen/CreditsScreen;POST_CREDITS_TEXT_LOCATION:Lnet/minecraft/util/Identifier;
      intermediary field_52139 Lnet/minecraft/class_445;field_52139:Lnet/minecraft/class_2960;
      official y Lfua;y:Lalz;
    • endCredits

      private final boolean endCredits
      Mappings:
      Namespace Name Mixin selector
      named endCredits Lnet/minecraft/client/gui/screen/CreditsScreen;endCredits:Z
      intermediary field_2627 Lnet/minecraft/class_445;field_2627:Z
      official z Lfua;z:Z
    • finishAction

      private final Runnable finishAction
      Mappings:
      Namespace Name Mixin selector
      named finishAction Lnet/minecraft/client/gui/screen/CreditsScreen;finishAction:Ljava/lang/Runnable;
      intermediary field_2630 Lnet/minecraft/class_445;field_2630:Ljava/lang/Runnable;
      official A Lfua;A:Ljava/lang/Runnable;
    • time

      private float time
      Mappings:
      Namespace Name Mixin selector
      named time Lnet/minecraft/client/gui/screen/CreditsScreen;time:F
      intermediary field_2628 Lnet/minecraft/class_445;field_2628:F
      official B Lfua;B:F
    • credits

      private List<OrderedText> credits
      Mappings:
      Namespace Name Mixin selector
      named credits Lnet/minecraft/client/gui/screen/CreditsScreen;credits:Ljava/util/List;
      intermediary field_2634 Lnet/minecraft/class_445;field_2634:Ljava/util/List;
      official C Lfua;C:Ljava/util/List;
    • centeredLines

      private IntSet centeredLines
      Mappings:
      Namespace Name Mixin selector
      named centeredLines Lnet/minecraft/client/gui/screen/CreditsScreen;centeredLines:Lit/unimi/dsi/fastutil/ints/IntSet;
      intermediary field_24261 Lnet/minecraft/class_445;field_24261:Lit/unimi/dsi/fastutil/ints/IntSet;
      official D Lfua;D:Lit/unimi/dsi/fastutil/ints/IntSet;
    • creditsHeight

      private int creditsHeight
      Mappings:
      Namespace Name Mixin selector
      named creditsHeight Lnet/minecraft/client/gui/screen/CreditsScreen;creditsHeight:I
      intermediary field_2629 Lnet/minecraft/class_445;field_2629:I
      official E Lfua;E:I
    • spaceKeyPressed

      private boolean spaceKeyPressed
      Mappings:
      Namespace Name Mixin selector
      named spaceKeyPressed Lnet/minecraft/client/gui/screen/CreditsScreen;spaceKeyPressed:Z
      intermediary field_34010 Lnet/minecraft/class_445;field_34010:Z
      official F Lfua;F:Z
    • pressedCtrlKeys

      private final IntSet pressedCtrlKeys
      Mappings:
      Namespace Name Mixin selector
      named pressedCtrlKeys Lnet/minecraft/client/gui/screen/CreditsScreen;pressedCtrlKeys:Lit/unimi/dsi/fastutil/ints/IntSet;
      intermediary field_34011 Lnet/minecraft/class_445;field_34011:Lit/unimi/dsi/fastutil/ints/IntSet;
      official G Lfua;G:Lit/unimi/dsi/fastutil/ints/IntSet;
    • speed

      private float speed
      Mappings:
      Namespace Name Mixin selector
      named speed Lnet/minecraft/client/gui/screen/CreditsScreen;speed:F
      intermediary field_2635 Lnet/minecraft/class_445;field_2635:F
      official H Lfua;H:F
    • baseSpeed

      private final float baseSpeed
      Mappings:
      Namespace Name Mixin selector
      named baseSpeed Lnet/minecraft/client/gui/screen/CreditsScreen;baseSpeed:F
      intermediary field_33954 Lnet/minecraft/class_445;field_33954:F
      official I Lfua;I:F
    • speedMultiplier

      private int speedMultiplier
      Mappings:
      Namespace Name Mixin selector
      named speedMultiplier Lnet/minecraft/client/gui/screen/CreditsScreen;speedMultiplier:I
      intermediary field_44778 Lnet/minecraft/class_445;field_44778:I
      official J Lfua;J:I
    • logoDrawer

      private final LogoDrawer logoDrawer
      Mappings:
      Namespace Name Mixin selector
      named logoDrawer Lnet/minecraft/client/gui/screen/CreditsScreen;logoDrawer:Lnet/minecraft/client/gui/LogoDrawer;
      intermediary field_41848 Lnet/minecraft/class_445;field_41848:Lnet/minecraft/class_8020;
      official K Lfua;K:Lfow;
  • Constructor Details

    • CreditsScreen

      public CreditsScreen(boolean endCredits, Runnable finishAction)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/gui/screen/CreditsScreen;<init>(ZLjava/lang/Runnable;)V
      intermediary <init> Lnet/minecraft/class_445;<init>(ZLjava/lang/Runnable;)V
      official <init> Lfua;<init>(ZLjava/lang/Runnable;)V
  • Method Details

    • getSpeed

      private float getSpeed()
      Mappings:
      Namespace Name Mixin selector
      named getSpeed Lnet/minecraft/client/gui/screen/CreditsScreen;getSpeed()F
      intermediary method_37369 Lnet/minecraft/class_445;method_37369()F
      official l Lfua;l()F
    • tick

      public void tick()
      Overrides:
      tick in class Screen
      Mappings:
      Namespace Name Mixin selector
      named tick Lnet/minecraft/client/gui/screen/Screen;tick()V
      intermediary method_25393 Lnet/minecraft/class_437;method_25393()V
      official e Lftx;e()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
      named keyPressed Lnet/minecraft/client/gui/Element;keyPressed(III)Z
      intermediary method_25404 Lnet/minecraft/class_364;method_25404(III)Z
      official a Lfqc;a(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
      named keyReleased Lnet/minecraft/client/gui/Element;keyReleased(III)Z
      intermediary method_16803 Lnet/minecraft/class_364;method_16803(III)Z
      official c Lfqc;c(III)Z
    • close

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

      private void closeScreen()
      Mappings:
      Namespace Name Mixin selector
      named closeScreen Lnet/minecraft/client/gui/screen/CreditsScreen;closeScreen()V
      intermediary method_2257 Lnet/minecraft/class_445;method_2257()V
      official E Lfua;E()V
    • init

      protected void init()
      Called when a screen should be initialized.

      This method is called when this screen is opened or resized.

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

      private void load(Identifier fileLocation, CreditsScreen.CreditsReader reader)
      Mappings:
      Namespace Name Mixin selector
      named load Lnet/minecraft/client/gui/screen/CreditsScreen;load(Lnet/minecraft/util/Identifier;Lnet/minecraft/client/gui/screen/CreditsScreen$CreditsReader;)V
      intermediary method_39775 Lnet/minecraft/class_445;method_39775(Lnet/minecraft/class_2960;Lnet/minecraft/class_445$class_6824;)V
      official a Lfua;a(Lalz;Lfua$a;)V
    • readPoem

      private void readPoem(Reader reader) throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      named readPoem Lnet/minecraft/client/gui/screen/CreditsScreen;readPoem(Ljava/io/Reader;)V
      intermediary method_39774 Lnet/minecraft/class_445;method_39774(Ljava/io/Reader;)V
      official a Lfua;a(Ljava/io/Reader;)V
    • readCredits

      private void readCredits(Reader reader)
      Mappings:
      Namespace Name Mixin selector
      named readCredits Lnet/minecraft/client/gui/screen/CreditsScreen;readCredits(Ljava/io/Reader;)V
      intermediary method_39776 Lnet/minecraft/class_445;method_39776(Ljava/io/Reader;)V
      official b Lfua;b(Ljava/io/Reader;)V
    • addEmptyLine

      private void addEmptyLine()
      Mappings:
      Namespace Name Mixin selector
      named addEmptyLine Lnet/minecraft/client/gui/screen/CreditsScreen;addEmptyLine()V
      intermediary method_37306 Lnet/minecraft/class_445;method_37306()V
      official F Lfua;F()V
    • addText

      private void addText(String text)
      Mappings:
      Namespace Name Mixin selector
      named addText Lnet/minecraft/client/gui/screen/CreditsScreen;addText(Ljava/lang/String;)V
      intermediary method_37305 Lnet/minecraft/class_445;method_37305(Ljava/lang/String;)V
      official a Lfua;a(Ljava/lang/String;)V
    • addText

      private void addText(Text text, boolean centered)
      Mappings:
      Namespace Name Mixin selector
      named addText Lnet/minecraft/client/gui/screen/CreditsScreen;addText(Lnet/minecraft/text/Text;Z)V
      intermediary method_37304 Lnet/minecraft/class_445;method_37304(Lnet/minecraft/class_2561;Z)V
      official a Lfua;a(Lxv;Z)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
      named render Lnet/minecraft/client/gui/Drawable;render(Lnet/minecraft/client/gui/DrawContext;IIF)V
      intermediary method_25394 Lnet/minecraft/class_4068;method_25394(Lnet/minecraft/class_332;IIF)V
      official a Lfpi;a(Lfnr;IIF)V
    • renderVignette

      private void renderVignette(DrawContext context)
      Mappings:
      Namespace Name Mixin selector
      named renderVignette Lnet/minecraft/client/gui/screen/CreditsScreen;renderVignette(Lnet/minecraft/client/gui/DrawContext;)V
      intermediary method_57738 Lnet/minecraft/class_445;method_57738(Lnet/minecraft/class_332;)V
      official c Lfua;c(Lfnr;)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
      named renderBackground Lnet/minecraft/client/gui/screen/Screen;renderBackground(Lnet/minecraft/client/gui/DrawContext;IIF)V
      intermediary method_25420 Lnet/minecraft/class_437;method_25420(Lnet/minecraft/class_332;IIF)V
      official b Lftx;b(Lfnr;IIF)V
    • renderDarkening

      protected void renderDarkening(DrawContext context, int x, int y, int width, int height)
      Overrides:
      renderDarkening in class Screen
      Mappings:
      Namespace Name Mixin selector
      named renderDarkening Lnet/minecraft/client/gui/screen/Screen;renderDarkening(Lnet/minecraft/client/gui/DrawContext;IIII)V
      intermediary method_57736 Lnet/minecraft/class_437;method_57736(Lnet/minecraft/class_332;IIII)V
      official a Lftx;a(Lfnr;IIII)V
    • shouldPause

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

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

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