Package net.minecraft.src
Class Minecraft
java.lang.Object
net.minecraft.src.Minecraft
- All Implemented Interfaces:
IPlayerUsage
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe GuiScreen that's being displayed at the moment.String that shows the debug informationStores debug datas received from the server and consumes it for a set amount of timeProfiler currently displayed in the debug screen pie chartintintThe font renderer used for displaying and measuring text.final MetricsDataThe MetricsData's instancesThe game settings that currently hold effect.Gui achievementbooleanDoes the actual gameplay have focus.static final booleanLegacy (FC) model rendering handlershortDebug infos from serverintfinal Filefinal ProfilerThe profiler instancestatic byte[]A 10MiB preallocation to ensure the heap is reasonably sized.short[]Mouse helper instance.The ray trace hit that the mouse is over.intThe RenderEngine instance used by MinecraftThe Entity from which the renderer determines the render viewpoint.final MetricsDatabooleanSkip render worldfinal MetricsDataStat file writerfinal MetricsData -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddGraphicsAndWorldToCrashReport(CrashReport par1CrashReport) adds core server Info (GL version , Texture pack, isModded, type), and the worldInfo to the crash reportvoidaddServerStatsToSnooper(PlayerUsageSnooper par1PlayerUsageSnooper) voidaddServerTypeToSnooper(PlayerUsageSnooper par1PlayerUsageSnooper) voidcrashed(CrashReport par1CrashReport) A String of how many particles and tile entities are in render distanceA String of renderGlobal.getDebugInfoRendersbooleanvoiddisplayCrashReport(CrashReport par1CrashReport) Wrapper around displayCrashReportInternalvoiddisplayGuiScreen(GuiScreen par1GuiScreen) Sets the argument GuiScreen as the main (topmost visible) screen.voidDisplays the ingame menuvoidGets the information in the F3 menu about how many entities are infront/around youReturn the FpsMetricsData's instancestatic intUsed in the usage snooper.Returns the currently running integrated serverbooleanstatic MinecraftReturn the singleton Minecraft instance for the gameReturns the NetClientHandler.Returns the PlayerUsageSnooper instance.getProxy()Return the ReceivedPacketMetricsData's instanceReturns the save loader that is currently being usedReturn the ReceivedPacketMetricsData's instancestatic longGets the system time in milliseconds.getTimer()Return the TpsMetricsData's instanceGets the name of the world's current chunk providerbooleanhandleClientCommand(String par1Str) Returns true if the message is a client command and should not be sent to the server.static booleanReturns if ambient occlusion is enabledfinal booleanisDemo()Gets whether this is a demo or not.static booleanbooleanReturns whether we're in full screen or not.static booleanbooleanbooleanReturns true if there is only one player playing, and the current server is the integrated one.booleanReturns whether snooping is enabled or not.voidlaunchIntegratedServer(String par1Str, String par2Str, WorldSettings par3WorldSettings) Arguments: World foldername, World ingame name, WorldSettingsvoidlaunchIntegratedServerHostile(String par1Str, String par2Str, WorldSettings par3WorldSettings) voidloadWorld(WorldClient par1WorldClient) unloads the current world firstvoidloadWorld(WorldClient par1WorldClient, String par2Str) par2Str is displayed on the loading screen to the user unloads the current world firstvoidvoidvoidrun()voidrunTick()Runs the current tick.voidscaledTessellator(int par1, int par2, int par3, int par4, int par5, int par6) Loads Tessellator with a scaled resolutionvoidsetDidDifficultyCheck(boolean value) voidsetDimensionAndSpawnPlayer(int par1) voidWill set the focus to ingame if the Minecraft window is the active with focus.voidResets the player keystate, disables the ingame focus, and ungrabs the mouse cursor.voidvoidsetServerData(ServerData par1ServerData) Set the current ServerData instance.voidshutdown()Called when the window is closing.voidShuts down the minecraft applet by stopping the resource downloads, and clearing up GL stuff; called when the application (or web page) is exited.static voidvoidvoidToggles fullscreen mode.
-
Field Details
-
isRunningOnMac
public static final boolean isRunningOnMac -
memoryReserve
public static byte[] memoryReserveA 10MiB preallocation to ensure the heap is reasonably sized. -
renderEngine
The RenderEngine instance used by Minecraft -
playerController
-
displayWidth
public int displayWidth -
displayHeight
public int displayHeight -
theWorld
-
renderGlobal
-
thePlayer
-
renderViewEntity
The Entity from which the renderer determines the render viewpoint. Currently is always the parent Minecraft class's 'thePlayer' instance. Modification of its location, rotation, or other settings at render time will modify the camera likewise, with the caveat of triggering chunk rebuilds as it moves, making it unsuitable for changing the viewpoint mid-render. -
pointedEntityLiving
-
effectRenderer
-
fontRenderer
The font renderer used for displaying and measuring text. -
standardGalacticFontRenderer
-
currentScreen
The GuiScreen that's being displayed at the moment. -
loadingScreen
-
entityRenderer
-
legacyRenderHandler
Legacy (FC) model rendering handler -
guiAchievement
Gui achievement -
ingameGUI
-
skipRenderWorld
public boolean skipRenderWorldSkip render world -
objectMouseOver
The ray trace hit that the mouse is over. -
gameSettings
The game settings that currently hold effect. -
sndManager
-
mouseHelper
Mouse helper instance. -
mcDataDir
-
statFileWriter
Stat file writer -
inGameHasFocus
public boolean inGameHasFocusDoes the actual gameplay have focus. If so then mouse and keys will effect the player instead of menus. -
mcProfiler
The profiler instance -
debug
String that shows the debug information -
fpsMetricsData
The MetricsData's instances -
tpsMetricsData
-
rPacketMetricsData
-
sPacketMetricsData
-
loadedChunks
public short loadedChunksDebug infos from server -
loadedEntities
public int loadedEntities -
mobCaps
public short[] mobCaps -
prevDebugPacketSent
public int prevDebugPacketSent -
debugBuffer
Stores debug datas received from the server and consumes it for a set amount of time -
debugProfilerName
Profiler currently displayed in the debug screen pie chart
-
-
Constructor Details
-
Minecraft
-
-
Method Details
-
crashed
-
displayCrashReport
Wrapper around displayCrashReportInternal -
setServer
-
refreshResources
public void refreshResources() -
scaledTessellator
public void scaledTessellator(int par1, int par2, int par3, int par4, int par5, int par6) Loads Tessellator with a scaled resolution -
getSaveLoader
Returns the save loader that is currently being used -
displayGuiScreen
Sets the argument GuiScreen as the main (topmost visible) screen. -
shutdownMinecraftApplet
public 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. -
run
public void run() -
freeMemory
public void freeMemory() -
takePanorama
public void takePanorama() -
shutdown
public void shutdown()Called when the window is closing. Sets 'running' to false which allows the game loop to exit cleanly. -
setIngameFocus
public void setIngameFocus()Will set the focus to ingame if the Minecraft window is the active with focus. Also clears any GUI screen currently displayed -
setIngameNotInFocus
public void setIngameNotInFocus()Resets the player keystate, disables the ingame focus, and ungrabs the mouse cursor. -
displayInGameMenu
public void displayInGameMenu()Displays the ingame menu -
toggleFullscreen
public void toggleFullscreen()Toggles fullscreen mode. -
refreshFullscreen
public void refreshFullscreen() -
runTick
public void runTick()Runs the current tick. -
launchIntegratedServer
Arguments: World foldername, World ingame name, WorldSettings -
loadWorld
unloads the current world first -
loadWorld
par2Str is displayed on the loading screen to the user unloads the current world first -
debugInfoRenders
A String of renderGlobal.getDebugInfoRenders -
getEntityDebug
Gets the information in the F3 menu about how many entities are infront/around you -
getWorldProviderName
Gets the name of the world's current chunk provider -
debugInfoEntities
A String of how many particles and tile entities are in render distance -
setDimensionAndSpawnPlayer
public void setDimensionAndSpawnPlayer(int par1) -
isDemo
public final boolean isDemo()Gets whether this is a demo or not. -
getNetHandler
Returns the NetClientHandler. -
isGuiEnabled
public static boolean isGuiEnabled() -
isFancyGraphicsEnabled
public static boolean isFancyGraphicsEnabled() -
isAmbientOcclusionEnabled
public static boolean isAmbientOcclusionEnabled()Returns if ambient occlusion is enabled -
handleClientCommand
Returns true if the message is a client command and should not be sent to the server. However there are no such commands at this point in time. -
addGraphicsAndWorldToCrashReport
adds core server Info (GL version , Texture pack, isModded, type), and the worldInfo to the crash report -
getMinecraft
Return the singleton Minecraft instance for the game -
addServerStatsToSnooper
- Specified by:
addServerStatsToSnooperin interfaceIPlayerUsage
-
addServerTypeToSnooper
- Specified by:
addServerTypeToSnooperin interfaceIPlayerUsage
-
getGLMaximumTextureSize
public static int getGLMaximumTextureSize()Used in the usage snooper. -
isSnooperEnabled
public boolean isSnooperEnabled()Returns whether snooping is enabled or not.- Specified by:
isSnooperEnabledin interfaceIPlayerUsage
-
setServerData
Set the current ServerData instance. -
isIntegratedServerRunning
public boolean isIntegratedServerRunning() -
isSingleplayer
public boolean isSingleplayer()Returns true if there is only one player playing, and the current server is the integrated one. -
getIntegratedServer
Returns the currently running integrated server -
stopIntegratedServer
public static void stopIntegratedServer() -
getPlayerUsageSnooper
Returns the PlayerUsageSnooper instance. -
getSystemTime
public static long getSystemTime()Gets the system time in milliseconds. -
isFullScreen
public boolean isFullScreen()Returns whether we're in full screen or not. -
getSession
-
getProxy
-
getTextureManager
-
getResourceManager
-
getResourcePackRepository
-
getLanguageManager
-
getLogAgent
- Specified by:
getLogAgentin interfaceIPlayerUsage
-
getTimer
-
getFpsMetricsData
Return the FpsMetricsData's instance -
getTpsMetricsData
Return the TpsMetricsData's instance -
getRPacketMetricsData
Return the ReceivedPacketMetricsData's instance -
getSPacketMetricsData
Return the ReceivedPacketMetricsData's instance -
getIsGamePaused
public boolean getIsGamePaused() -
launchIntegratedServerHostile
public void launchIntegratedServerHostile(String par1Str, String par2Str, WorldSettings par3WorldSettings) -
setDidDifficultyCheck
public void setDidDifficultyCheck(boolean value) -
didDifficultyCheck
public boolean didDifficultyCheck()
-