Creating Augments
Last updated
Last updated
Create External Augment class and fill in the information
Create Augment Executor class and write your augment code
Register the Augment using the AugmentManager.registerExternal method
The External Augment contains the basic data of an augment, such as:
ID
Description
Name
The Augment Executor contains many useful methods for creating an augment.
Here are some of the key methods:
default EventPriority getEventPriority() {
return EventPriority.NORMAL;
}
default String[] getAugmentsBlocked() {
return new String[]{};
}
default GameMode[] getModesBlocked() {
return new GameMode[]{};
}
default AugmentTag[] getTags() {
return new AugmentTag[]{};
}
default AugmentTag[] getTagsBlocked() {
return new AugmentTag[]{};
}
default boolean isPersistent() {
return false;
}
default Object executeEvents(Object... events) {
return null;
}
default void executePhase(GamePhase gamePhase) {}
default void cancel() {}