| Modifier and Type | Method and Description |
|---|---|
IAssetManager |
getAssetManager() |
IChatLog |
getChatLog() |
java.net.URLClassLoader |
getClassLoader() |
org.newdawn.slick.GameContainer |
getContainer() |
IDataManager |
getDataManager() |
int |
getFpsAverage() |
IGuiManager |
getGuiManager() |
int |
getGuiScale() |
double |
getHeightInGui() |
double |
getHeightInWorld() |
IInteractionManager |
getInteractionManager() |
float |
getMouseInGuiX() |
float |
getMouseInGuiY() |
IParticleManager |
getParticleManager() |
AbstractEntityPlayer |
getPlayer() |
Settings |
getSettings() |
int |
getTotalTicks() |
int |
getTpsAverage() |
java.util.UUID |
getUniqueId() |
double |
getWidthInGui() |
double |
getWidthInWorld() |
IWorld |
getWorld() |
int |
getWorldScale() |
boolean |
isBackgroundDebug() |
boolean |
isDebug() |
boolean |
isForegroundDebug() |
boolean |
isInWorld() |
boolean |
isItemInfoDebug() |
boolean |
isLightDebug() |
void |
joinWorld(DataSet playerSet,
WorldInfo info,
NameToIndexInfo tileRegInfo)
Joins a
IWorld with a specified DataSet storing the player information,
a WorldInfo and a specified NameToIndexInfo storing the mapping of tiles
to their ids on disk. |
void |
openIngameMenu()
Opens the ingame
Gui
Not supposed to be used by mods |
void |
quitWorld()
Quits the current
IWorld
Not supposed to be used by mods |
void |
scheduleAction(IAction action)
|
void |
setFullscreen(boolean fullscreen) |
void |
startWorld(java.io.File worldFile,
WorldInfo info)
|
getDescription, getDisplayName, getId, getModGuiClass, getResourceLocation, getSortingPriority, getVersion, init, isDisableable, postInit, preInitboolean isInWorld()
true if the game is currently in a world,
false if on the title or loading screenvoid startWorld(java.io.File worldFile,
WorldInfo info)
IWorld from a specified File and WorldInfo
and puts the player into it
worldFile - The world's directoryinfo - The world infovoid joinWorld(DataSet playerSet, WorldInfo info, NameToIndexInfo tileRegInfo)
IWorld with a specified DataSet storing the player information,
a WorldInfo and a specified NameToIndexInfo storing the mapping of tiles
to their ids on disk.
playerSet - The player datainfo - The world infotileRegInfo - The tile registry infovoid quitWorld()
IWorld
void openIngameMenu()
Gui
void scheduleAction(IAction action)
IAction to be executed next tick
IPacket as
it prevents concurrent modificationaction - The action to be executedorg.newdawn.slick.GameContainer getContainer()
GameContainerint getGuiScale()
int getWorldScale()
double getWidthInWorld()
getWorldScale()double getHeightInWorld()
getWorldScale()double getWidthInGui()
getGuiScale()double getHeightInGui()
getGuiScale()float getMouseInGuiX()
Mouse when applying getGuiScale()float getMouseInGuiY()
Mouse when applying getGuiScale()IDataManager getDataManager()
IDataManager containing the game location and save locationsAbstractEntityPlayer getPlayer()
AbstractEntityPlayer of null if there is noneIGuiManager getGuiManager()
IGuiManager of the game that can be used to open GuiIInteractionManager getInteractionManager()
IInteractionManager of the gameIChatLog getChatLog()
IChatLog that can be used to send and query chat messagesIAssetManager getAssetManager()
IAssetManager that can be used to get and modify game assetsIParticleManager getParticleManager()
IParticleManager of the gamejava.util.UUID getUniqueId()
UUID of the game and its AbstractEntityPlayerboolean isDebug()
boolean isLightDebug()
boolean isForegroundDebug()
boolean isBackgroundDebug()
boolean isItemInfoDebug()
int getTpsAverage()
Constants.TARGET_TPS over the last secondint getFpsAverage()
Settings.targetFps over the last secondjava.net.URLClassLoader getClassLoader()
ClassLoader used to load vanilla game and IMod classesvoid setFullscreen(boolean fullscreen)
int getTotalTicks()