public class Minecraft extends RecursiveEventLoop<java.lang.Runnable> implements ISnooperInfo, IWindowEventListener
修飾子とタイプ | フィールドと説明 |
---|---|
Screen |
currentScreen |
java.lang.String |
debug |
boolean |
debugChunkPath |
DebugRenderer |
debugRenderer |
boolean |
debugWireframe |
static ResourceLocation |
DEFAULT_FONT_RENDERER_NAME |
FontRenderer |
fontRenderer |
FrameTimer |
frameTimer
The FrameTimer's instance
|
java.io.File |
gameDir |
GameRenderer |
gameRenderer |
GameSettings |
gameSettings |
IngameGui |
ingameGUI |
static boolean |
IS_RUNNING_ON_MAC |
KeyboardListener |
keyboardListener |
protected int |
leftClickCounter |
LoadingGui |
loadingGui |
static byte[] |
memoryReserve |
MouseHelper |
mouseHelper |
RayTraceResult |
objectMouseOver |
ParticleManager |
particles |
ClientPlayerEntity |
player |
PlayerController |
playerController |
Entity |
pointedEntity |
boolean |
renderChunksMany |
Entity |
renderViewEntity |
boolean |
skipRenderWorld |
static ResourceLocation |
standardGalacticFontRenderer |
TextureManager |
textureManager |
ClientWorld |
world |
WorldRenderer |
worldRenderer |
コンストラクタと説明 |
---|
Minecraft(GameConfiguration gameConfig) |
修飾子とタイプ | メソッドと説明 |
---|---|
CrashReport |
addGraphicsAndWorldToCrashReport(CrashReport theCrash)
adds core server Info (GL version , Texture pack, isModded, type), and the worldInfo to the crash report
|
protected boolean |
canRun(java.lang.Runnable runnable) |
void |
close() |
void |
crashed(CrashReport crash) |
static void |
displayCrashReport(CrashReport report)
Wrapper around displayCrashReportInternal
|
void |
displayGuiScreen(Screen guiScreenIn)
Sets the argument GuiScreen as the main (topmost visible) screen.
|
void |
displayInGameMenu(boolean pauseOnly)
Displays the ingame menu
|
static void |
fillCrashReport(LanguageManager languageManagerIn,
java.lang.String versionIn,
GameSettings settingsIn,
CrashReport crashReportIn) |
void |
fillSnooper(Snooper snooper) |
void |
freeMemory()
Attempts to free as much memory as possible, including leaving the world and running the garbage collector.
|
void |
func_230150_b_() |
boolean |
func_230151_c_() |
MusicTicker.MusicType |
getAmbientMusicType() |
java.util.function.Function<ResourceLocation,TextureAtlasSprite> |
getAtlasSpriteGetter(ResourceLocation locationIn) |
BlockColors |
getBlockColors() |
BlockRendererDispatcher |
getBlockRendererDispatcher() |
ClientPlayNetHandler |
getConnection() |
CreativeSettings |
getCreativeSettings() |
ServerData |
getCurrentServerData() |
com.mojang.datafixers.DataFixer |
getDataFixer() |
protected java.lang.Thread |
getExecutionThread() |
java.io.File |
getFileResourcePacks() |
FirstPersonRenderer |
getFirstPersonRenderer() |
FontResourceManager |
getFontResourceManager() |
boolean |
getForceUnicodeFont() |
Framebuffer |
getFramebuffer() |
FrameTimer |
getFrameTimer()
Return the FrameTimer's instance
|
static Minecraft |
getInstance()
Return the singleton Minecraft instance for the game
|
IntegratedServer |
getIntegratedServer()
Returns the currently running integrated server
|
ItemColors |
getItemColors() |
ItemRenderer |
getItemRenderer() |
LanguageManager |
getLanguageManager() |
LoadingGui |
getLoadingGui() |
MainWindow |
getMainWindow() |
MinecraftGame |
getMinecraftGame() |
ModelManager |
getModelManager() |
MusicTicker |
getMusicTicker()
Return the musicTicker's instance
|
DownloadingPackFinder |
getPackFinder() |
PaintingSpriteUploader |
getPaintingSpriteUploader()
Gets the sprite uploader used for paintings.
|
PotionSpriteUploader |
getPotionSpriteUploader()
Gets the sprite uploader used for potions.
|
com.mojang.authlib.properties.PropertyMap |
getProfileProperties()
Return the player's GameProfile properties
|
IProfiler |
getProfiler() |
java.net.Proxy |
getProxy() |
EntityRendererManager |
getRenderManager() |
float |
getRenderPartialTicks() |
RenderTypeBuffers |
getRenderTypeBuffers() |
Entity |
getRenderViewEntity() |
IResourceManager |
getResourceManager() |
ResourcePackList<ClientResourcePackInfo> |
getResourcePackList() |
SaveFormat |
getSaveLoader()
Returns the save loader that is currently being used
|
<T> IMutableSearchTree<T> |
getSearchTree(SearchTreeManager.Key<T> key) |
SearchTreeManager |
getSearchTreeManager() |
Session |
getSession() |
com.mojang.authlib.minecraft.MinecraftSessionService |
getSessionService() |
SkinManager |
getSkinManager() |
Snooper |
getSnooper()
Returns the PlayerUsageSnooper instance.
|
SoundHandler |
getSoundHandler() |
Splashes |
getSplashes() |
TextureManager |
getTextureManager() |
float |
getTickLength() |
ToastGui |
getToastGui() |
Tutorial |
getTutorial() |
java.lang.String |
getVersion()
Gets the version that Minecraft was launched under (the name of a version JSON).
|
java.lang.String |
getVersionType()
Gets the type of version that Minecraft was launched under (as specified in the version JSON).
|
static boolean |
isAmbientOcclusionEnabled()
Returns if ambient occlusion is enabled
|
boolean |
isConnectedToRealms()
Return true if the player is connected to a realms server
|
boolean |
isDemo()
Gets whether this is a demo or not.
|
static boolean |
isFancyGraphicsEnabled() |
boolean |
isGameFocused() |
boolean |
isGamePaused() |
static boolean |
isGuiEnabled() |
boolean |
isIntegratedServerRunning() |
boolean |
isJava64bit() |
boolean |
isReducedDebug()
Whether to use reduced debug info
|
boolean |
isRenderOnThread() |
boolean |
isRunning() |
boolean |
isSingleplayer()
Returns true if there is only one player playing, and the current server is the integrated one.
|
void |
launchIntegratedServer(java.lang.String folderName,
java.lang.String worldName,
WorldSettings worldSettingsIn)
Arguments: World foldername, World ingame name, WorldSettings
|
void |
loadWorld(ClientWorld worldClientIn)
unloads the current world first
|
void |
populateSearchTreeManager()
Fills
searchTreeManager with the current item and recipe registry contents. |
java.util.concurrent.CompletableFuture<java.lang.Void> |
reloadResources()
非推奨です。
|
void |
run() |
void |
runTick()
Runs the current tick.
|
java.util.concurrent.CompletableFuture<java.lang.Void> |
scheduleResourcesRefresh()
非推奨です。
|
void |
setConnectedToRealms(boolean isConnected)
Set if the player is connected to a realms server
|
void |
setGameFocused(boolean focused) |
void |
setLoadingGui(LoadingGui loadingGuiIn) |
void |
setMipmapLevels(int p_228020_1_) |
void |
setRenderViewEntity(Entity viewingEntity) |
void |
setServerData(ServerData serverDataIn)
Set the current ServerData instance.
|
void |
shutdown()
Called when the window is closing.
|
void |
shutdownMinecraftApplet()
Shuts down the minecraft applet by stopping the resource downloads, and clearing up GL stuff; called when the
application (or web page) is exited.
|
ItemStack |
storeTEInStack(ItemStack stack,
TileEntity te) |
void |
unloadWorld() |
void |
unloadWorld(Screen screenIn) |
void |
updateWindowSize() |
protected java.lang.Runnable |
wrapTask(java.lang.Runnable runnable) |
isTaskRunning, run, shouldDeferTasks
deferTask, drainTasks, driveOne, driveUntil, dropTasks, enqueue, execute, getName, getQueueSize, isOnExecutionThread, runAsync, runImmediately, supplyAsync, threadYieldPark
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
func_213141_a, inline
public static final boolean IS_RUNNING_ON_MAC
public static final ResourceLocation DEFAULT_FONT_RENDERER_NAME
public static final ResourceLocation standardGalacticFontRenderer
public final TextureManager textureManager
public final WorldRenderer worldRenderer
public final ParticleManager particles
public final FontRenderer fontRenderer
public final GameRenderer gameRenderer
public final DebugRenderer debugRenderer
public final IngameGui ingameGUI
public final GameSettings gameSettings
public final MouseHelper mouseHelper
public final KeyboardListener keyboardListener
public final java.io.File gameDir
public final FrameTimer frameTimer
public static byte[] memoryReserve
@Nullable public PlayerController playerController
@Nullable public ClientWorld world
@Nullable public ClientPlayerEntity player
@Nullable public Entity renderViewEntity
@Nullable public Entity pointedEntity
@Nullable public RayTraceResult objectMouseOver
protected int leftClickCounter
public boolean skipRenderWorld
@Nullable public Screen currentScreen
@Nullable public LoadingGui loadingGui
public java.lang.String debug
public boolean debugWireframe
public boolean debugChunkPath
public boolean renderChunksMany
public Minecraft(GameConfiguration gameConfig)
public void func_230150_b_()
public boolean func_230151_c_()
public void run()
public void populateSearchTreeManager()
searchTreeManager
with the current item and recipe registry contents.public Framebuffer getFramebuffer()
public java.lang.String getVersion()
--
version
flag.public java.lang.String getVersionType()
--versionType
flag.public void crashed(CrashReport crash)
public static void displayCrashReport(CrashReport report)
public boolean getForceUnicodeFont()
@Deprecated public java.util.concurrent.CompletableFuture<java.lang.Void> reloadResources()
public SaveFormat getSaveLoader()
public void displayGuiScreen(@Nullable Screen guiScreenIn)
WARNING: This method is not thread-safe. Opening GUIs from a thread other than the main thread
may cause many different issues, including the GUI being rendered before it has initialized (leading to unusual
crashes). If on a thread other than the main thread, use #addScheduledTask
:
minecraft.addScheduledTask(() -> minecraft.displayGuiScreen(gui));
public void setLoadingGui(@Nullable LoadingGui loadingGuiIn)
public void shutdownMinecraftApplet()
public void close()
close
インタフェース内 java.lang.AutoCloseable
close
インタフェース内 ITaskExecutor<java.lang.Runnable>
public void updateWindowSize()
updateWindowSize
インタフェース内 IWindowEventListener
public void freeMemory()
public void shutdown()
public boolean isRunning()
public void displayInGameMenu(boolean pauseOnly)
public MusicTicker getMusicTicker()
public void runTick()
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)
public final boolean isDemo()
@Nullable public ClientPlayNetHandler getConnection()
public static boolean isGuiEnabled()
public static boolean isFancyGraphicsEnabled()
public static boolean isAmbientOcclusionEnabled()
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
インタフェース内 ISnooperInfo
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
クラス内 ThreadTaskExecutor<java.lang.Runnable>
protected java.lang.Runnable wrapTask(java.lang.Runnable runnable)
wrapTask
クラス内 ThreadTaskExecutor<java.lang.Runnable>
protected boolean canRun(java.lang.Runnable runnable)
canRun
クラス内 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
インタフェース内 IWindowEventListener
public IProfiler getProfiler()
public MinecraftGame getMinecraftGame()
public Splashes getSplashes()
@Nullable public LoadingGui getLoadingGui()
public boolean isRenderOnThread()
public MainWindow getMainWindow()
public RenderTypeBuffers getRenderTypeBuffers()
public void setMipmapLevels(int p_228020_1_)
public ItemColors getItemColors()
public SearchTreeManager getSearchTreeManager()