public class TalkableEntity extends Object implements Talkable
Constructor and Description |
---|
TalkableEntity(org.bukkit.entity.Entity entity) |
TalkableEntity(NPC npc) |
TalkableEntity(org.bukkit.entity.Player player) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Object o)
Used to compare a LivingEntity to this TalkableEntity
|
org.bukkit.entity.Entity |
getEntity()
Gets the LivingEntity associated with this Talkable
|
String |
getName()
Gets the name of the Talkable LivingEntity
|
void |
talkNear(SpeechContext context,
String text,
VocalChord vocalChord)
Called by a
VocalChord when talking near this Talkable Entity to provide a universal method to getting an
event/output. |
void |
talkTo(SpeechContext context,
String text,
VocalChord vocalChord)
Called by a
VocalChord when talking to this Talkable Entity to provide a universal method to getting an
event/output. |
public TalkableEntity(org.bukkit.entity.Entity entity)
public TalkableEntity(NPC npc)
public TalkableEntity(org.bukkit.entity.Player player)
public int compareTo(Object o)
compareTo
in interface Comparable<Object>
public org.bukkit.entity.Entity getEntity()
Talkable
public String getName()
Talkable
public void talkNear(SpeechContext context, String text, VocalChord vocalChord)
Talkable
VocalChord
when talking near this Talkable Entity to provide a universal method to getting an
event/output.public void talkTo(SpeechContext context, String text, VocalChord vocalChord)
Talkable
VocalChord
when talking to this Talkable Entity to provide a universal method to getting an
event/output.Copyright © 2021. All rights reserved.