package net.nuggetmc.tplus.bot.trait;

import net.citizensnpcs.api.trait.Trait;
import net.citizensnpcs.api.util.DataKey;
import net.nuggetmc.tplus.bot.CitizensNPC;

/**
 * Custom trait for CitizensNPC that handles AI ticking and event propagation
 */
public class BotBehaviorTrait extends Trait {
    private CitizensNPC bot;
    
    public BotBehaviorTrait() {
        super("botbehavior");
    }
    
    public void setBot(CitizensNPC bot) {
        this.bot = bot;
    }
    
    @Override
    public void load(DataKey key) {
        // Load data from storage
    }
    
    @Override
    public void save(DataKey key) {
        // Save data to storage
    }

    @Override
    public void run() {
        if (bot != null) {
            bot.tick();
        }
    }
}


