@Environment(value=CLIENT) public class CreditsScreen extends Screen
| Modifier and Type | Field and Description |
|---|---|
private List<String> |
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 float |
speed |
private float |
time |
private static Identifier |
VIGNETTE_TEXTURE |
buttons, children, client, height, itemRenderer, passEvents, textRenderer, title, widthBACKGROUND_TEXTURE, GUI_ICONS_TEXTURE, STATS_ICON_TEXTURE| Constructor and Description |
|---|
CreditsScreen(boolean endCredits,
Runnable finishAction) |
| Modifier and Type | Method and Description |
|---|---|
private void |
close() |
protected void |
init() |
void |
onClose() |
void |
render(int mouseX,
int mouseY,
float delta) |
private void |
renderBackground(int mouseX,
int mouseY,
float tickDelta) |
void |
tick() |
addButton, addChild, children, getNarrationMessage, getTitle, getTooltipFromItem, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isPauseScreen, isSelectAll, isValidCharacterForName, keyPressed, removed, renderBackground, renderBackground, renderDirtBackground, renderTextHoverEffect, renderTooltip, renderTooltip, renderTooltip, resize, sendMessage, sendMessage, shouldCloseOnEsc, wrapScreenErrorgetFocused, isDragging, setDragging, setFocuseddrawCenteredString, drawHorizontalLine, drawSprite, drawString, drawTexture, drawTexture, drawTexture, drawTexture, drawTexturedQuad, drawVerticalLine, fill, fill, fillGradient, getZOffset, setZOffsetclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitchangeFocus, charTyped, focusOn, hoveredElement, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, setInitialFocusmouseMovedprivate 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 final boolean endCredits
private final Runnable finishAction
private float time
private int creditsHeight
private float speed
public CreditsScreen(boolean endCredits,
Runnable finishAction)