|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmoapi.ModOptionsAPI
public class ModOptionsAPI
Controller class for the API.
Constructor Summary | |
---|---|
ModOptionsAPI()
|
Method Summary | |
---|---|
static void |
addMod(ModOptions o)
Adds a mods set of options to a menu in the ModOptions menu. |
static ModOptions |
addMod(java.lang.String name)
Adds a mod by name and attempts to load it |
static ModOptions[] |
getAllMods()
Gets all mods that have been added |
static ModOptions |
getModOptions(java.lang.String name)
Returns a set of options for a mod by the name of the mod. |
static ModOptions[] |
getMultiplayerMods()
Returns all mods that identify as a multiplayer mod |
static ModOptions[] |
getSingleplayerMods()
Returns all mods that identify as a singleplayer mod |
static boolean |
isMultiplayerWorld()
Check if the world is a multiplayer world |
static void |
joinedMultiplayerWorld(java.lang.String s)
Set that we are in a multiplayer world |
static void |
selectedWorld(java.lang.String s)
Set that we are in a singleplayer world |
static void |
viewingMainMenu()
Set that we are in the main menu |
static boolean |
worldLoaded()
Check if we are ingame |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ModOptionsAPI()
Method Detail |
---|
public static boolean worldLoaded()
public static boolean isMultiplayerWorld()
public static void joinedMultiplayerWorld(java.lang.String s)
s
- Server namepublic static void selectedWorld(java.lang.String s)
s
- World namepublic static void viewingMainMenu()
public static ModOptions[] getAllMods()
public static ModOptions[] getMultiplayerMods()
public static ModOptions[] getSingleplayerMods()
public static ModOptions getModOptions(java.lang.String name)
name
- Name of the mod
public static void addMod(ModOptions o)
o
- A set of options for a modpublic static ModOptions addMod(java.lang.String name) throws MOMissingModException
name
- name of mod being loaded
MOMissingModException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |