public class Minecraft extends java.lang.Object implements IPlayerUsage
| Modifier and Type | Field and Description |
|---|---|
GuiScreen |
currentScreen
The GuiScreen that's being displayed at the moment.
|
java.lang.String |
debug
String that shows the debug information
|
int |
displayHeight |
int |
displayWidth |
EffectRenderer |
effectRenderer |
EntityRenderer |
entityRenderer |
FontRenderer |
fontRenderer
The font renderer used for displaying and measuring text.
|
GameSettings |
gameSettings
The game settings that currently hold effect.
|
GuiAchievement |
guiAchievement
Gui achievement
|
GuiIngame |
ingameGUI |
boolean |
inGameHasFocus
Does the actual gameplay have focus.
|
static boolean |
isRunningOnMac |
LoadingScreenRenderer |
loadingScreen |
java.io.File |
mcDataDir |
DefaultResourcePack |
mcDefaultResourcePack |
Profiler |
mcProfiler
The profiler instance
|
static byte[] |
memoryReserve
A 10MiB preallocation to ensure the heap is reasonably sized.
|
MouseHelper |
mouseHelper
Mouse helper instance.
|
MovingObjectPosition |
objectMouseOver
The ray trace hit that the mouse is over.
|
PlayerControllerMP |
playerController |
Entity |
pointedEntity |
TextureManager |
renderEngine
The RenderEngine instance used by Minecraft
|
RenderGlobal |
renderGlobal |
EntityLivingBase |
renderViewEntity
The Entity from which the renderer determines the render viewpoint.
|
boolean |
skipRenderWorld
Skip render world
|
FontRenderer |
standardGalacticFontRenderer |
EntityClientPlayerMP |
thePlayer |
WorldClient |
theWorld |
| Constructor and Description |
|---|
Minecraft(Session p_i1103_1_,
int p_i1103_2_,
int p_i1103_3_,
boolean p_i1103_4_,
boolean p_i1103_5_,
java.io.File p_i1103_6_,
java.io.File p_i1103_7_,
java.io.File p_i1103_8_,
java.net.Proxy p_i1103_9_,
java.lang.String p_i1103_10_,
com.google.common.collect.Multimap p_i1103_11_,
java.lang.String p_i1103_12_) |
| Modifier and Type | Method and Description |
|---|---|
CrashReport |
addGraphicsAndWorldToCrashReport(CrashReport p_71396_1_)
adds core server Info (GL version , Texture pack, isModded, type), and the worldInfo to the crash report
|
void |
addServerStatsToSnooper(PlayerUsageSnooper p_70000_1_) |
void |
addServerTypeToSnooper(PlayerUsageSnooper p_70001_1_) |
void |
crashed(CrashReport p_71404_1_) |
java.lang.String |
debugInfoEntities()
A String of how many entities are in the world
|
java.lang.String |
debugInfoRenders()
A String of renderGlobal.getDebugInfoRenders
|
void |
displayCrashReport(CrashReport p_71377_1_)
Wrapper around displayCrashReportInternal
|
void |
displayGuiScreen(GuiScreen p_147108_1_)
Sets the argument GuiScreen as the main (topmost visible) screen.
|
void |
displayInGameMenu()
Displays the ingame menu
|
void |
freeMemory() |
ServerData |
func_147104_D() |
MusicTicker.MusicType |
func_147109_W() |
void |
func_147120_f() |
com.google.common.collect.Multimap |
func_152341_N() |
SkinManager |
func_152342_ad() |
com.google.common.util.concurrent.ListenableFuture |
func_152343_a(java.util.concurrent.Callable p_152343_1_) |
com.google.common.util.concurrent.ListenableFuture |
func_152344_a(java.lang.Runnable p_152344_1_) |
boolean |
func_152345_ab() |
IStream |
func_152346_Z() |
com.mojang.authlib.minecraft.MinecraftSessionService |
func_152347_ac() |
void |
func_152348_aa() |
boolean |
func_152349_b() |
java.lang.String |
getEntityDebug()
Gets the information in the F3 menu about how many entities are infront/around you
|
Framebuffer |
getFramebuffer() |
static int |
getGLMaximumTextureSize()
Used in the usage snooper.
|
IntegratedServer |
getIntegratedServer()
Returns the currently running integrated server
|
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() |
IResourceManager |
getResourceManager() |
ResourcePackRepository |
getResourcePackRepository() |
ISaveFormat |
getSaveLoader()
Returns the save loader that is currently being used
|
Session |
getSession() |
SoundHandler |
getSoundHandler() |
static long |
getSystemTime()
Gets the system time in milliseconds.
|
TextureManager |
getTextureManager() |
TextureMap |
getTextureMapBlocks() |
java.lang.String |
getWorldProviderName()
Gets the name of the world's current chunk provider
|
static boolean |
isAmbientOcclusionEnabled()
Returns if ambient occlusion is enabled
|
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.
|
void |
launchIntegratedServer(java.lang.String p_71371_1_,
java.lang.String p_71371_2_,
WorldSettings p_71371_3_)
Arguments: World foldername, World ingame name, WorldSettings
|
void |
loadScreen()
Displays a new screen.
|
void |
loadWorld(WorldClient p_71403_1_)
unloads the current world first
|
void |
loadWorld(WorldClient p_71353_1_,
java.lang.String p_71353_2_)
par2Str is displayed on the loading screen to the user unloads the current world first
|
void |
refreshResources() |
void |
resize(int p_71370_1_,
int p_71370_2_)
Called to resize the current screen.
|
void |
run() |
void |
runTick()
Runs the current tick.
|
void |
scaledTessellator(int p_71392_1_,
int p_71392_2_,
int p_71392_3_,
int p_71392_4_,
int p_71392_5_,
int p_71392_6_)
Loads Tessellator with a scaled resolution
|
void |
scheduleResourcesRefresh() |
void |
setDimensionAndSpawnPlayer(int p_71354_1_) |
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 |
setServer(java.lang.String p_71367_1_,
int p_71367_2_) |
void |
setServerData(ServerData p_71351_1_)
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.
|
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 EntityClientPlayerMP thePlayer
public EntityLivingBase renderViewEntity
public Entity pointedEntity
public EffectRenderer effectRenderer
public FontRenderer fontRenderer
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 Profiler mcProfiler
public DefaultResourcePack mcDefaultResourcePack
public java.lang.String debug
public Minecraft(Session p_i1103_1_, int p_i1103_2_, int p_i1103_3_, boolean p_i1103_4_, boolean p_i1103_5_, java.io.File p_i1103_6_, java.io.File p_i1103_7_, java.io.File p_i1103_8_, java.net.Proxy p_i1103_9_, java.lang.String p_i1103_10_, com.google.common.collect.Multimap p_i1103_11_, java.lang.String p_i1103_12_)
public Framebuffer getFramebuffer()
public void crashed(CrashReport p_71404_1_)
public void displayCrashReport(CrashReport p_71377_1_)
public void setServer(java.lang.String p_71367_1_,
int p_71367_2_)
public boolean func_152349_b()
public void refreshResources()
public void loadScreen()
throws org.lwjgl.LWJGLException
org.lwjgl.LWJGLExceptionpublic void scaledTessellator(int p_71392_1_,
int p_71392_2_,
int p_71392_3_,
int p_71392_4_,
int p_71392_5_,
int p_71392_6_)
public ISaveFormat getSaveLoader()
public void displayGuiScreen(GuiScreen p_147108_1_)
public void shutdownMinecraftApplet()
public void run()
public void func_147120_f()
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 p_71370_1_,
int p_71370_2_)
public void runTick()
public void launchIntegratedServer(java.lang.String p_71371_1_,
java.lang.String p_71371_2_,
WorldSettings p_71371_3_)
public void loadWorld(WorldClient p_71403_1_)
public void loadWorld(WorldClient p_71353_1_, java.lang.String p_71353_2_)
public java.lang.String debugInfoRenders()
public java.lang.String getEntityDebug()
public java.lang.String getWorldProviderName()
public java.lang.String debugInfoEntities()
public void setDimensionAndSpawnPlayer(int p_71354_1_)
public final boolean isDemo()
public NetHandlerPlayClient getNetHandler()
public static boolean isGuiEnabled()
public static boolean isFancyGraphicsEnabled()
public static boolean isAmbientOcclusionEnabled()
public CrashReport addGraphicsAndWorldToCrashReport(CrashReport p_71396_1_)
public static Minecraft getMinecraft()
public void scheduleResourcesRefresh()
public void addServerStatsToSnooper(PlayerUsageSnooper p_70000_1_)
addServerStatsToSnooper in interface IPlayerUsagepublic void addServerTypeToSnooper(PlayerUsageSnooper p_70001_1_)
addServerTypeToSnooper in interface IPlayerUsagepublic static int getGLMaximumTextureSize()
public boolean isSnooperEnabled()
isSnooperEnabled in interface IPlayerUsagepublic void setServerData(ServerData p_71351_1_)
public ServerData func_147104_D()
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 com.google.common.collect.Multimap func_152341_N()
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 func_147109_W()
public IStream func_152346_Z()
public void func_152348_aa()
public com.google.common.util.concurrent.ListenableFuture func_152343_a(java.util.concurrent.Callable p_152343_1_)
public com.google.common.util.concurrent.ListenableFuture func_152344_a(java.lang.Runnable p_152344_1_)
public boolean func_152345_ab()
public com.mojang.authlib.minecraft.MinecraftSessionService func_152347_ac()
public SkinManager func_152342_ad()