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 GuiScreen
currentScreen
java.lang.String
debug
+ String that shows the debug informationint
displayHeight
int
displayWidth
EffectRenderer
effectRenderer
EntityRenderer
entityRenderer
boolean
field_175611_D
boolean
field_175613_B
boolean
field_175614_C
FrameTimer
field_181542_y
FontRenderer
fontRendererObj
GameSettings
gameSettings
GuiAchievement
guiAchievement
GuiIngame
ingameGUI
boolean
inGameHasFocus
static boolean
isRunningOnMac
int
joinWorldTickCounter
LoadingScreenRenderer
loadingScreen
Profiler
mcProfiler
+ The profiler instanceMouseHelper
mouseHelper
MovingObjectPosition
objectMouseOver
PlayerControllerMP
playerController
PluginAPI
pluginApi
Entity
pointedEntity
boolean
renderChunksMany
RenderGlobal
renderGlobal
boolean
skipRenderWorld
FontRenderer
standardGalacticFontRenderer
EntityPlayerSP
thePlayer
WorldClient
theWorld
-
Constructor Summary
Constructors Constructor Description Minecraft(GameConfiguration gameConfig)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CrashReport
addGraphicsAndWorldToCrashReport(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)
boolean
areKeysLocked()
void
checkGLError(java.lang.String message)
+ Checks for an OpenGL error.protected void
checkWindowResize()
void
clickMouse()
void
crashed(CrashReport crash)
void
dispatchKeypresses()
void
displayCrashReport(CrashReport crashReportIn)
+ Wrapper around displayCrashReportInternalvoid
displayGuiScreen(GuiScreen guiScreenIn)
+ Sets the argument GuiScreen as the main (topmost visible) screen.void
displayInGameMenu()
+ Displays the ingame menuvoid
freeMemory()
MusicTicker
func_181535_r()
void
func_181536_a(int parInt1, int parInt2, int parInt3, int parInt4, int parInt5, int parInt6, int parInt7, int parInt8, int parInt9, int parInt10)
void
func_181537_a(boolean parFlag)
FrameTimer
func_181539_aj()
boolean
func_181540_al()
MusicTicker.MusicType
getAmbientMusicType()
BlockRendererDispatcher
getBlockRendererDispatcher()
ServerData
getCurrentServerData()
static int
getDebugFPS()
static int
getGLMaximumTextureSize()
+ Used in the usage snooper.ItemRenderer
getItemRenderer()
LanguageManager
getLanguageManager()
int
getLimitFramerate()
static Minecraft
getMinecraft()
+ Return the singleton Minecraft instance for the gameNetHandlerPlayClient
getNetHandler()
RenderItem
getRenderItem()
RenderManager
getRenderManager()
Entity
getRenderViewEntity()
IResourceManager
getResourceManager()
ResourcePackRepository
getResourcePackRepository()
Session
getSession()
SoundHandler
getSoundHandler()
static long
getSystemTime()
+ Gets the system time in milliseconds.TextureManager
getTextureManager()
TextureMap
getTextureMapBlocks()
java.lang.String
getVersion()
static boolean
isAmbientOcclusionEnabled()
+ Returns if ambient occlusion is enabledboolean
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, WorldSettingsvoid
loadWorld(WorldClient worldClientIn)
+ unloads the current world firstvoid
loadWorld(WorldClient worldClientIn, java.lang.String loadingMessage)
+ unloads the current world firstvoid
refreshResources()
void
rightClickMouse()
+ Called when user clicked he's mouse right button (place)void
run()
void
runTick()
+ Runs the current tick.ListenableFuture<java.lang.Object>
scheduleResourcesRefresh()
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()
-
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:
addScheduledTask
in 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()
-
-