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 SummaryModifier 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.ComparablecompareTo
- 
Method Details- 
getEntityEntity getEntity()Gets the LivingEntity associated with this Talkable- Returns:
- a LivingEntity
 
- 
getNameString getName()Gets the name of the Talkable LivingEntity- Returns:
- name
 
- 
talkNearCalled when talking near this Talkable Entity to provide a universal method to getting an event/output.- Parameters:
- context- the Speech context
- message- The message to send
 
- 
talkToCalled when talking to this Talkable Entity to provide a universal method to getting an event/output.- Parameters:
- context- the Speech context
- message- The message to send
 
 
-