Class WinScreen

All Implemented Interfaces:
ContainerEventHandler, GuiEventListener, Renderable

public class WinScreen extends Screen
  • Field Details

    • LOGGER

      private static final org.slf4j.Logger LOGGER
    • LOGO_LOCATION

      private static final ResourceLocation LOGO_LOCATION
    • EDITION_LOCATION

      private static final ResourceLocation EDITION_LOCATION
    • VIGNETTE_LOCATION

      private static final ResourceLocation VIGNETTE_LOCATION
    • SECTION_HEADING

      private static final Component SECTION_HEADING
    • NAME_PREFIX

      private static final String NAME_PREFIX
      See Also:
    • OBFUSCATE_TOKEN

      private static final String OBFUSCATE_TOKEN
    • LOGO_WIDTH

      private static final int LOGO_WIDTH
      See Also:
    • SPEEDUP_FACTOR

      private static final float SPEEDUP_FACTOR
      See Also:
    • SPEEDUP_FACTOR_FAST

      private static final float SPEEDUP_FACTOR_FAST
      See Also:
    • poem

      private final boolean poem
    • onFinished

      private final Runnable onFinished
    • scroll

      private float scroll
    • lines

      private List<FormattedCharSequence> 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

      public WinScreen(boolean p_96877_, Runnable p_96878_)
  • Method Details

    • calculateScrollSpeed

      private float calculateScrollSpeed()
    • tick

      public void tick()
      Overrides:
      tick in class Screen
    • keyPressed

      public boolean keyPressed(int p_169469_, int p_169470_, int p_169471_)
      Specified by:
      keyPressed in interface ContainerEventHandler
      Specified by:
      keyPressed in interface GuiEventListener
      Overrides:
      keyPressed in class Screen
    • keyReleased

      public boolean keyReleased(int p_169476_, int p_169477_, int p_169478_)
    • onClose

      public void onClose()
      Overrides:
      onClose in class Screen
    • respawn

      private void respawn()
    • init

      protected void init()
      Overrides:
      init in class Screen
    • wrapCreditsIO

      private void wrapCreditsIO(String p_197399_, WinScreen.CreditsReader p_197400_)
    • addPoemFile

      private void addPoemFile(Reader p_232818_) throws IOException
      Throws:
      IOException
    • addCreditsFile

      private void addCreditsFile(Reader p_232820_)
    • addEmptyLine

      private void addEmptyLine()
    • addPoemLines

      private void addPoemLines(String p_181398_)
    • addCreditsLine

      private void addCreditsLine(Component p_169473_, boolean p_169474_)
    • renderBg

      private void renderBg()
    • render

      public void render(PoseStack p_96884_, int p_96885_, int p_96886_, float p_96887_)
      Specified by:
      render in interface Renderable
      Overrides:
      render in class Screen