Class TitleScreenMixin
-
- All Implemented Interfaces:
-
net.minecraft.client.gui.components.Renderable
,net.minecraft.client.gui.components.TabOrderedElement
,net.minecraft.client.gui.components.events.ContainerEventHandler
,net.minecraft.client.gui.components.events.GuiEventListener
public class TitleScreenMixin extends Screen
-
-
Field Summary
Fields Modifier and Type Field Description private final static ResourceLocation
MINECRAFT_LOGO
private final static Logger
LOGGER
private final static Component
USAGE_NARRATION
protected final static CubeMap
CUBE_MAP
protected final static PanoramaRenderer
PANORAMA
public final static ResourceLocation
MENU_BACKGROUND
public final static ResourceLocation
HEADER_SEPARATOR
public final static ResourceLocation
FOOTER_SEPARATOR
private final static ResourceLocation
INWORLD_MENU_BACKGROUND
public final static ResourceLocation
INWORLD_HEADER_SEPARATOR
public final static ResourceLocation
INWORLD_FOOTER_SEPARATOR
protected final Component
title
private final List<GuiEventListener>
children
private final List<NarratableEntry>
narratables
protected Minecraft
minecraft
private boolean
initialized
public int
width
public int
height
public final List<Renderable>
renderables
protected Font
font
private final static long
NARRATE_SUPPRESS_AFTER_INIT_TIME
private final static long
NARRATE_DELAY_NARRATOR_ENABLED
private final static long
NARRATE_DELAY_MOUSE_MOVE
private final static long
NARRATE_DELAY_MOUSE_ACTION
private final static long
NARRATE_DELAY_KEYBOARD_ACTION
private final ScreenNarrationCollector
narrationState
private long
narrationSuppressTime
private long
nextNarrationTime
protected CycleButton<NarratorStatus>
narratorButton
private NarratableEntry
lastNarratable
private Screen.DeferredTooltipRendering
deferredTooltipRendering
protected final Executor
screenExecutor
public GuiEventListener
focused
public boolean
isDragging
public final static long
DOUBLE_CLICK_THRESHOLD_MS
-
Constructor Summary
Constructors Constructor Description TitleScreenMixin(Component title)
-
Method Summary
Modifier and Type Method Description Button
disableButtons(Button.Builder instance, Operation<Button> original)
void
refreshMenuBackground(CallbackInfo ci)
void
repositionButtons(CallbackInfo ci)
void
repositionMinecraftLogo(GuiGraphics graphics, int mouseX, int mouseY, float delta, CallbackInfo ci)
int
modifyTitlePosition(int screenWidth)
int
modifySplashPosition(int screenWidth)
void
cancelPanorama(GuiGraphics guiGraphics, float partialTick, CallbackInfo ci)
void
renderCustomBackground(GuiGraphics cx, int mouseX, int mouseY, float partialTick, CallbackInfo ci)
-
Methods inherited from class net.minecraft.client.gui.components.events.AbstractContainerEventHandler
getFocused, isDragging, setDragging, setFocused
-
Methods inherited from class net.minecraft.client.gui.screens.Screen
addRenderableOnly, addRenderableWidget, addWidget, added, afterKeyboardAction, afterMouseAction, afterMouseMove, changeFocus, children, clearFocus, clearTooltipForNextRenderPass, clearWidgets, findNarratableWidget, getBackgroundMusic, getMinecraft, getNarrationMessage, getRectangle, getTitle, getTooltipFromItem, getUsageNarration, handleComponentClicked, handleDelayedNarration, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isPauseScreen, isSelectAll, isValidCharacterForName, keyPressed, onClose, onFilesDrop, rebuildWidgets, removeWidget, removed, render, renderBackground, renderBlurredBackground, renderMenuBackground, renderMenuBackgroundTexture, renderPanorama, renderTransparentBackground, renderWithTooltip, repositionElements, resize, setInitialFocus, setTooltipForNextRenderPass, shouldCloseOnEsc, shouldNarrateNavigation, tick, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, updateNarratorStatus, wrapScreenError
-
Methods inherited from class net.minecraft.client.gui.components.events.ContainerEventHandler
charTyped, getChildAt, getCurrentFocusPath, isFocused, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, nextFocusPath
-
Methods inherited from class net.minecraft.client.gui.components.events.GuiEventListener
mouseMoved
-
Methods inherited from class net.minecraft.client.gui.components.TabOrderedElement
getTabOrderGroup
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
disableButtons
Button disableButtons(Button.Builder instance, Operation<Button> original)
-
refreshMenuBackground
void refreshMenuBackground(CallbackInfo ci)
-
repositionButtons
void repositionButtons(CallbackInfo ci)
-
repositionMinecraftLogo
void repositionMinecraftLogo(GuiGraphics graphics, int mouseX, int mouseY, float delta, CallbackInfo ci)
-
modifyTitlePosition
int modifyTitlePosition(int screenWidth)
-
modifySplashPosition
int modifySplashPosition(int screenWidth)
-
cancelPanorama
void cancelPanorama(GuiGraphics guiGraphics, float partialTick, CallbackInfo ci)
-
renderCustomBackground
void renderCustomBackground(GuiGraphics cx, int mouseX, int mouseY, float partialTick, CallbackInfo ci)
-
-
-
-