类 Minecraft

所有已实现的接口:
WindowEventHandler, AutoCloseable, Executor, ProfilerMeasured, ProcessorHandle<Runnable>, IForgeMinecraft

public class Minecraft extends ReentrantBlockableEventLoop<Runnable> implements WindowEventHandler, IForgeMinecraft
  • 字段详细资料

    • instance

      static Minecraft instance
    • LOGGER

      private static final org.slf4j.Logger LOGGER
    • ON_OSX

      public static final boolean ON_OSX
    • MAX_TICKS_PER_UPDATE

      private static final int MAX_TICKS_PER_UPDATE
      另请参阅:
    • DEFAULT_FONT

      public static final ResourceLocation DEFAULT_FONT
    • UNIFORM_FONT

      public static final ResourceLocation UNIFORM_FONT
    • ALT_FONT

      public static final ResourceLocation ALT_FONT
    • REGIONAL_COMPLIANCIES

      private static final ResourceLocation REGIONAL_COMPLIANCIES
    • RESOURCE_RELOAD_INITIAL_TASK

      private static final CompletableFuture<Unit> RESOURCE_RELOAD_INITIAL_TASK
    • SOCIAL_INTERACTIONS_NOT_AVAILABLE

      private static final Component SOCIAL_INTERACTIONS_NOT_AVAILABLE
    • UPDATE_DRIVERS_ADVICE

      public static final String UPDATE_DRIVERS_ADVICE
      另请参阅:
    • resourcePackDirectory

      private final Path resourcePackDirectory
    • profileProperties

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

      public final TextureManager textureManager
    • fixerUpper

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

      private final VirtualScreen virtualScreen
    • window

      private final Window window
    • timer

      private final Timer timer
    • renderBuffers

      private final RenderBuffers renderBuffers
    • levelRenderer

      public final LevelRenderer levelRenderer
    • entityRenderDispatcher

      private final EntityRenderDispatcher entityRenderDispatcher
    • itemRenderer

      private final ItemRenderer itemRenderer
    • particleEngine

      public final ParticleEngine particleEngine
    • searchRegistry

      private final SearchRegistry searchRegistry
    • user

      private final User user
    • font

      public final Font font
    • fontFilterFishy

      public final Font fontFilterFishy
    • gameRenderer

      public final GameRenderer gameRenderer
    • debugRenderer

      public final DebugRenderer debugRenderer
    • progressListener

      private final AtomicReference<StoringChunkProgressListener> progressListener
    • gui

      public final Gui gui
    • options

      public final Options options
    • hotbarManager

      private final HotbarManager hotbarManager
    • mouseHandler

      public final MouseHandler mouseHandler
    • keyboardHandler

      public final KeyboardHandler keyboardHandler
    • lastInputType

      private InputType lastInputType
    • gameDirectory

      public final File gameDirectory
    • launchedVersion

      private final String launchedVersion
    • versionType

      private final String versionType
    • proxy

      private final Proxy proxy
    • levelSource

      private final LevelStorageSource levelSource
    • frameTimer

      public final FrameTimer frameTimer
    • is64bit

      private final boolean is64bit
    • demo

      private final boolean demo
    • allowsMultiplayer

      private final boolean allowsMultiplayer
    • allowsChat

      private final boolean allowsChat
    • resourceManager

      private final ReloadableResourceManager resourceManager
    • vanillaPackResources

      private final VanillaPackResources vanillaPackResources
    • downloadedPackSource

      private final DownloadedPackSource downloadedPackSource
    • resourcePackRepository

      private final PackRepository resourcePackRepository
    • languageManager

      private final LanguageManager languageManager
    • blockColors

      private final BlockColors blockColors
    • itemColors

      private final ItemColors itemColors
    • mainRenderTarget

      private final RenderTarget mainRenderTarget
    • soundManager

      private final SoundManager soundManager
    • musicManager

      private final MusicManager musicManager
    • fontManager

      private final FontManager fontManager
    • splashManager

      private final SplashManager splashManager
    • gpuWarnlistManager

      private final GpuWarnlistManager gpuWarnlistManager
    • regionalCompliancies

      private final PeriodicNotificationManager regionalCompliancies
    • authenticationService

      private final com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService authenticationService
    • minecraftSessionService

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

      private final com.mojang.authlib.minecraft.UserApiService userApiService
    • skinManager

      private final SkinManager skinManager
    • modelManager

      private final ModelManager modelManager
    • blockRenderer

      private final BlockRenderDispatcher blockRenderer
    • paintingTextures

      private final PaintingTextureManager paintingTextures
    • mobEffectTextures

      private final MobEffectTextureManager mobEffectTextures
    • toast

      private final ToastComponent toast
    • tutorial

      private final Tutorial tutorial
    • playerSocialManager

      private final PlayerSocialManager playerSocialManager
    • entityModels

      private final EntityModelSet entityModels
    • blockEntityRenderDispatcher

      private final BlockEntityRenderDispatcher blockEntityRenderDispatcher
    • telemetryManager

      private final ClientTelemetryManager telemetryManager
    • profileKeyPairManager

      private final ProfileKeyPairManager profileKeyPairManager
    • realmsDataFetcher

      private final RealmsDataFetcher realmsDataFetcher
    • quickPlayLog

      private final QuickPlayLog quickPlayLog
    • gameMode

      @Nullable public MultiPlayerGameMode gameMode
    • level

      @Nullable public ClientLevel level
    • player

      @Nullable public LocalPlayer player
    • singleplayerServer

      @Nullable private IntegratedServer singleplayerServer
    • pendingConnection

      @Nullable private Connection pendingConnection
    • isLocalServer

      private boolean isLocalServer
    • cameraEntity

      @Nullable public Entity cameraEntity
    • crosshairPickEntity

      @Nullable public Entity crosshairPickEntity
    • hitResult

      @Nullable public HitResult hitResult
    • rightClickDelay

      private int rightClickDelay
    • missTime

      protected int missTime
    • pause

      private volatile 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
    • overlay

      @Nullable private Overlay overlay
    • connectedToRealms

      private boolean connectedToRealms
    • gameThread

      private Thread gameThread
    • running

      private volatile boolean running
    • delayedCrash

      @Nullable private Supplier<CrashReport> delayedCrash
    • fps

      private static int fps
    • fpsString

      public String fpsString
    • frameTimeNs

      private long frameTimeNs
    • wireframe

      public boolean wireframe
    • chunkPath

      public boolean chunkPath
    • chunkVisibility

      public boolean chunkVisibility
    • smartCull

      public boolean smartCull
    • windowActive

      private boolean windowActive
    • progressTasks

      private final Queue<Runnable> progressTasks
    • pendingReload

      @Nullable private CompletableFuture<Void> pendingReload
    • socialInteractionsToast

      @Nullable private TutorialToast socialInteractionsToast
    • profiler

      private ProfilerFiller profiler
    • fpsPieRenderTicks

      private int fpsPieRenderTicks
    • fpsPieProfiler

      private final ContinuousProfiler fpsPieProfiler
    • fpsPieResults

      @Nullable private ProfileResults fpsPieResults
    • metricsRecorder

      private MetricsRecorder metricsRecorder
    • reloadStateTracker

      private final ResourceLoadStateTracker reloadStateTracker
    • savedCpuDuration

      private long savedCpuDuration
    • gpuUtilization

      private double gpuUtilization
    • currentFrameProfile

      @Nullable private TimerQuery.FrameProfile currentFrameProfile
    • realms32BitWarningStatus

      private final Realms32BitWarningStatus realms32BitWarningStatus
    • narrator

      private final GameNarrator narrator
    • chatListener

      private final ChatListener chatListener
    • reportingContext

      private ReportingContext reportingContext
    • debugPath

      private String debugPath
    • realPartialTick

      private float realPartialTick
  • 构造器详细资料

    • Minecraft

      public Minecraft(GameConfig pGameConfig)
  • 方法详细资料

    • onGameLoadFinished

      private void onGameLoadFinished()
    • setInitialScreen

      private void setInitialScreen(RealmsClient pRealmsClient, ReloadInstance pReloadInstance, GameConfig.QuickPlayData pQuickPlayData)
    • countryEqualsISO3

      private static boolean countryEqualsISO3(Object p_210783_)
    • updateTitle

      public void updateTitle()
    • createTitle

      private String createTitle()
    • createUserApiService

      private com.mojang.authlib.minecraft.UserApiService createUserApiService(com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService pAuthenticationService, GameConfig pGameConfig)
    • checkModStatus

      public static ModCheck checkModStatus()
    • rollbackResourcePacks

      private void rollbackResourcePacks(Throwable p_91240_)
    • clearResourcePacksOnError

      public void clearResourcePacksOnError(Throwable pThrowable, @Nullable Component pErrorMessage)
    • abortResourcePackRecovery

      private void abortResourcePackRecovery()
    • addResourcePackLoadFailToast

      private void addResourcePackLoadFailToast(@Nullable Component pMessage)
    • run

      public void run()
    • selectMainFont

      void selectMainFont(boolean pForced)
    • createSearchTrees

      public void createSearchTrees()
    • onFullscreenError

      private void onFullscreenError(int p_91114_, long p_91115_)
    • checkIs64Bit

      private static boolean checkIs64Bit()
    • getMainRenderTarget

      public RenderTarget getMainRenderTarget()
    • getLaunchedVersion

      public String getLaunchedVersion()
    • getVersionType

      public String getVersionType()
    • delayCrash

      public void delayCrash(CrashReport pReport)
    • delayCrashRaw

      public void delayCrashRaw(CrashReport pReport)
    • crash

      public static void crash(CrashReport pReport)
    • isEnforceUnicode

      public boolean isEnforceUnicode()
    • reloadResourcePacks

      public CompletableFuture<Void> reloadResourcePacks()
    • reloadResourcePacks

      private CompletableFuture<Void> reloadResourcePacks(boolean p_168020_)
    • selfTest

      private void selfTest()
    • getLevelSource

      public LevelStorageSource getLevelSource()
    • openChatScreen

      private void openChatScreen(String pDefaultText)
    • setScreen

      public void setScreen(@Nullable Screen pGuiScreen)
    • setOverlay

      public void setOverlay(@Nullable Overlay pLoadingGui)
    • destroy

      public void destroy()
    • close

      public void close()
      指定者:
      close 在接口中 AutoCloseable
      指定者:
      close 在接口中 ProcessorHandle<Runnable>
    • runTick

      private void runTick(boolean pRenderLevel)
    • shouldRenderFpsPie

      private boolean shouldRenderFpsPie()
    • constructProfiler

      private ProfilerFiller constructProfiler(boolean pRenderFpsPie, @Nullable SingleTickProfiler pSingleTickProfiler)
    • finishProfilers

      private void finishProfilers(boolean pRenderFpsPie, @Nullable SingleTickProfiler pProfiler)
    • resizeDisplay

      public void resizeDisplay()
      指定者:
      resizeDisplay 在接口中 WindowEventHandler
    • cursorEntered

      public void cursorEntered()
      指定者:
      cursorEntered 在接口中 WindowEventHandler
    • getFps

      public int getFps()
    • getFrameTimeNs

      public long getFrameTimeNs()
    • getFramerateLimit

      private int getFramerateLimit()
    • emergencySave

      public void emergencySave()
    • debugClientMetricsStart

      public boolean debugClientMetricsStart(Consumer<Component> p_167947_)
    • debugClientMetricsStop

      private void debugClientMetricsStop()
    • debugClientMetricsCancel

      private void debugClientMetricsCancel()
    • archiveProfilingReport

      private Path archiveProfilingReport(SystemReport pReport, List<Path> pPaths)
    • debugFpsMeterKeyPress

      public void debugFpsMeterKeyPress(int pKeyCount)
    • renderFpsMeter

      private void renderFpsMeter(GuiGraphics pGuiGraphics, ProfileResults pProfileResults)
    • stop

      public void stop()
    • isRunning

      public boolean isRunning()
    • pauseGame

      public void pauseGame(boolean pPauseOnly)
    • continueAttack

      private void continueAttack(boolean pLeftClick)
    • startAttack

      private boolean startAttack()
    • startUseItem

      private void startUseItem()
    • getMusicManager

      public MusicManager getMusicManager()
    • tick

      public void tick()
    • isMultiplayerServer

      private boolean isMultiplayerServer()
    • handleKeybinds

      private void handleKeybinds()
    • getTelemetryManager

      public ClientTelemetryManager getTelemetryManager()
    • getGpuUtilization

      public double getGpuUtilization()
    • getProfileKeyPairManager

      public ProfileKeyPairManager getProfileKeyPairManager()
    • createWorldOpenFlows

      public WorldOpenFlows createWorldOpenFlows()
    • doWorldLoad

      public void doWorldLoad(String pLevelId, LevelStorageSource.LevelStorageAccess pLevel, PackRepository pPackRepository, WorldStem pWorldStem, boolean pNewWorld)
    • setLevel

      public void setLevel(ClientLevel pLevelClient)
    • clearLevel

      public void clearLevel()
    • clearLevel

      public void clearLevel(Screen pScreen)
    • updateScreenAndTick

      private void updateScreenAndTick(Screen pScreen)
    • forceSetScreen

      public void forceSetScreen(Screen pScreen)
    • updateLevelInEngines

      private void updateLevelInEngines(@Nullable ClientLevel pLevel)
    • telemetryOptInExtra

      public boolean telemetryOptInExtra()
    • extraTelemetryAvailable

      public boolean extraTelemetryAvailable()
    • allowsTelemetry

      public boolean allowsTelemetry()
    • allowsMultiplayer

      public boolean allowsMultiplayer()
    • allowsRealms

      public boolean allowsRealms()
    • shouldShowBanNotice

      public boolean shouldShowBanNotice()
    • multiplayerBan

      @Nullable public com.mojang.authlib.minecraft.BanDetails multiplayerBan()
    • isBlocked

      public boolean isBlocked(UUID pPlayerUUID)
    • getChatStatus

      public Minecraft.ChatStatus getChatStatus()
    • isDemo

      public final boolean isDemo()
    • getConnection

      @Nullable public ClientPacketListener getConnection()
    • renderNames

      public static boolean renderNames()
    • useFancyGraphics

      public static boolean useFancyGraphics()
    • useShaderTransparency

      public static boolean useShaderTransparency()
    • useAmbientOcclusion

      public static boolean useAmbientOcclusion()
    • pickBlock

      private void pickBlock()
    • addCustomNbtData

      private void addCustomNbtData(ItemStack pStack, BlockEntity pBe)
    • fillReport

      public CrashReport fillReport(CrashReport pTheCrash)
    • fillReport

      public static void fillReport(@Nullable Minecraft pMinecraft, @Nullable LanguageManager pLanguageManager, String pLaunchVersion, @Nullable Options pOptions, CrashReport pReport)
    • fillSystemReport

      private static SystemReport fillSystemReport(SystemReport pReport, @Nullable Minecraft pMinecraft, @Nullable LanguageManager pLanguageManager, String pLaunchVersion, Options pOptions)
    • getInstance

      public static Minecraft getInstance()
    • delayTextureReload

      public CompletableFuture<Void> delayTextureReload()
    • updateReportEnvironment

      public void updateReportEnvironment(ReportEnvironment pReportEnvironment)
    • getCurrentServer

      @Nullable public ServerData getCurrentServer()
    • isLocalServer

      public boolean isLocalServer()
    • hasSingleplayerServer

      public boolean hasSingleplayerServer()
    • getSingleplayerServer

      @Nullable public IntegratedServer getSingleplayerServer()
    • isSingleplayer

      public boolean isSingleplayer()
    • getUser

      public User getUser()
    • getProfileProperties

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

      public Proxy getProxy()
    • getTextureManager

      public TextureManager getTextureManager()
    • getResourceManager

      public ResourceManager getResourceManager()
    • getResourcePackRepository

      public PackRepository getResourcePackRepository()
    • getVanillaPackResources

      public VanillaPackResources getVanillaPackResources()
    • getDownloadedPackSource

      public DownloadedPackSource getDownloadedPackSource()
    • getResourcePackDirectory

      public Path getResourcePackDirectory()
    • getLanguageManager

      public LanguageManager getLanguageManager()
    • getTextureAtlas

      public Function<ResourceLocation,TextureAtlasSprite> getTextureAtlas(ResourceLocation pLocation)
    • is64Bit

      public boolean is64Bit()
    • isPaused

      public boolean isPaused()
    • getGpuWarnlistManager

      public GpuWarnlistManager getGpuWarnlistManager()
    • getSoundManager

      public SoundManager getSoundManager()
    • getSituationalMusic

      public Music getSituationalMusic()
    • getMinecraftSessionService

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

      public SkinManager getSkinManager()
    • getCameraEntity

      @Nullable public Entity getCameraEntity()
    • setCameraEntity

      public void setCameraEntity(Entity pViewingEntity)
    • shouldEntityAppearGlowing

      public boolean shouldEntityAppearGlowing(Entity pEntity)
    • getRunningThread

      protected Thread getRunningThread()
      指定者:
      getRunningThread 在类中 BlockableEventLoop<Runnable>
    • wrapRunnable

      protected Runnable wrapRunnable(Runnable pRunnable)
      指定者:
      wrapRunnable 在类中 BlockableEventLoop<Runnable>
    • shouldRun

      protected boolean shouldRun(Runnable pRunnable)
      指定者:
      shouldRun 在类中 BlockableEventLoop<Runnable>
    • getBlockRenderer

      public BlockRenderDispatcher getBlockRenderer()
    • getEntityRenderDispatcher

      public EntityRenderDispatcher getEntityRenderDispatcher()
    • getBlockEntityRenderDispatcher

      public BlockEntityRenderDispatcher getBlockEntityRenderDispatcher()
    • getItemRenderer

      public ItemRenderer getItemRenderer()
    • getSearchTree

      public <T> SearchTree<T> getSearchTree(SearchRegistry.Key<T> pKey)
    • populateSearchTree

      public <T> void populateSearchTree(SearchRegistry.Key<T> pKey, List<T> pValues)
    • getFrameTimer

      public FrameTimer getFrameTimer()
    • isConnectedToRealms

      public boolean isConnectedToRealms()
    • setConnectedToRealms

      public void setConnectedToRealms(boolean pIsConnected)
    • getFixerUpper

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

      public float getFrameTime()
    • getDeltaFrameTime

      public float getDeltaFrameTime()
    • getBlockColors

      public BlockColors getBlockColors()
    • showOnlyReducedInfo

      public boolean showOnlyReducedInfo()
    • getToasts

      public ToastComponent getToasts()
    • getTutorial

      public Tutorial getTutorial()
    • isWindowActive

      public boolean isWindowActive()
    • getHotbarManager

      public HotbarManager getHotbarManager()
    • getModelManager

      public ModelManager getModelManager()
    • getPaintingTextures

      public PaintingTextureManager getPaintingTextures()
    • getMobEffectTextures

      public MobEffectTextureManager getMobEffectTextures()
    • setWindowActive

      public void setWindowActive(boolean pFocused)
      指定者:
      setWindowActive 在接口中 WindowEventHandler
    • grabPanoramixScreenshot

      public Component grabPanoramixScreenshot(File pGameDirectory, int pWidth, int pHeight)
    • grabHugeScreenshot

      private Component grabHugeScreenshot(File pGameDirectory, int pColumnWidth, int pRowHeight, int pWidth, int pHeight)
    • getProfiler

      public ProfilerFiller getProfiler()
    • getProgressListener

      @Nullable public StoringChunkProgressListener getProgressListener()
    • getSplashManager

      public SplashManager getSplashManager()
    • getOverlay

      @Nullable public Overlay getOverlay()
    • getPlayerSocialManager

      public PlayerSocialManager getPlayerSocialManager()
    • renderOnThread

      public boolean renderOnThread()
    • getWindow

      public Window getWindow()
    • renderBuffers

      public RenderBuffers renderBuffers()
    • updateMaxMipLevel

      public void updateMaxMipLevel(int pMipMapLevel)
    • getItemColors

      public ItemColors getItemColors()
    • getSearchTreeManager

      public SearchRegistry getSearchTreeManager()
    • getPartialTick

      public float getPartialTick()
    • getEntityModels

      public EntityModelSet getEntityModels()
    • isTextFilteringEnabled

      public boolean isTextFilteringEnabled()
    • prepareForMultiplayer

      public void prepareForMultiplayer()
    • getRealms32BitWarningStatus

      public Realms32BitWarningStatus getRealms32BitWarningStatus()
    • getProfileKeySignatureValidator

      @Nullable public SignatureValidator getProfileKeySignatureValidator()
    • getLastInputType

      public InputType getLastInputType()
    • setLastInputType

      public void setLastInputType(InputType pLastInputType)
    • getNarrator

      public GameNarrator getNarrator()
    • getChatListener

      public ChatListener getChatListener()
    • getReportingContext

      public ReportingContext getReportingContext()
    • realmsDataFetcher

      public RealmsDataFetcher realmsDataFetcher()
    • quickPlayLog

      public QuickPlayLog quickPlayLog()