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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintUsed to compare an Entity to this TalkableEntityGets the LivingEntity associated with this TalkablegetName()Gets the name of the Talkable LivingEntityvoidtalkNear(SpeechContext context, String text) Called when talking near this Talkable Entity to provide a universal method to getting an event/output.voidtalkTo(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:
compareToin 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:TalkableGets the LivingEntity associated with this Talkable -
getName
Description copied from interface:TalkableGets the name of the Talkable LivingEntity -
talkNear
Description copied from interface:TalkableCalled when talking near this Talkable Entity to provide a universal method to getting an event/output. -
talkTo
Description copied from interface:TalkableCalled when talking to this Talkable Entity to provide a universal method to getting an event/output.
-