use of mc.dragons.spells.spells.SpellRegistry in project DragonsOnline by UniverseCraft.
the class DragonsSpells method onLoad.
public void onLoad() {
enableDebugLogging();
Dragons dragons = getDragonsInstance();
getLogger().info("Loading item addons...");
spellRegistry = new SpellRegistry();
AddonRegistry registry = dragons.getAddonRegistry();
registry.register(spellCastAddon = new SpellCastAddon(this));
registry.register(spellScrollAddon = new SpellScrollAddon());
dragons.getUserHookRegistry().registerHook(new SpellUserHook(this));
// Instantiate all spells here
new TestSpell(this);
}
Aggregations