Class Minecraft

    • Field Detail

      • instance

        private static Minecraft instance
      • LOGGER

        private static final org.apache.logging.log4j.Logger LOGGER
      • ON_OSX

        public static final boolean ON_OSX
      • RESOURCE_RELOAD_INITIAL_TASK

        private static final java.util.concurrent.CompletableFuture<Unit> RESOURCE_RELOAD_INITIAL_TASK
      • SOCIAL_INTERACTIONS_NOT_AVAILABLE

        private static final ITextComponent SOCIAL_INTERACTIONS_NOT_AVAILABLE
      • resourcePackDirectory

        private final java.io.File resourcePackDirectory
      • profileProperties

        private final com.mojang.authlib.properties.PropertyMap profileProperties
      • fixerUpper

        private final com.mojang.datafixers.DataFixer fixerUpper
      • timer

        private final Timer timer
      • snooper

        private final Snooper snooper
      • gameDirectory

        public final java.io.File gameDirectory
      • launchedVersion

        private final java.lang.String launchedVersion
      • versionType

        private final java.lang.String versionType
      • proxy

        private final java.net.Proxy proxy
      • levelSource

        private final SaveFormat levelSource
      • is64bit

        private final boolean is64bit
      • demo

        private final boolean demo
      • allowsMultiplayer

        private final boolean allowsMultiplayer
      • allowsChat

        private final boolean allowsChat
      • mainRenderTarget

        private final Framebuffer mainRenderTarget
      • splashManager

        private final Splashes splashManager
      • gpuWarnlistManager

        private final GPUWarning gpuWarnlistManager
      • minecraftSessionService

        private final com.mojang.authlib.minecraft.MinecraftSessionService minecraftSessionService
      • socialInteractionsService

        private final com.mojang.authlib.minecraft.SocialInteractionsService socialInteractionsService
      • tutorial

        private final Tutorial tutorial
      • playerSocialManager

        private final FilterManager playerSocialManager
      • reserve

        public static byte[] reserve
      • currentServer

        @Nullable
        private ServerData currentServer
      • pendingConnection

        @Nullable
        private NetworkManager pendingConnection
      • isLocalServer

        private boolean isLocalServer
      • cameraEntity

        @Nullable
        public Entity cameraEntity
      • crosshairPickEntity

        @Nullable
        public Entity crosshairPickEntity
      • rightClickDelay

        private int rightClickDelay
      • missTime

        protected int missTime
      • pause

        private boolean pause
      • pausePartialTick

        private float pausePartialTick
      • lastNanoTime

        private long lastNanoTime
      • lastTime

        private long lastTime
      • frames

        private int frames
      • noRender

        public boolean noRender
      • screen

        @Nullable
        public Screen screen
      • connectedToRealms

        private boolean connectedToRealms
      • gameThread

        private java.lang.Thread gameThread
      • running

        private volatile boolean running
      • delayedCrash

        @Nullable
        private CrashReport delayedCrash
      • fps

        private static int fps
      • fpsString

        public java.lang.String fpsString
      • chunkPath

        public boolean chunkPath
      • chunkVisibility

        public boolean chunkVisibility
      • smartCull

        public boolean smartCull
      • windowActive

        private boolean windowActive
      • progressTasks

        private final java.util.Queue<java.lang.Runnable> progressTasks
      • pendingReload

        @Nullable
        private java.util.concurrent.CompletableFuture<java.lang.Void> pendingReload
      • socialInteractionsToast

        @Nullable
        private TutorialToast socialInteractionsToast
      • fpsPieRenderTicks

        private int fpsPieRenderTicks
      • fpsPieProfiler

        private final TimeTracker fpsPieProfiler
      • debugPath

        private java.lang.String debugPath
    • Method Detail

      • updateTitle

        public void updateTitle()
      • createTitle

        private java.lang.String createTitle()
      • createSocialInteractions

        private com.mojang.authlib.minecraft.SocialInteractionsService createSocialInteractions​(com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService p_244735_1_,
                                                                                                GameConfiguration p_244735_2_)
      • isProbablyModded

        public boolean isProbablyModded()
      • rollbackResourcePacks

        private void rollbackResourcePacks​(java.lang.Throwable p_229988_1_)
      • clearResourcePacksOnError

        public void clearResourcePacksOnError​(java.lang.Throwable p_243208_1_,
                                              @Nullable
                                              ITextComponent p_243208_2_)
      • run

        public void run()
      • selectMainFont

        void selectMainFont​(boolean p_238209_1_)
      • createSearchTrees

        public void createSearchTrees()
      • onFullscreenError

        private void onFullscreenError​(int p_195545_1_,
                                       long p_195545_2_)
      • checkIs64Bit

        private static boolean checkIs64Bit()
      • getMainRenderTarget

        public Framebuffer getMainRenderTarget()
      • getLaunchedVersion

        public java.lang.String getLaunchedVersion()
      • getVersionType

        public java.lang.String getVersionType()
      • delayCrash

        public void delayCrash​(CrashReport p_71404_1_)
      • crash

        public static void crash​(CrashReport p_71377_0_)
      • isEnforceUnicode

        public boolean isEnforceUnicode()
      • reloadResourcePacks

        @Deprecated
        public java.util.concurrent.CompletableFuture<java.lang.Void> reloadResourcePacks()
        Deprecated.
      • selfTest

        private void selfTest()
      • getLevelSource

        public SaveFormat getLevelSource()
      • openChatScreen

        private void openChatScreen​(java.lang.String p_238207_1_)
      • setScreen

        public void setScreen​(@Nullable
                              Screen p_147108_1_)
      • setOverlay

        public void setOverlay​(@Nullable
                               LoadingGui p_213268_1_)
      • destroy

        public void destroy()
      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface ITaskExecutor<java.lang.Runnable>
      • runTick

        private void runTick​(boolean p_195542_1_)
      • shouldRenderFpsPie

        private boolean shouldRenderFpsPie()
      • startProfilers

        private void startProfilers​(boolean p_238201_1_,
                                    @Nullable
                                    LongTickDetector p_238201_2_)
      • finishProfilers

        private void finishProfilers​(boolean p_238210_1_,
                                     @Nullable
                                     LongTickDetector p_238210_2_)
      • getFramerateLimit

        private int getFramerateLimit()
      • emergencySave

        public void emergencySave()
      • debugFpsMeterKeyPress

        void debugFpsMeterKeyPress​(int p_71383_1_)
      • stop

        public void stop()
      • isRunning

        public boolean isRunning()
      • pauseGame

        public void pauseGame​(boolean p_71385_1_)
      • continueAttack

        private void continueAttack​(boolean p_147115_1_)
      • startAttack

        private void startAttack()
      • startUseItem

        private void startUseItem()
      • getMusicManager

        public MusicTicker getMusicManager()
      • tick

        public void tick()
      • isMultiplayerServer

        private boolean isMultiplayerServer()
      • handleKeybinds

        private void handleKeybinds()
      • loadLevel

        public void loadLevel​(java.lang.String p_238191_1_)
      • displayExperimentalConfirmationDialog

        private void displayExperimentalConfirmationDialog​(Minecraft.WorldSelectionType p_241559_1_,
                                                           java.lang.String p_241559_2_,
                                                           boolean p_241559_3_,
                                                           java.lang.Runnable p_241559_4_)
      • setLevel

        public void setLevel​(ClientWorld p_71403_1_)
      • clearLevel

        public void clearLevel()
      • clearLevel

        public void clearLevel​(Screen p_213231_1_)
      • updateScreenAndTick

        private void updateScreenAndTick​(Screen p_213241_1_)
      • forceSetScreen

        public void forceSetScreen​(Screen p_241562_1_)
      • updateLevelInEngines

        private void updateLevelInEngines​(@Nullable
                                          ClientWorld p_213257_1_)
      • allowsMultiplayer

        public boolean allowsMultiplayer()
      • isBlocked

        public boolean isBlocked​(java.util.UUID p_238198_1_)
      • allowsChat

        public boolean allowsChat()
      • isDemo

        public final boolean isDemo()
      • renderNames

        public static boolean renderNames()
      • useFancyGraphics

        public static boolean useFancyGraphics()
      • useShaderTransparency

        public static boolean useShaderTransparency()
      • useAmbientOcclusion

        public static boolean useAmbientOcclusion()
      • pickBlock

        private void pickBlock()
      • getInstance

        public static Minecraft getInstance()
      • delayTextureReload

        @Deprecated
        public java.util.concurrent.CompletableFuture<java.lang.Void> delayTextureReload()
        Deprecated.
      • getCurrentSnooperAction

        private java.lang.String getCurrentSnooperAction()
      • setCurrentServer

        public void setCurrentServer​(@Nullable
                                     ServerData p_71351_1_)
      • getCurrentServer

        @Nullable
        public ServerData getCurrentServer()
      • isLocalServer

        public boolean isLocalServer()
      • hasSingleplayerServer

        public boolean hasSingleplayerServer()
      • getSingleplayerServer

        @Nullable
        public IntegratedServer getSingleplayerServer()
      • getSnooper

        public Snooper getSnooper()
      • getUser

        public Session getUser()
      • getProfileProperties

        public com.mojang.authlib.properties.PropertyMap getProfileProperties()
      • getProxy

        public java.net.Proxy getProxy()
      • getResourcePackRepository

        public ResourcePackList getResourcePackRepository()
      • getResourcePackDirectory

        public java.io.File getResourcePackDirectory()
      • is64Bit

        public boolean is64Bit()
      • isPaused

        public boolean isPaused()
      • getGpuWarnlistManager

        public GPUWarning getGpuWarnlistManager()
      • getMinecraftSessionService

        public com.mojang.authlib.minecraft.MinecraftSessionService getMinecraftSessionService()
      • getCameraEntity

        @Nullable
        public Entity getCameraEntity()
      • setCameraEntity

        public void setCameraEntity​(Entity p_175607_1_)
      • shouldEntityAppearGlowing

        public boolean shouldEntityAppearGlowing​(Entity p_238206_1_)
      • wrapRunnable

        protected java.lang.Runnable wrapRunnable​(java.lang.Runnable p_212875_1_)
        Specified by:
        wrapRunnable in class ThreadTaskExecutor<java.lang.Runnable>
      • shouldRun

        protected boolean shouldRun​(java.lang.Runnable p_212874_1_)
        Specified by:
        shouldRun in class ThreadTaskExecutor<java.lang.Runnable>
      • getFrameTimer

        public FrameTimer getFrameTimer()
      • isConnectedToRealms

        public boolean isConnectedToRealms()
      • setConnectedToRealms

        public void setConnectedToRealms​(boolean p_181537_1_)
      • getFixerUpper

        public com.mojang.datafixers.DataFixer getFixerUpper()
      • getFrameTime

        public float getFrameTime()
      • getDeltaFrameTime

        public float getDeltaFrameTime()
      • showOnlyReducedInfo

        public boolean showOnlyReducedInfo()
      • getToasts

        public ToastGui getToasts()
      • getTutorial

        public Tutorial getTutorial()
      • isWindowActive

        public boolean isWindowActive()
      • getProfiler

        public IProfiler getProfiler()
      • getSplashManager

        public Splashes getSplashManager()
      • getOverlay

        @Nullable
        public LoadingGui getOverlay()
      • getPlayerSocialManager

        public FilterManager getPlayerSocialManager()
      • renderOnThread

        public boolean renderOnThread()
      • adaptV3

        private static java.util.function.Supplier<IResourcePack> adaptV3​(java.util.function.Supplier<IResourcePack> p_228021_0_)
      • adaptV4

        private static java.util.function.Supplier<IResourcePack> adaptV4​(java.util.function.Supplier<IResourcePack> p_228022_0_)
      • updateMaxMipLevel

        public void updateMaxMipLevel​(int p_228020_1_)
      • getItemColors

        public ItemColors getItemColors()