Package net.citizensnpcs.api.ai.speech
Interface Talkable
- All Superinterfaces:
Comparable<Object>
- All Known Implementing Classes:
TalkableEntity
Talkable provides an interface for talking to Players, Entities and NPCs.
-
Method Summary
Modifier and TypeMethodDescriptionGets the LivingEntity associated with this TalkablegetName()Gets the name of the Talkable LivingEntityvoidtalkNear(SpeechContext context, String message) Called when talking near this Talkable Entity to provide a universal method to getting an event/output.voidtalkTo(SpeechContext context, String message) Called when talking to this Talkable Entity to provide a universal method to getting an event/output.Methods inherited from interface java.lang.Comparable
compareTo
-
Method Details
-
getEntity
Entity getEntity()Gets the LivingEntity associated with this Talkable- Returns:
- a LivingEntity
-
getName
String getName()Gets the name of the Talkable LivingEntity- Returns:
- name
-
talkNear
Called when talking near this Talkable Entity to provide a universal method to getting an event/output.- Parameters:
context- the Speech contextmessage- The message to send
-
talkTo
Called when talking to this Talkable Entity to provide a universal method to getting an event/output.- Parameters:
context- the Speech contextmessage- The message to send
-