Package net.minecraft.client
Class Minecraft
- java.lang.Object
-
- net.zxmushroom63.plugins.BaseData
-
- net.zxmushroom63.plugins.PluginData
-
- net.minecraft.client.Minecraft
-
- All Implemented Interfaces:
IThreadListener,org.teavm.jso.JSObject
public class Minecraft extends PluginData implements IThreadListener
+ This portion of EaglercraftX contains deobfuscated Minecraft 1.8 source code. Minecraft 1.8.8 bytecode is (c) 2015 Mojang AB. "Do not distribute!" Mod Coder Pack v9.18 deobfuscation configs are (c) Copyright by the MCP Team EaglercraftX 1.8 patch files are (c) 2022-2023 LAX1DUDE. All Rights Reserved. WITH THE EXCEPTION OF PATCH FILES, MINIFIED JAVASCRIPT, AND ALL FILES NORMALLY FOUND IN AN UNMODIFIED MINECRAFT RESOURCE PACK, YOU ARE NOT ALLOWED TO SHARE, DISTRIBUTE, OR REPURPOSE ANY FILE USED BY OR PRODUCED BY THE SOFTWARE IN THIS REPOSITORY WITHOUT PRIOR PERMISSION FROM THE PROJECT AUTHOR. NOT FOR COMMERCIAL OR MALICIOUS USE (please read the 'LICENSE' file this repo's root directory for more info)
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.zxmushroom63.plugins.BaseData
BaseData.BooleanCallback, BaseData.BooleanCallbackArr, BaseData.DataBooleanCallback, BaseData.DataBooleanCallbackArr, BaseData.DataDoubleCallback, BaseData.DataDoubleCallbackArr, BaseData.DataFloatCallback, BaseData.DataFloatCallbackArr, BaseData.DataIntCallback, BaseData.DataIntCallbackArr, BaseData.DataObjectCallback, BaseData.DataObjectCallbackArr, BaseData.DataStringCallback, BaseData.DataStringCallbackArr, BaseData.DataVoidCallback, BaseData.DoubleCallback, BaseData.DoubleCallbackArr, BaseData.FloatCallback, BaseData.FloatCallbackArr, BaseData.IntCallback, BaseData.IntCallbackArr, BaseData.ObjectCallback, BaseData.ObjectCallbackArr, BaseData.StringCallback, BaseData.StringCallbackArr, BaseData.VoidCallback
-
-
Field Summary
Fields Modifier and Type Field Description GuiScreencurrentScreenjava.lang.Stringdebug+ String that shows the debug informationintdisplayHeightintdisplayWidthEffectRenderereffectRendererEntityRendererentityRendererbooleanfield_175611_Dbooleanfield_175613_Bbooleanfield_175614_CFrameTimerfield_181542_yFontRendererfontRendererObjGameSettingsgameSettingsGuiAchievementguiAchievementGuiIngameingameGUIbooleaninGameHasFocusstatic booleanisRunningOnMacintjoinWorldTickCounterLoadingScreenRendererloadingScreenProfilermcProfiler+ The profiler instanceMouseHelpermouseHelperMovingObjectPositionobjectMouseOverPlayerControllerMPplayerControllerPluginAPIpluginApiEntitypointedEntitybooleanrenderChunksManyRenderGlobalrenderGlobalbooleanskipRenderWorldFontRendererstandardGalacticFontRendererEntityPlayerSPthePlayerWorldClienttheWorld
-
Constructor Summary
Constructors Constructor Description Minecraft(GameConfiguration gameConfig)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CrashReportaddGraphicsAndWorldToCrashReport(CrashReport theCrash)+ adds core server Info (GL version , Texture pack, isModded, type), and the worldInfo to the crash reportListenableFuture<java.lang.Object>addScheduledTask(java.lang.Runnable runnableToSchedule)<V> ListenableFuture<V>addScheduledTask(java.util.concurrent.Callable<V> callableToSchedule)booleanareKeysLocked()voidcheckGLError(java.lang.String message)+ Checks for an OpenGL error.protected voidcheckWindowResize()voidclickMouse()voidcrashed(CrashReport crash)voiddispatchKeypresses()voiddisplayCrashReport(CrashReport crashReportIn)+ Wrapper around displayCrashReportInternalvoiddisplayGuiScreen(GuiScreen guiScreenIn)+ Sets the argument GuiScreen as the main (topmost visible) screen.voiddisplayInGameMenu()+ Displays the ingame menuvoidfreeMemory()MusicTickerfunc_181535_r()voidfunc_181536_a(int parInt1, int parInt2, int parInt3, int parInt4, int parInt5, int parInt6, int parInt7, int parInt8, int parInt9, int parInt10)voidfunc_181537_a(boolean parFlag)FrameTimerfunc_181539_aj()booleanfunc_181540_al()MusicTicker.MusicTypegetAmbientMusicType()BlockRendererDispatchergetBlockRendererDispatcher()ServerDatagetCurrentServerData()static intgetDebugFPS()static intgetGLMaximumTextureSize()+ Used in the usage snooper.ItemRenderergetItemRenderer()LanguageManagergetLanguageManager()intgetLimitFramerate()static MinecraftgetMinecraft()+ Return the singleton Minecraft instance for the gameNetHandlerPlayClientgetNetHandler()RenderItemgetRenderItem()RenderManagergetRenderManager()EntitygetRenderViewEntity()IResourceManagergetResourceManager()ResourcePackRepositorygetResourcePackRepository()SessiongetSession()SoundHandlergetSoundHandler()static longgetSystemTime()+ Gets the system time in milliseconds.TextureManagergetTextureManager()TextureMapgetTextureMapBlocks()java.lang.StringgetVersion()static booleanisAmbientOcclusionEnabled()+ Returns if ambient occlusion is enabledbooleanisDemo()+ Gets whether this is a demo or not.static booleanisFancyGraphicsEnabled()booleanisFramerateLimitBelowMax()booleanisFullScreen()+ Returns whether we're in full screen or not.booleanisGamePaused()static booleanisGuiEnabled()booleanisIntegratedServerRunning()booleanisJava64bit()booleanisSingleplayer()+ Returns true if there is only one player playing, and the current server is the integrated one.booleanisSnooperEnabled()+ Returns whether snooping is enabled or not.booleanisUnicode()voidlaunchIntegratedServer(java.lang.String folderName, java.lang.String worldName, WorldSettings worldSettingsIn)+ Arguments: World foldername, World ingame name, WorldSettingsvoidloadWorld(WorldClient worldClientIn)+ unloads the current world firstvoidloadWorld(WorldClient worldClientIn, java.lang.String loadingMessage)+ unloads the current world firstvoidrefreshResources()voidrightClickMouse()+ Called when user clicked he's mouse right button (place)voidrun()voidrunTick()+ Runs the current tick.ListenableFuture<java.lang.Object>scheduleResourcesRefresh()voidsetDimensionAndSpawnPlayer(int dimension)voidsetIngameFocus()+ Will set the focus to ingame if the Minecraft window is the active with focus.voidsetIngameNotInFocus()+ Resets the player keystate, disables the ingame focus, and ungrabs the mouse cursor.voidsetRenderViewEntity(Entity viewingEntity)voidsetServerData(ServerData serverDataIn)+ Set the current ServerData instance.voidshutdown()+ Called when the window is closing.voidshutdownMinecraftApplet()+ 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 voidstopIntegratedServer()voidtoggleFullscreen()+ Toggles fullscreen mode.voidupdateDisplay()-
Methods inherited from class net.zxmushroom63.plugins.BaseData
execFuncBaseData, execFuncObject, execFuncString, getBaseData, getBaseDataArr, getBoolean, getBooleanArr, getByte, getByteArr, getChar, getCharArr, getDouble, getDoubleArr, getFloat, getFloatArr, getInt, getIntArr, getObject, getObjectArr, getShort, getShortArr, getString, getStringArr, has, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, setCallbackBoolean, setCallbackBooleanArr, setCallbackBooleanArrWithDataArg, setCallbackBooleanWithDataArg, setCallbackDouble, setCallbackDoubleArr, setCallbackDoubleArrWithDataArg, setCallbackDoubleWithDataArg, setCallbackFloat, setCallbackFloatArr, setCallbackFloatArrWithDataArg, setCallbackFloatWithDataArg, setCallbackInt, setCallbackIntArr, setCallbackIntArrWithDataArg, setCallbackIntWithDataArg, setCallbackObject, setCallbackObjectArr, setCallbackObjectArrWithDataArg, setCallbackObjectWithDataArg, setCallbackString, setCallbackStringArr, setCallbackStringArrWithDataArg, setCallbackStringWithDataArg, setCallbackVoid, setCallbackVoidWithDataArg, setNull
-
-
-
-
Field Detail
-
isRunningOnMac
public static final boolean isRunningOnMac
- See Also:
- Constant Field Values
-
playerController
public PlayerControllerMP playerController
-
pluginApi
public PluginAPI pluginApi
-
displayWidth
public int displayWidth
-
displayHeight
public int displayHeight
-
theWorld
public WorldClient theWorld
-
renderGlobal
public RenderGlobal renderGlobal
-
thePlayer
public EntityPlayerSP thePlayer
-
pointedEntity
public Entity pointedEntity
-
effectRenderer
public EffectRenderer effectRenderer
-
fontRendererObj
public FontRenderer fontRendererObj
-
standardGalacticFontRenderer
public FontRenderer standardGalacticFontRenderer
-
currentScreen
public GuiScreen currentScreen
-
loadingScreen
public LoadingScreenRenderer loadingScreen
-
entityRenderer
public EntityRenderer entityRenderer
-
guiAchievement
public GuiAchievement guiAchievement
-
ingameGUI
public GuiIngame ingameGUI
-
skipRenderWorld
public boolean skipRenderWorld
-
objectMouseOver
public MovingObjectPosition objectMouseOver
-
gameSettings
public GameSettings gameSettings
-
mouseHelper
public MouseHelper mouseHelper
-
inGameHasFocus
public boolean inGameHasFocus
-
field_181542_y
public final FrameTimer field_181542_y
-
mcProfiler
public final Profiler mcProfiler
+ The profiler instance
-
debug
public java.lang.String debug
+ String that shows the debug information
-
field_175613_B
public boolean field_175613_B
-
field_175614_C
public boolean field_175614_C
-
field_175611_D
public boolean field_175611_D
-
renderChunksMany
public boolean renderChunksMany
-
joinWorldTickCounter
public int joinWorldTickCounter
-
-
Constructor Detail
-
Minecraft
public Minecraft(GameConfiguration gameConfig)
-
-
Method Detail
-
run
public void run()
-
getVersion
public java.lang.String getVersion()
-
crashed
public void crashed(CrashReport crash)
-
displayCrashReport
public void displayCrashReport(CrashReport crashReportIn)
+ Wrapper around displayCrashReportInternal
-
isUnicode
public boolean isUnicode()
-
refreshResources
public void refreshResources()
-
func_181536_a
public void func_181536_a(int parInt1, int parInt2, int parInt3, int parInt4, int parInt5, int parInt6, int parInt7, int parInt8, int parInt9, int parInt10)
-
displayGuiScreen
public void displayGuiScreen(GuiScreen guiScreenIn)
+ Sets the argument GuiScreen as the main (topmost visible) screen.
-
checkGLError
public void checkGLError(java.lang.String message)
+ Checks for an OpenGL error. If there is one, prints the error ID and error string.
-
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.
-
updateDisplay
public void updateDisplay()
-
checkWindowResize
protected void checkWindowResize()
-
getLimitFramerate
public int getLimitFramerate()
-
isFramerateLimitBelowMax
public boolean isFramerateLimitBelowMax()
-
freeMemory
public void freeMemory()
-
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
-
clickMouse
public void clickMouse()
-
rightClickMouse
public void rightClickMouse()
+ Called when user clicked he's mouse right button (place)
-
toggleFullscreen
public void toggleFullscreen()
+ Toggles fullscreen mode.
-
func_181535_r
public MusicTicker func_181535_r()
-
runTick
public void runTick() throws java.io.IOException+ Runs the current tick.- Throws:
java.io.IOException
-
launchIntegratedServer
public void launchIntegratedServer(java.lang.String folderName, java.lang.String worldName, WorldSettings worldSettingsIn)+ Arguments: World foldername, World ingame name, WorldSettings
-
loadWorld
public void loadWorld(WorldClient worldClientIn)
+ unloads the current world first
-
loadWorld
public void loadWorld(WorldClient worldClientIn, java.lang.String loadingMessage)
+ unloads the current world first
-
setDimensionAndSpawnPlayer
public void setDimensionAndSpawnPlayer(int dimension)
-
isDemo
public final boolean isDemo()
+ Gets whether this is a demo or not.
-
getNetHandler
public NetHandlerPlayClient getNetHandler()
-
isGuiEnabled
public static boolean isGuiEnabled()
-
isFancyGraphicsEnabled
public static boolean isFancyGraphicsEnabled()
-
isAmbientOcclusionEnabled
public static boolean isAmbientOcclusionEnabled()
+ Returns if ambient occlusion is enabled
-
addGraphicsAndWorldToCrashReport
public CrashReport addGraphicsAndWorldToCrashReport(CrashReport theCrash)
+ adds core server Info (GL version , Texture pack, isModded, type), and the worldInfo to the crash report
-
getMinecraft
public static Minecraft getMinecraft()
+ Return the singleton Minecraft instance for the game
-
scheduleResourcesRefresh
public ListenableFuture<java.lang.Object> scheduleResourcesRefresh()
-
isSnooperEnabled
public boolean isSnooperEnabled()
+ Returns whether snooping is enabled or not.
-
setServerData
public void setServerData(ServerData serverDataIn)
+ Set the current ServerData instance.
-
getCurrentServerData
public ServerData getCurrentServerData()
-
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.
-
stopIntegratedServer
public static void stopIntegratedServer()
-
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
public Session getSession()
-
getTextureManager
public TextureManager getTextureManager()
-
getResourceManager
public IResourceManager getResourceManager()
-
getResourcePackRepository
public ResourcePackRepository getResourcePackRepository()
-
getLanguageManager
public LanguageManager getLanguageManager()
-
getTextureMapBlocks
public TextureMap getTextureMapBlocks()
-
isJava64bit
public boolean isJava64bit()
-
isGamePaused
public boolean isGamePaused()
-
getSoundHandler
public SoundHandler getSoundHandler()
-
getAmbientMusicType
public MusicTicker.MusicType getAmbientMusicType()
-
dispatchKeypresses
public void dispatchKeypresses()
-
getRenderViewEntity
public Entity getRenderViewEntity()
-
setRenderViewEntity
public void setRenderViewEntity(Entity viewingEntity)
-
addScheduledTask
public <V> ListenableFuture<V> addScheduledTask(java.util.concurrent.Callable<V> callableToSchedule)
-
addScheduledTask
public ListenableFuture<java.lang.Object> addScheduledTask(java.lang.Runnable runnableToSchedule)
- Specified by:
addScheduledTaskin interfaceIThreadListener
-
getBlockRendererDispatcher
public BlockRendererDispatcher getBlockRendererDispatcher()
-
getRenderManager
public RenderManager getRenderManager()
-
getRenderItem
public RenderItem getRenderItem()
-
getItemRenderer
public ItemRenderer getItemRenderer()
-
getDebugFPS
public static int getDebugFPS()
-
func_181539_aj
public FrameTimer func_181539_aj()
-
func_181540_al
public boolean func_181540_al()
-
func_181537_a
public void func_181537_a(boolean parFlag)
-
getGLMaximumTextureSize
public static int getGLMaximumTextureSize()
+ Used in the usage snooper.
-
areKeysLocked
public boolean areKeysLocked()
-
-