Class SimpleSpeechController

java.lang.Object
net.citizensnpcs.api.ai.speech.SimpleSpeechController
All Implemented Interfaces:
SpeechController

public class SimpleSpeechController extends Object implements SpeechController
Simple implementation of SpeechController which allows a NPC to speak with any registered VocalChord.
  • Constructor Details

    • SimpleSpeechController

      public SimpleSpeechController(NPC npc)
  • Method Details

    • speak

      public void speak(SpeechContext context)
      Description copied from interface: SpeechController
      Sends the speechController's NPC and SpeechContext to the current default VocalChord for the NPC. If none, the default VocalChord is used.
      Specified by:
      speak in interface SpeechController
      Parameters:
      context - The message to speak