@Environment(value=CLIENT) public class CreditsScreen extends Screen
Modifier and Type | Field and Description |
---|---|
private it.unimi.dsi.fastutil.ints.IntSet |
centeredLines |
private List<OrderedText> |
credits |
private int |
creditsHeight |
private static Identifier |
EDITION_TITLE_TEXTURE |
private boolean |
endCredits |
private Runnable |
finishAction |
private static Logger |
LOGGER |
private static Identifier |
MINECRAFT_TITLE_TEXTURE |
private static String |
OBFUSCATION_PLACEHOLDER |
private float |
speed |
private float |
time |
private static Identifier |
VIGNETTE_TEXTURE |
buttons, children, client, height, itemRenderer, passEvents, textRenderer, title, width
GUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE
Constructor and Description |
---|
CreditsScreen(boolean endCredits,
Runnable finishAction) |
Modifier and Type | Method and Description |
---|---|
private void |
close() |
protected void |
init()
Called when a screen should be initialized.
|
void |
onClose() |
void |
render(MatrixStack matrices,
int mouseX,
int mouseY,
float delta) |
private void |
renderBackground(int mouseX,
int mouseY,
float tickDelta) |
void |
tick() |
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, resize, sendMessage, sendMessage, shouldCloseOnEsc, wrapScreenError
getFocused, isDragging, setDragging, setFocused
drawCenteredString, drawCenteredText, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, fill, fillGradient, fillGradient, getZOffset, method_29343, setZOffset
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
changeFocus, charTyped, focusOn, hoveredElement, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, setInitialFocus
mouseMoved
private static final Logger LOGGER
private static final Identifier MINECRAFT_TITLE_TEXTURE
private static final Identifier EDITION_TITLE_TEXTURE
private static final Identifier VIGNETTE_TEXTURE
private static final String OBFUSCATION_PLACEHOLDER
private final boolean endCredits
private final Runnable finishAction
private float time
private List<OrderedText> credits
private it.unimi.dsi.fastutil.ints.IntSet centeredLines
private int creditsHeight
private float speed
public CreditsScreen(boolean endCredits, Runnable finishAction)
public void tick()
tick
in interface TickableElement
tick
in class Screen
private void close()
protected void init()
This method is called when this screen is opened
or resized.
private void renderBackground(int mouseX, int mouseY, float tickDelta)
public void render(MatrixStack matrices, int mouseX, int mouseY, float delta)