Package net.citizensnpcs.npc.ai.speech
Class TalkableEntity
java.lang.Object
net.citizensnpcs.npc.ai.speech.TalkableEntity
- All Implemented Interfaces:
Comparable<Object>,Talkable
-
Constructor Summary
ConstructorsConstructorDescriptionTalkableEntity(NPC npc) TalkableEntity(Entity entity) TalkableEntity(Player player) -
Method Summary
Modifier and TypeMethodDescriptionintUsed to compare a LivingEntity to this TalkableEntityGets the LivingEntity associated with this TalkablegetName()Gets the name of the Talkable LivingEntityvoidtalkNear(SpeechContext context, String text, VocalChord vocalChord) Called by aVocalChordwhen talking near this Talkable Entity to provide a universal method to getting an event/output.voidtalkTo(SpeechContext context, String text, VocalChord vocalChord) Called by aVocalChordwhen talking to this Talkable Entity to provide a universal method to getting an event/output.
-
Constructor Details
-
TalkableEntity
-
TalkableEntity
-
TalkableEntity
-
-
Method Details
-
compareTo
Used to compare a LivingEntity 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 by aVocalChordwhen talking near this Talkable Entity to provide a universal method to getting an event/output. -
talkTo
Description copied from interface:TalkableCalled by aVocalChordwhen talking to this Talkable Entity to provide a universal method to getting an event/output.
-