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 ResourceLocationMINECRAFT_LOGOprivate final static ComponentCREDIT_TEXTprivate final static ComponentCREDIT_TEXT_2private final static ComponentCREDIT_TEXT_NOTEprivate final static StringYOUTUBE_LINKprivate final static LoggerLOGGERprivate final static ComponentUSAGE_NARRATIONprotected final static CubeMapCUBE_MAPprotected final static PanoramaRendererPANORAMApublic final static ResourceLocationMENU_BACKGROUNDpublic final static ResourceLocationHEADER_SEPARATORpublic final static ResourceLocationFOOTER_SEPARATORprivate final static ResourceLocationINWORLD_MENU_BACKGROUNDpublic final static ResourceLocationINWORLD_HEADER_SEPARATORpublic final static ResourceLocationINWORLD_FOOTER_SEPARATORprotected final Componenttitleprivate final List<GuiEventListener>childrenprivate final List<NarratableEntry>narratablesprotected Minecraftminecraftprivate booleaninitializedpublic intwidthpublic intheightpublic final List<Renderable>renderablesprotected Fontfontprivate final static longNARRATE_SUPPRESS_AFTER_INIT_TIMEprivate final static longNARRATE_DELAY_NARRATOR_ENABLEDprivate final static longNARRATE_DELAY_MOUSE_MOVEprivate final static longNARRATE_DELAY_MOUSE_ACTIONprivate final static longNARRATE_DELAY_KEYBOARD_ACTIONprivate final ScreenNarrationCollectornarrationStateprivate longnarrationSuppressTimeprivate longnextNarrationTimeprotected CycleButton<NarratorStatus>narratorButtonprivate NarratableEntrylastNarratableprivate Screen.DeferredTooltipRenderingdeferredTooltipRenderingprotected final ExecutorscreenExecutorpublic GuiEventListenerfocusedpublic booleanisDraggingpublic final static longDOUBLE_CLICK_THRESHOLD_MS
-
Constructor Summary
Constructors Constructor Description TitleScreenMixin(Component title)
-
Method Summary
Modifier and Type Method Description ButtondisableButtons(Button.Builder instance, Operation<Button> original)voidrefreshMenuBackground(CallbackInfo ci)voidrepositionButtons(CallbackInfo ci)voidaddCredits(CallbackInfo ci)voidrepositionMinecraftLogo(GuiGraphics graphics, int mouseX, int mouseY, float delta, CallbackInfo ci)intmodifyTitlePosition(int screenWidth)intmodifySplashPosition(int screenWidth)voidcancelPanorama(GuiGraphics guiGraphics, float partialTick, CallbackInfo ci)voidrenderCustomBackground(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)
-
addCredits
void addCredits(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)
-
-
-
-