public class Minecraft extends java.lang.Object implements IThreadListener, IPlayerUsage
Constructor and Description |
---|
Minecraft(GameConfiguration gameConfig) |
Modifier and Type | Method and Description |
---|---|
CrashReport |
addGraphicsAndWorldToCrashReport(CrashReport theCrash)
adds core server Info (GL version , Texture pack, isModded, type), and the worldInfo to the crash report
|
<V> <any> |
addScheduledTask(java.util.concurrent.Callable<V> callableToSchedule) |
<any> |
addScheduledTask(java.lang.Runnable runnableToSchedule) |
void |
addServerStatsToSnooper(PlayerUsageSnooper playerSnooper) |
void |
addServerTypeToSnooper(PlayerUsageSnooper playerSnooper) |
protected void |
checkWindowResize() |
void |
crashed(CrashReport crash) |
void |
dispatchKeypresses() |
void |
displayCrashReport(CrashReport crashReportIn)
Wrapper around displayCrashReportInternal
|
void |
displayGuiScreen(GuiScreen guiScreenIn)
Sets the argument GuiScreen as the main (topmost visible) screen.
|
void |
displayInGameMenu()
Displays the ingame menu
|
void |
drawSplashScreen(TextureManager textureManagerInstance) |
void |
freeMemory() |
PropertyMap |
func_181037_M() |
MusicTicker |
func_181535_r() |
void |
func_181536_a(int p_181536_1_,
int p_181536_2_,
int p_181536_3_,
int p_181536_4_,
int p_181536_5_,
int p_181536_6_,
int p_181536_7_,
int p_181536_8_,
int p_181536_9_,
int p_181536_10_) |
FrameTimer |
func_181539_aj() |
boolean |
func_181540_al() |
MusicTicker.MusicType |
getAmbientMusicType() |
BlockRendererDispatcher |
getBlockRendererDispatcher() |
ServerData |
getCurrentServerData() |
static int |
getDebugFPS() |
Framebuffer |
getFramebuffer() |
static int |
getGLMaximumTextureSize()
Used in the usage snooper.
|
IntegratedServer |
getIntegratedServer()
Returns the currently running integrated server
|
ItemRenderer |
getItemRenderer() |
LanguageManager |
getLanguageManager() |
int |
getLimitFramerate() |
static Minecraft |
getMinecraft()
Return the singleton Minecraft instance for the game
|
NetHandlerPlayClient |
getNetHandler() |
PlayerUsageSnooper |
getPlayerUsageSnooper()
Returns the PlayerUsageSnooper instance.
|
java.net.Proxy |
getProxy() |
RenderItem |
getRenderItem() |
RenderManager |
getRenderManager() |
Entity |
getRenderViewEntity() |
IResourceManager |
getResourceManager() |
ResourcePackRepository |
getResourcePackRepository() |
ISaveFormat |
getSaveLoader()
Returns the save loader that is currently being used
|
Session |
getSession() |
static java.util.Map<java.lang.String,java.lang.String> |
getSessionInfo() |
MinecraftSessionService |
getSessionService() |
SkinManager |
getSkinManager() |
SoundHandler |
getSoundHandler() |
static long |
getSystemTime()
Gets the system time in milliseconds.
|
TextureManager |
getTextureManager() |
TextureMap |
getTextureMapBlocks() |
PropertyMap |
getTwitchDetails() |
IStream |
getTwitchStream() |
java.lang.String |
getVersion() |
static boolean |
isAmbientOcclusionEnabled()
Returns if ambient occlusion is enabled
|
boolean |
isCallingFromMinecraftThread() |
boolean |
isDemo()
Gets whether this is a demo or not.
|
static boolean |
isFancyGraphicsEnabled() |
boolean |
isFramerateLimitBelowMax() |
boolean |
isFullScreen()
Returns whether we're in full screen or not.
|
boolean |
isGamePaused() |
static boolean |
isGuiEnabled() |
boolean |
isIntegratedServerRunning() |
boolean |
isJava64bit() |
boolean |
isSingleplayer()
Returns true if there is only one player playing, and the current server is the integrated one.
|
boolean |
isSnooperEnabled()
Returns whether snooping is enabled or not.
|
boolean |
isUnicode() |
void |
launchIntegratedServer(java.lang.String folderName,
java.lang.String worldName,
WorldSettings worldSettingsIn)
Arguments: World foldername, World ingame name, WorldSettings
|
void |
loadWorld(WorldClient worldClientIn)
unloads the current world first
|
void |
loadWorld(WorldClient worldClientIn,
java.lang.String loadingMessage)
par2Str is displayed on the loading screen to the user unloads the current world first
|
void |
refreshResources() |
void |
resize(int width,
int height)
Called to resize the current screen.
|
void |
run() |
void |
runTick()
Runs the current tick.
|
<any> |
scheduleResourcesRefresh() |
void |
setConnectedToRealms(boolean p_181537_1_)
Set if the player is connected to a realms server
|
void |
setDimensionAndSpawnPlayer(int dimension) |
void |
setIngameFocus()
Will set the focus to ingame if the Minecraft window is the active with focus.
|
void |
setIngameNotInFocus()
Resets the player keystate, disables the ingame focus, and ungrabs the mouse cursor.
|
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.
|
static void |
stopIntegratedServer() |
void |
toggleFullscreen()
Toggles fullscreen mode.
|
void |
updateDisplay() |
public static final boolean isRunningOnMac
public static byte[] memoryReserve
public TextureManager renderEngine
public PlayerControllerMP playerController
public int displayWidth
public int displayHeight
public WorldClient theWorld
public RenderGlobal renderGlobal
public EntityPlayerSP thePlayer
public Entity pointedEntity
public EffectRenderer effectRenderer
public FontRenderer fontRendererObj
public FontRenderer standardGalacticFontRenderer
public GuiScreen currentScreen
public LoadingScreenRenderer loadingScreen
public EntityRenderer entityRenderer
public GuiAchievement guiAchievement
public GuiIngame ingameGUI
public boolean skipRenderWorld
public MovingObjectPosition objectMouseOver
public GameSettings gameSettings
public MouseHelper mouseHelper
public final java.io.File mcDataDir
public boolean inGameHasFocus
public final FrameTimer field_181542_y
public final Profiler mcProfiler
public final DefaultResourcePack mcDefaultResourcePack
public java.lang.String debug
public boolean field_175613_B
public boolean field_175614_C
public boolean field_175611_D
public boolean renderChunksMany
public Minecraft(GameConfiguration gameConfig)
public void run()
public Framebuffer getFramebuffer()
public java.lang.String getVersion()
public void crashed(CrashReport crash)
public void displayCrashReport(CrashReport crashReportIn)
public boolean isUnicode()
public void refreshResources()
public void drawSplashScreen(TextureManager textureManagerInstance) throws LWJGLException
LWJGLException
public void func_181536_a(int p_181536_1_, int p_181536_2_, int p_181536_3_, int p_181536_4_, int p_181536_5_, int p_181536_6_, int p_181536_7_, int p_181536_8_, int p_181536_9_, int p_181536_10_)
public ISaveFormat getSaveLoader()
public void displayGuiScreen(GuiScreen guiScreenIn)
public void shutdownMinecraftApplet()
public void updateDisplay()
protected void checkWindowResize()
public int getLimitFramerate()
public boolean isFramerateLimitBelowMax()
public void freeMemory()
public void shutdown()
public void setIngameFocus()
public void setIngameNotInFocus()
public void displayInGameMenu()
public void toggleFullscreen()
public void resize(int width, int height)
public MusicTicker func_181535_r()
public void runTick() throws java.io.IOException
java.io.IOException
public void launchIntegratedServer(java.lang.String folderName, java.lang.String worldName, WorldSettings worldSettingsIn)
public void loadWorld(WorldClient worldClientIn)
public void loadWorld(WorldClient worldClientIn, java.lang.String loadingMessage)
public void setDimensionAndSpawnPlayer(int dimension)
public final boolean isDemo()
public NetHandlerPlayClient getNetHandler()
public static boolean isGuiEnabled()
public static boolean isFancyGraphicsEnabled()
public static boolean isAmbientOcclusionEnabled()
public CrashReport addGraphicsAndWorldToCrashReport(CrashReport theCrash)
public static Minecraft getMinecraft()
public <any> scheduleResourcesRefresh()
public void addServerStatsToSnooper(PlayerUsageSnooper playerSnooper)
addServerStatsToSnooper
in interface IPlayerUsage
public void addServerTypeToSnooper(PlayerUsageSnooper playerSnooper)
addServerTypeToSnooper
in interface IPlayerUsage
public static int getGLMaximumTextureSize()
public boolean isSnooperEnabled()
isSnooperEnabled
in interface IPlayerUsage
public void setServerData(ServerData serverDataIn)
public ServerData getCurrentServerData()
public boolean isIntegratedServerRunning()
public boolean isSingleplayer()
public IntegratedServer getIntegratedServer()
public static void stopIntegratedServer()
public PlayerUsageSnooper getPlayerUsageSnooper()
public static long getSystemTime()
public boolean isFullScreen()
public Session getSession()
public PropertyMap getTwitchDetails()
public PropertyMap func_181037_M()
public java.net.Proxy getProxy()
public TextureManager getTextureManager()
public IResourceManager getResourceManager()
public ResourcePackRepository getResourcePackRepository()
public LanguageManager getLanguageManager()
public TextureMap getTextureMapBlocks()
public boolean isJava64bit()
public boolean isGamePaused()
public SoundHandler getSoundHandler()
public MusicTicker.MusicType getAmbientMusicType()
public IStream getTwitchStream()
public void dispatchKeypresses()
public MinecraftSessionService getSessionService()
public SkinManager getSkinManager()
public Entity getRenderViewEntity()
public void setRenderViewEntity(Entity viewingEntity)
public <V> <any> addScheduledTask(java.util.concurrent.Callable<V> callableToSchedule)
public <any> addScheduledTask(java.lang.Runnable runnableToSchedule)
addScheduledTask
in interface IThreadListener
public boolean isCallingFromMinecraftThread()
isCallingFromMinecraftThread
in interface IThreadListener
public BlockRendererDispatcher getBlockRendererDispatcher()
public RenderManager getRenderManager()
public RenderItem getRenderItem()
public ItemRenderer getItemRenderer()
public static int getDebugFPS()
public FrameTimer func_181539_aj()
public static java.util.Map<java.lang.String,java.lang.String> getSessionInfo()
public boolean func_181540_al()
public void setConnectedToRealms(boolean p_181537_1_)