Examples of NPCSpeechEvent


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

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

    @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
Copyright © 2018 www.massapi.com. 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.