public class Minecraft extends RecursiveEventLoop<java.lang.Runnable> implements ISnooperInfo, IWindowEventListener
| Constructor and Description | 
|---|
| Minecraft(GameConfiguration gameConfig) | 
isTaskRunning, run, shouldDeferTasksdeferTask, drainTasks, driveOne, driveUntil, dropTasks, enqueue, execute, getName, getQueueSize, isOnExecutionThread, runAsync, runImmediately, supplyAsync, threadYieldParkclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfunc_213141_a, inlineprivate static Minecraft instance
private static final org.apache.logging.log4j.Logger LOGGER
public static final boolean IS_RUNNING_ON_MAC
public static final ResourceLocation DEFAULT_FONT_RENDERER_NAME
public static final ResourceLocation standardGalacticFontRenderer
private static final java.util.concurrent.CompletableFuture<Unit> RESOURCE_RELOAD_INIT_TASK
private final java.io.File fileResourcepacks
private final com.mojang.authlib.properties.PropertyMap profileProperties
public final TextureManager textureManager
private final com.mojang.datafixers.DataFixer dataFixer
private final VirtualScreen virtualScreen
private final MainWindow mainWindow
private final Timer timer
private final Snooper snooper
private final RenderTypeBuffers renderTypeBuffers
public final WorldRenderer worldRenderer
private final EntityRendererManager renderManager
private final ItemRenderer itemRenderer
private final FirstPersonRenderer firstPersonRenderer
public final ParticleManager particles
private final SearchTreeManager searchTreeManager
private final Session session
public final FontRenderer fontRenderer
public final GameRenderer gameRenderer
public final DebugRenderer debugRenderer
private final java.util.concurrent.atomic.AtomicReference<TrackingChunkStatusListener> refChunkStatusListener
public final IngameGui ingameGUI
public final GameSettings gameSettings
private final CreativeSettings creativeSettings
public final MouseHelper mouseHelper
public final KeyboardListener keyboardListener
public final java.io.File gameDir
private final java.lang.String launchedVersion
private final java.lang.String versionType
private final java.net.Proxy proxy
private final SaveFormat saveFormat
public final FrameTimer frameTimer
private final boolean jvm64bit
private final boolean isDemo
private final DebugProfiler profiler
private final IReloadableResourceManager resourceManager
private final DownloadingPackFinder packFinder
private final ResourcePackList<ClientResourcePackInfo> resourcePackRepository
private final LanguageManager languageManager
private final BlockColors blockColors
private final ItemColors itemColors
private final Framebuffer framebuffer
private final SoundHandler soundHandler
private final MusicTicker musicTicker
private final FontResourceManager fontResourceMananger
private final Splashes splashes
private final com.mojang.authlib.minecraft.MinecraftSessionService sessionService
private final SkinManager skinManager
private final ModelManager modelManager
private final BlockRendererDispatcher blockRenderDispatcher
private final PaintingSpriteUploader paintingSprites
private final PotionSpriteUploader potionSprites
private final ToastGui toastGui
private final MinecraftGame game
private final Tutorial tutorial
public static byte[] memoryReserve
@Nullable public PlayerController playerController
@Nullable public ClientWorld world
@Nullable public ClientPlayerEntity player
@Nullable private IntegratedServer integratedServer
@Nullable private ServerData currentServerData
@Nullable private NetworkManager networkManager
private boolean integratedServerIsRunning
@Nullable public Entity renderViewEntity
@Nullable public Entity pointedEntity
@Nullable public RayTraceResult objectMouseOver
private int rightClickDelayTimer
protected int leftClickCounter
private boolean isGamePaused
private float renderPartialTicksPaused
private long startNanoTime
private long debugUpdateTime
private int fpsCounter
public boolean skipRenderWorld
@Nullable public Screen currentScreen
@Nullable public LoadingGui loadingGui
private boolean connectedToRealms
private java.lang.Thread thread
private volatile boolean running
@Nullable private CrashReport crashReporter
private static int debugFPS
public java.lang.String debug
public boolean debugWireframe
public boolean debugChunkPath
public boolean renderChunksMany
private boolean isWindowFocused
private final java.util.Queue<java.lang.Runnable> queueChunkTracking
@Nullable private java.util.concurrent.CompletableFuture<java.lang.Void> futureRefreshResources
private java.lang.String debugProfilerName
public Minecraft(GameConfiguration gameConfig)
public void func_230150_b_()
private java.lang.String func_230149_ax_()
public boolean func_230151_c_()
private void restoreResourcePacks(java.lang.Throwable throwableIn)
public void run()
public void populateSearchTreeManager()
private void disableVSyncAfterGlError(int error,
                                      long description)
private static boolean isJvm64bit()
public Framebuffer getFramebuffer()
public java.lang.String getVersion()
public java.lang.String getVersionType()
private void startTimerHackThread()
public void crashed(CrashReport crash)
public static void displayCrashReport(CrashReport report)
public boolean getForceUnicodeFont()
@Deprecated public java.util.concurrent.CompletableFuture<java.lang.Void> reloadResources()
private void checkMissingData()
public SaveFormat getSaveLoader()
public void displayGuiScreen(@Nullable
                             Screen guiScreenIn)
public void setLoadingGui(@Nullable
                          LoadingGui loadingGuiIn)
public void shutdownMinecraftApplet()
public void close()
close in interface java.lang.AutoCloseableclose in interface ITaskExecutor<java.lang.Runnable>private void runGameLoop(boolean renderWorldIn)
public void updateWindowSize()
updateWindowSize in interface IWindowEventListenerprivate int getFramerateLimit()
public void freeMemory()
void updateDebugProfilerName(int keyCount)
private void drawProfiler()
public void shutdown()
public boolean isRunning()
public void displayInGameMenu(boolean pauseOnly)
private void sendClickBlockToController(boolean leftClick)
private void clickMouse()
private void rightClickMouse()
public MusicTicker getMusicTicker()
public void runTick()
private void processKeyBinds()
public void launchIntegratedServer(java.lang.String folderName,
                                   java.lang.String worldName,
                                   @Nullable
                                   WorldSettings worldSettingsIn)
public void loadWorld(ClientWorld worldClientIn)
public void unloadWorld()
public void unloadWorld(Screen screenIn)
private void updateScreenTick(Screen screenIn)
private void updateWorldRenderer(@Nullable
                                 ClientWorld worldIn)
public final boolean isDemo()
@Nullable public ClientPlayNetHandler getConnection()
public static boolean isGuiEnabled()
public static boolean isFancyGraphicsEnabled()
public static boolean isAmbientOcclusionEnabled()
private void middleClickMouse()
public ItemStack storeTEInStack(ItemStack stack, TileEntity te)
public CrashReport addGraphicsAndWorldToCrashReport(CrashReport theCrash)
public static void fillCrashReport(@Nullable
                                   LanguageManager languageManagerIn,
                                   java.lang.String versionIn,
                                   @Nullable
                                   GameSettings settingsIn,
                                   CrashReport crashReportIn)
public static Minecraft getInstance()
@Deprecated public java.util.concurrent.CompletableFuture<java.lang.Void> scheduleResourcesRefresh()
public void fillSnooper(Snooper snooper)
fillSnooper in interface ISnooperInfoprivate java.lang.String getCurrentAction()
public void setServerData(@Nullable
                          ServerData serverDataIn)
@Nullable public ServerData getCurrentServerData()
public boolean isIntegratedServerRunning()
public boolean isSingleplayer()
@Nullable public IntegratedServer getIntegratedServer()
public Snooper getSnooper()
public Session getSession()
public com.mojang.authlib.properties.PropertyMap getProfileProperties()
public java.net.Proxy getProxy()
public TextureManager getTextureManager()
public IResourceManager getResourceManager()
public ResourcePackList<ClientResourcePackInfo> getResourcePackList()
public DownloadingPackFinder getPackFinder()
public java.io.File getFileResourcePacks()
public LanguageManager getLanguageManager()
public java.util.function.Function<ResourceLocation,TextureAtlasSprite> getAtlasSpriteGetter(ResourceLocation locationIn)
public boolean isJava64bit()
public boolean isGamePaused()
public SoundHandler getSoundHandler()
public MusicTicker.MusicType getAmbientMusicType()
public com.mojang.authlib.minecraft.MinecraftSessionService getSessionService()
public SkinManager getSkinManager()
@Nullable public Entity getRenderViewEntity()
public void setRenderViewEntity(Entity viewingEntity)
protected java.lang.Thread getExecutionThread()
getExecutionThread in class ThreadTaskExecutor<java.lang.Runnable>protected java.lang.Runnable wrapTask(java.lang.Runnable runnable)
wrapTask in class ThreadTaskExecutor<java.lang.Runnable>protected boolean canRun(java.lang.Runnable runnable)
canRun in class ThreadTaskExecutor<java.lang.Runnable>public BlockRendererDispatcher getBlockRendererDispatcher()
public EntityRendererManager getRenderManager()
public ItemRenderer getItemRenderer()
public FirstPersonRenderer getFirstPersonRenderer()
public <T> IMutableSearchTree<T> getSearchTree(SearchTreeManager.Key<T> key)
public FrameTimer getFrameTimer()
public boolean isConnectedToRealms()
public void setConnectedToRealms(boolean isConnected)
public com.mojang.datafixers.DataFixer getDataFixer()
public float getRenderPartialTicks()
public float getTickLength()
public BlockColors getBlockColors()
public boolean isReducedDebug()
public ToastGui getToastGui()
public Tutorial getTutorial()
public boolean isGameFocused()
public CreativeSettings getCreativeSettings()
public ModelManager getModelManager()
public FontResourceManager getFontResourceManager()
public PaintingSpriteUploader getPaintingSpriteUploader()
public PotionSpriteUploader getPotionSpriteUploader()
public void setGameFocused(boolean focused)
setGameFocused in interface IWindowEventListenerpublic IProfiler getProfiler()
public MinecraftGame getMinecraftGame()
public Splashes getSplashes()
@Nullable public LoadingGui getLoadingGui()
public boolean isRenderOnThread()
public MainWindow getMainWindow()
public RenderTypeBuffers getRenderTypeBuffers()
private static ClientResourcePackInfo makePackInfo(java.lang.String name, boolean isAlwaysEnabled, java.util.function.Supplier<IResourcePack> p_228011_2_, IResourcePack p_228011_3_, PackMetadataSection p_228011_4_, ResourcePackInfo.Priority priority)
private static java.util.function.Supplier<IResourcePack> wrapV3(java.util.function.Supplier<IResourcePack> p_228021_0_)
private static java.util.function.Supplier<IResourcePack> wrapV4(java.util.function.Supplier<IResourcePack> p_228022_0_)
public void setMipmapLevels(int p_228020_1_)
public ItemColors getItemColors()
public SearchTreeManager getSearchTreeManager()