Package net.minecraft.client.gui.screen
Class CreditsScreen
java.lang.Object
net.minecraft.client.gui.DrawableHelper
net.minecraft.client.gui.AbstractParentElement
net.minecraft.client.gui.screen.Screen
net.minecraft.client.gui.screen.CreditsScreen
- All Implemented Interfaces:
Drawable,Element,ParentElement
- Mappings:
Namespace Name official ecyintermediary net/minecraft/class_445named net/minecraft/client/gui/screen/CreditsScreen
-
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 static final Stringprivate IntSetprivate List<OrderedText>private intprivate static final floatprivate static final Identifierprivate final booleanprivate final Runnableprivate static final Loggerprivate static final intprivate static final Identifierprivate static final Stringprivate final IntSetprivate static final Textprivate static final floatprivate booleanprivate floatprivate floatprivate static final IdentifierFields inherited from class net.minecraft.client.gui.screen.Screen
client, height, itemRenderer, passEvents, textRenderer, title, widthFields inherited from class net.minecraft.client.gui.DrawableHelper
GUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidprivate voidprivate voidprivate voidclose()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, CreditsScreen.CreditsReader reader) voidonClose()private voidreadCredits(InputStreamReader inputStreamReader) private voidreadPoem(InputStreamReader inputStreamReader) voidrender(MatrixStack matrices, int mouseX, int mouseY, float delta) private voidvoidtick()Methods inherited from class net.minecraft.client.gui.screen.Screen
addDrawable, addDrawableChild, addElementNarrations, addScreenNarrations, addSelectableChild, applyKeyPressNarratorDelay, applyMouseMoveNarratorDelay, applyMousePressScrollNarratorDelay, applyNarratorModeChangeDelay, children, clearChildren, filesDragged, findSelectedElementData, getNarratedTitle, getTitle, getTooltipFromItem, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isPauseScreen, isSelectAll, isValidCharacterForName, narrateScreenIfNarrationEnabled, remove, removed, renderBackground, renderBackground, renderBackgroundTexture, renderOrderedTooltip, renderTextHoverEffect, renderTooltip, renderTooltip, renderTooltip, renderTooltip, resize, sendMessage, sendMessage, shouldCloseOnEsc, updateNarrator, wrapScreenErrorMethods inherited from class net.minecraft.client.gui.AbstractParentElement
getFocused, isDragging, setDragging, setFocusedMethods inherited from class net.minecraft.client.gui.DrawableHelper
drawCenteredText, drawCenteredText, drawCenteredTextWithShadow, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, drawWithOutline, drawWithShadow, fill, fillGradient, fillGradient, fillGradient, getZOffset, setZOffsetMethods 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.ParentElement
changeFocus, charTyped, focusOn, hoveredElement, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, setInitialFocus
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official aLecy;a:Lorg/apache/logging/log4j/Logger;intermediary field_2632Lnet/minecraft/class_445;field_2632:Lorg/apache/logging/log4j/Logger;named LOGGERLnet/minecraft/client/gui/screen/CreditsScreen;LOGGER:Lorg/apache/logging/log4j/Logger;
-
MINECRAFT_TITLE_TEXTURE
- Mappings:
Namespace Name Mixin selector official bLecy;b:Lyh;intermediary field_2626Lnet/minecraft/class_445;field_2626:Lnet/minecraft/class_2960;named MINECRAFT_TITLE_TEXTURELnet/minecraft/client/gui/screen/CreditsScreen;MINECRAFT_TITLE_TEXTURE:Lnet/minecraft/util/Identifier;
-
EDITION_TITLE_TEXTURE
- Mappings:
Namespace Name Mixin selector official cLecy;c:Lyh;intermediary field_2631Lnet/minecraft/class_445;field_2631:Lnet/minecraft/class_2960;named EDITION_TITLE_TEXTURELnet/minecraft/client/gui/screen/CreditsScreen;EDITION_TITLE_TEXTURE:Lnet/minecraft/util/Identifier;
-
VIGNETTE_TEXTURE
- Mappings:
Namespace Name Mixin selector official nLecy;n:Lyh;intermediary field_2633Lnet/minecraft/class_445;field_2633:Lnet/minecraft/class_2960;named VIGNETTE_TEXTURELnet/minecraft/client/gui/screen/CreditsScreen;VIGNETTE_TEXTURE:Lnet/minecraft/util/Identifier;
-
SEPARATOR_LINE
- Mappings:
Namespace Name Mixin selector official oLecy;o:Lpz;intermediary field_33955Lnet/minecraft/class_445;field_33955:Lnet/minecraft/class_2561;named SEPARATOR_LINELnet/minecraft/client/gui/screen/CreditsScreen;SEPARATOR_LINE:Lnet/minecraft/text/Text;
-
CENTERED_LINE_PREFIX
- See Also:
- Mappings:
Namespace Name Mixin selector official pLecy;p:Ljava/lang/String;intermediary field_32273Lnet/minecraft/class_445;field_32273:Ljava/lang/String;named CENTERED_LINE_PREFIXLnet/minecraft/client/gui/screen/CreditsScreen;CENTERED_LINE_PREFIX:Ljava/lang/String;
-
OBFUSCATION_PLACEHOLDER
- Mappings:
Namespace Name Mixin selector official qLecy;q:Ljava/lang/String;intermediary field_24260Lnet/minecraft/class_445;field_24260:Ljava/lang/String;named OBFUSCATION_PLACEHOLDERLnet/minecraft/client/gui/screen/CreditsScreen;OBFUSCATION_PLACEHOLDER:Ljava/lang/String;
-
MAX_WIDTH
private static final int MAX_WIDTH- See Also:
- Mappings:
Namespace Name Mixin selector official rLecy;r:Iintermediary field_33956Lnet/minecraft/class_445;field_33956:Inamed MAX_WIDTHLnet/minecraft/client/gui/screen/CreditsScreen;MAX_WIDTH:I
-
SPACE_BAR_SPEED_MULTIPLIER
private static final float SPACE_BAR_SPEED_MULTIPLIER- See Also:
- Mappings:
Namespace Name Mixin selector official sLecy;s:Fintermediary field_33957Lnet/minecraft/class_445;field_33957:Fnamed SPACE_BAR_SPEED_MULTIPLIERLnet/minecraft/client/gui/screen/CreditsScreen;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 tLecy;t:Fintermediary field_34012Lnet/minecraft/class_445;field_34012:Fnamed CTRL_KEY_SPEED_MULTIPLIERLnet/minecraft/client/gui/screen/CreditsScreen;CTRL_KEY_SPEED_MULTIPLIER:F
-
endCredits
private final boolean endCredits- Mappings:
Namespace Name Mixin selector official uLecy;u:Zintermediary field_2627Lnet/minecraft/class_445;field_2627:Znamed endCreditsLnet/minecraft/client/gui/screen/CreditsScreen;endCredits:Z
-
finishAction
- Mappings:
Namespace Name Mixin selector official vLecy;v:Ljava/lang/Runnable;intermediary field_2630Lnet/minecraft/class_445;field_2630:Ljava/lang/Runnable;named finishActionLnet/minecraft/client/gui/screen/CreditsScreen;finishAction:Ljava/lang/Runnable;
-
time
private float time- Mappings:
Namespace Name Mixin selector official wLecy;w:Fintermediary field_2628Lnet/minecraft/class_445;field_2628:Fnamed timeLnet/minecraft/client/gui/screen/CreditsScreen;time:F
-
credits
- Mappings:
Namespace Name Mixin selector official xLecy;x:Ljava/util/List;intermediary field_2634Lnet/minecraft/class_445;field_2634:Ljava/util/List;named creditsLnet/minecraft/client/gui/screen/CreditsScreen;credits:Ljava/util/List;
-
centeredLines
- Mappings:
Namespace Name Mixin selector official yLecy;y:Lit/unimi/dsi/fastutil/ints/IntSet;intermediary field_24261Lnet/minecraft/class_445;field_24261:Lit/unimi/dsi/fastutil/ints/IntSet;named centeredLinesLnet/minecraft/client/gui/screen/CreditsScreen;centeredLines:Lit/unimi/dsi/fastutil/ints/IntSet;
-
creditsHeight
private int creditsHeight- Mappings:
Namespace Name Mixin selector official zLecy;z:Iintermediary field_2629Lnet/minecraft/class_445;field_2629:Inamed creditsHeightLnet/minecraft/client/gui/screen/CreditsScreen;creditsHeight:I
-
spaceKeyPressed
private boolean spaceKeyPressed- Mappings:
Namespace Name Mixin selector official ALecy;A:Zintermediary field_34010Lnet/minecraft/class_445;field_34010:Znamed spaceKeyPressedLnet/minecraft/client/gui/screen/CreditsScreen;spaceKeyPressed:Z
-
pressedCtrlKeys
- Mappings:
Namespace Name Mixin selector official BLecy;B:Lit/unimi/dsi/fastutil/ints/IntSet;intermediary field_34011Lnet/minecraft/class_445;field_34011:Lit/unimi/dsi/fastutil/ints/IntSet;named pressedCtrlKeysLnet/minecraft/client/gui/screen/CreditsScreen;pressedCtrlKeys:Lit/unimi/dsi/fastutil/ints/IntSet;
-
speed
private float speed- Mappings:
Namespace Name Mixin selector official CLecy;C:Fintermediary field_2635Lnet/minecraft/class_445;field_2635:Fnamed speedLnet/minecraft/client/gui/screen/CreditsScreen;speed:F
-
baseSpeed
private final float baseSpeed- Mappings:
Namespace Name Mixin selector official DLecy;D:Fintermediary field_33954Lnet/minecraft/class_445;field_33954:Fnamed baseSpeedLnet/minecraft/client/gui/screen/CreditsScreen;baseSpeed:F
-
-
Constructor Details
-
CreditsScreen
- Mappings:
Namespace Name Mixin selector official <init>Lecy;<init>(ZLjava/lang/Runnable;)Vintermediary <init>Lnet/minecraft/class_445;<init>(ZLjava/lang/Runnable;)Vnamed <init>Lnet/minecraft/client/gui/screen/CreditsScreen;<init>(ZLjava/lang/Runnable;)V
-
-
Method Details
-
getSpeed
private float getSpeed()- Mappings:
Namespace Name Mixin selector official hLecy;h()Fintermediary method_37369Lnet/minecraft/class_445;method_37369()Fnamed getSpeedLnet/minecraft/client/gui/screen/CreditsScreen;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 aLdzy;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 bLdzy;b(III)Zintermediary method_16803Lnet/minecraft/class_364;method_16803(III)Znamed keyReleasedLnet/minecraft/client/gui/Element;keyReleased(III)Z
-
onClose
public void onClose() -
close
private void close()- Mappings:
Namespace Name Mixin selector official vLecy;v()Vintermediary method_2257Lnet/minecraft/class_445;method_2257()Vnamed closeLnet/minecraft/client/gui/screen/CreditsScreen;close()V
-
init
protected void init()Called when a screen should be initialized.This method is called when this screen is opened or resized.
-
load
- Mappings:
Namespace Name Mixin selector official aLecy;a(Ljava/lang/String;Lecy$a;)Vintermediary method_39775Lnet/minecraft/class_445;method_39775(Ljava/lang/String;Lnet/minecraft/class_445$class_6824;)Vnamed loadLnet/minecraft/client/gui/screen/CreditsScreen;load(Ljava/lang/String;Lnet/minecraft/client/gui/screen/CreditsScreen$CreditsReader;)V
-
readPoem
- Throws:
IOException- Mappings:
Namespace Name Mixin selector official aLecy;a(Ljava/io/InputStreamReader;)Vintermediary method_39774Lnet/minecraft/class_445;method_39774(Ljava/io/InputStreamReader;)Vnamed readPoemLnet/minecraft/client/gui/screen/CreditsScreen;readPoem(Ljava/io/InputStreamReader;)V
-
readCredits
- Mappings:
Namespace Name Mixin selector official bLecy;b(Ljava/io/InputStreamReader;)Vintermediary method_39776Lnet/minecraft/class_445;method_39776(Ljava/io/InputStreamReader;)Vnamed readCreditsLnet/minecraft/client/gui/screen/CreditsScreen;readCredits(Ljava/io/InputStreamReader;)V
-
addEmptyLine
private void addEmptyLine()- Mappings:
Namespace Name Mixin selector official wLecy;w()Vintermediary method_37306Lnet/minecraft/class_445;method_37306()Vnamed addEmptyLineLnet/minecraft/client/gui/screen/CreditsScreen;addEmptyLine()V
-
addText
- Mappings:
Namespace Name Mixin selector official bLecy;b(Ljava/lang/String;)Vintermediary method_37305Lnet/minecraft/class_445;method_37305(Ljava/lang/String;)Vnamed addTextLnet/minecraft/client/gui/screen/CreditsScreen;addText(Ljava/lang/String;)V
-
addText
- Mappings:
Namespace Name Mixin selector official aLecy;a(Lpz;Z)Vintermediary method_37304Lnet/minecraft/class_445;method_37304(Lnet/minecraft/class_2561;Z)Vnamed addTextLnet/minecraft/client/gui/screen/CreditsScreen;addText(Lnet/minecraft/text/Text;Z)V
-
renderBackground
private void renderBackground()- Mappings:
Namespace Name Mixin selector official xLecy;x()Vintermediary method_2258Lnet/minecraft/class_445;method_2258()Vnamed renderBackgroundLnet/minecraft/client/gui/screen/CreditsScreen;renderBackground()V
-
render
- Specified by:
renderin interfaceDrawable- Overrides:
renderin classScreen- Mappings:
Namespace Name Mixin selector official aLdzv;a(Ldsj;IIF)Vintermediary method_25394Lnet/minecraft/class_4068;method_25394(Lnet/minecraft/class_4587;IIF)Vnamed renderLnet/minecraft/client/gui/Drawable;render(Lnet/minecraft/client/util/math/MatrixStack;IIF)V
-