Package net.citizensnpcs.api.ai.speech
Class TalkableEntity
java.lang.Object
net.citizensnpcs.api.ai.speech.TalkableEntity
- All Implemented Interfaces:
Comparable<Object>
,Talkable
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Used to compare an Entity to this TalkableEntityGets the LivingEntity associated with this TalkablegetName()
Gets the name of the Talkable LivingEntityvoid
talkNear
(SpeechContext context, String text) Called when talking near this Talkable Entity to provide a universal method to getting an event/output.void
talkTo
(SpeechContext context, String text) Called when talking to this Talkable Entity to provide a universal method to getting an event/output.
-
Constructor Details
-
TalkableEntity
-
TalkableEntity
-
-
Method Details
-
compareTo
Used to compare an Entity to this TalkableEntity- Specified by:
compareTo
in interfaceComparable<Object>
- Returns:
- 0 if the Entities are the same, 1 if they are not, -1 if the object compared is not a valid LivingEntity
-
getEntity
Description copied from interface:Talkable
Gets the LivingEntity associated with this Talkable -
getName
Description copied from interface:Talkable
Gets the name of the Talkable LivingEntity -
talkNear
Description copied from interface:Talkable
Called when talking near this Talkable Entity to provide a universal method to getting an event/output. -
talkTo
Description copied from interface:Talkable
Called when talking to this Talkable Entity to provide a universal method to getting an event/output.
-