Package net.citizensnpcs.api.ai.speech.event

Examples of net.citizensnpcs.api.ai.speech.event.NPCSpeechEvent


     * @param context the context
     */
    public void speak(DenizenSpeechContext context) {
        context.setTalker(entity);
        if (isNPC) {
            NPCSpeechEvent event = new NPCSpeechEvent(context, "denizen_chat");
            Bukkit.getServer().getPluginManager().callEvent(event);
            if (event.isCancelled())
                return;
        }
        ((DenizenChat) CitizensAPI.getSpeechFactory().getVocalChord("denizen_chat")).talk(context);
    }
View Full Code Here


    @Override
    public void speak(SpeechContext context, String vocalChordName) {
        context.setTalker(entity);
        if (isNPC) {
            NPCSpeechEvent event = new NPCSpeechEvent(context, vocalChordName);
            Bukkit.getServer().getPluginManager().callEvent(event);
            if (event.isCancelled())
                return;
            vocalChordName = event.getVocalChordName();
        }
        CitizensAPI.getSpeechFactory().getVocalChord(vocalChordName).talk(context);
    }
View Full Code Here

TOP

Related Classes of net.citizensnpcs.api.ai.speech.event.NPCSpeechEvent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.