API
Plugin Instance
SpellbookPlugin plugin = SpellbookPlugin.getInstance();
// Core services
CooldownService cooldowns = plugin.getCooldownService();
SpellService spells = plugin.getSpellService();
NodeRegistry nodes = plugin.getNodeRegistry();
SpellbookEventBus eventBus = plugin.getEventBus();
DamageService damage = plugin.getDamageService();
// Enchantment & Passive services
EnchantmentRegistry enchantments = plugin.getEnchantmentRegistry();
EnchantmentService enchantmentService = plugin.getEnchantmentService();
PassiveRegistry passives = plugin.getPassiveRegistry();
PassiveService passiveService = plugin.getPassiveService();SpellService
CooldownService
DamageService
NodeRegistry
SpellbookEventBus
Data Models
SpellDefinition (Record)
SpellMetadata (Record)
SpellGraph (Record)
SpellNode (Record)
EnchantmentDefinition (Record)
PassiveDefinition (Record)
Creating Custom Node Handlers
Enums
SpellCategory
TriggerType
EnchantmentTier
PassiveTier
NodeType
ECS Components
Component
Purpose
Example: Check Cooldown and Cast
Event Types
Event
Trigger
Key Fields
Example: Subscribe to Events
Last updated