Package net.zxmushroom63.plugins
Class PluginAPI
- java.lang.Object
-
- net.zxmushroom63.plugins.PluginAPI
-
public class PluginAPI extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static Logger
logger
java.util.ArrayList<java.lang.String>
requiredList
static java.lang.String
version
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BaseData
callEvent(java.lang.String name, BaseData data)
static BaseData
getGlobal(java.lang.String name)
static BaseData
getPluginAPI()
static void
logJSObj(org.teavm.jso.JSObject data)
void
onGlobalUpdated(java.lang.String global)
void
onRequire(java.lang.String global)
void
onUpdate()
static void
setGlobal(java.lang.String name, BaseData data)
-
-
-
Field Detail
-
requiredList
public java.util.ArrayList<java.lang.String> requiredList
-
logger
public static final Logger logger
-
version
public static java.lang.String version
-
-
Constructor Detail
-
PluginAPI
public PluginAPI(Minecraft mcIn)
-
-
Method Detail
-
setGlobal
public static void setGlobal(java.lang.String name, BaseData data)
-
getGlobal
public static BaseData getGlobal(java.lang.String name)
-
getPluginAPI
public static BaseData getPluginAPI()
-
logJSObj
public static void logJSObj(org.teavm.jso.JSObject data)
-
onGlobalUpdated
public void onGlobalUpdated(java.lang.String global)
-
onRequire
public void onRequire(java.lang.String global)
-
onUpdate
public void onUpdate()
-
-