-
Notifications
You must be signed in to change notification settings - Fork 1
Custom Modules
Peter Stakoun edited this page Jan 5, 2015
·
1 revision
Modules for MAI take the form of java .class files that are inserted alongside MAI and its default modules in the MAI .jar file. Open the MAI jar with any file archiver and navigate to "me\pstakoun\mai". This is where you drop the module class.
Development of MAI modules is a relatively simple process. You will find all the methods needed in your module, and the variables at your disposal, in the Module interface (Module.java). To use this interface, your module must implement it.
package me.pstakoun.mai;
/**
* Module description.
*/
public class ModuleName implements Module
{
@Override
public void onActivate()
{
}
@Override
public void onDeactivate()
{
}
@Override
public String getName()
{
return "ModuleName";
}
}