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,TickableElement
@Environment(CLIENT) public class CreditsScreen extends Screen
- Mappings:
Namespace Name official dxfintermediary net/minecraft/class_445named net/minecraft/client/gui/screen/CreditsScreen
-
Field Summary
Fields Modifier and Type Field Description private IntSetcenteredLinesprivate List<OrderedText>creditsprivate intcreditsHeightprivate static IdentifierEDITION_TITLE_TEXTUREprivate booleanendCreditsprivate RunnablefinishActionprivate static LoggerLOGGERprivate static IdentifierMINECRAFT_TITLE_TEXTUREprivate static StringOBFUSCATION_PLACEHOLDERprivate floatspeedprivate floattimeprivate static IdentifierVIGNETTE_TEXTUREFields inherited from class net.minecraft.client.gui.screen.Screen
buttons, children, 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 Constructor Description CreditsScreen(boolean endCredits, Runnable finishAction) -
Method Summary
Modifier and Type Method Description private voidclose()protected voidinit()Called when a screen should be initialized.voidonClose()voidrender(MatrixStack matrices, int mouseX, int mouseY, float delta)private voidrenderBackground(int mouseX, int mouseY, float tickDelta)voidtick()Methods inherited from class net.minecraft.client.gui.screen.Screen
addButton, addChild, children, filesDragged, getNarrationMessage, getTitle, getTooltipFromItem, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isPauseScreen, isSelectAll, isValidCharacterForName, keyPressed, removed, renderBackground, renderBackground, renderBackgroundTexture, renderOrderedTooltip, renderTextHoverEffect, renderTooltip, renderTooltip, renderTooltip, renderTooltip, resize, sendMessage, sendMessage, shouldCloseOnEsc, wrapScreenErrorMethods inherited from class net.minecraft.client.gui.AbstractParentElement
getFocused, isDragging, setDragging, setFocusedMethods inherited from class net.minecraft.client.gui.DrawableHelper
drawCenteredString, drawCenteredText, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, fill, fillGradient, fillGradient, getZOffset, method_29343, method_33284, 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, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, setInitialFocus
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official aLdxf;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 bLdxf;b:Lwl;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 cLdxf;c:Lwl;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 pLdxf;p:Lwl;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;
-
OBFUSCATION_PLACEHOLDER
- Mappings:
Namespace Name Mixin selector official qLdxf;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;
-
endCredits
private final boolean endCredits- Mappings:
Namespace Name Mixin selector official rLdxf;r:Zintermediary field_2627Lnet/minecraft/class_445;field_2627:Znamed endCreditsLnet/minecraft/client/gui/screen/CreditsScreen;endCredits:Z
-
finishAction
- Mappings:
Namespace Name Mixin selector official sLdxf;s: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 tLdxf;t:Fintermediary field_2628Lnet/minecraft/class_445;field_2628:Fnamed timeLnet/minecraft/client/gui/screen/CreditsScreen;time:F
-
credits
- Mappings:
Namespace Name Mixin selector official uLdxf;u: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 vLdxf;v: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 wLdxf;w:Iintermediary field_2629Lnet/minecraft/class_445;field_2629:Inamed creditsHeightLnet/minecraft/client/gui/screen/CreditsScreen;creditsHeight:I
-
speed
private float speed- Mappings:
Namespace Name Mixin selector official xLdxf;x:Fintermediary field_2635Lnet/minecraft/class_445;field_2635:Fnamed speedLnet/minecraft/client/gui/screen/CreditsScreen;speed:F
-
-
Constructor Details
-
CreditsScreen
- Mappings:
Namespace Name Mixin selector official <init>Ldxf;<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
-
tick
public void tick()- Specified by:
tickin interfaceTickableElement- Overrides:
tickin classScreen- Mappings:
Namespace Name Mixin selector official dLduh;d()Vintermediary method_25393Lnet/minecraft/class_4893;method_25393()Vnamed tickLnet/minecraft/client/gui/screen/TickableElement;tick()V
-
onClose
public void onClose() -
close
private void close()- Mappings:
Namespace Name Mixin selector official hLdxf;h()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.
-
renderBackground
private void renderBackground(int mouseX, int mouseY, float tickDelta)- Mappings:
Namespace Name Mixin selector official aLdxf;a(IIF)Vintermediary method_2258Lnet/minecraft/class_445;method_2258(IIF)Vnamed renderBackgroundLnet/minecraft/client/gui/screen/CreditsScreen;renderBackground(IIF)V
-
render
- Specified by:
renderin interfaceDrawable- Overrides:
renderin classScreen- Mappings:
Namespace Name Mixin selector official aLduk;a(Ldnl;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
-