Search in sources :

Example 1 with TestSpell

use of mc.dragons.spells.spells.TestSpell 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);
}
Also used : Dragons(mc.dragons.core.Dragons) AddonRegistry(mc.dragons.core.addon.AddonRegistry) TestSpell(mc.dragons.spells.spells.TestSpell) SpellRegistry(mc.dragons.spells.spells.SpellRegistry)

Aggregations

Dragons (mc.dragons.core.Dragons)1 AddonRegistry (mc.dragons.core.addon.AddonRegistry)1 SpellRegistry (mc.dragons.spells.spells.SpellRegistry)1 TestSpell (mc.dragons.spells.spells.TestSpell)1