Constructor and Description |
---|
SpeechContext() |
SpeechContext(NPC talker,
String message) |
SpeechContext(NPC talker,
String message,
org.bukkit.entity.LivingEntity recipient) |
SpeechContext(String message) |
SpeechContext(String message,
org.bukkit.entity.LivingEntity recipient) |
Modifier and Type | Method and Description |
---|---|
SpeechContext |
addRecipient(org.bukkit.entity.Entity entity)
Adds a direct
Talkable recipient. |
SpeechContext |
addRecipient(org.bukkit.entity.LivingEntity entity)
Deprecated.
|
SpeechContext |
addRecipients(List<Talkable> talkables)
Adds a list of
Talkable recipients. |
String |
getMessage()
Gets the text message sent.
|
Talkable |
getTalker()
Gets the talker.
|
boolean |
hasRecipients()
Checks if there are any recipients.
|
Iterator<Talkable> |
iterator()
Gets direct recipients, if any.
|
void |
setMessage(String message)
Sets the text message sent.
|
void |
setTalker(org.bukkit.entity.Entity entity)
Sets the talker.
|
void |
setTalker(org.bukkit.entity.LivingEntity entity)
Deprecated.
|
int |
size() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public SpeechContext()
public SpeechContext(NPC talker, String message, org.bukkit.entity.LivingEntity recipient)
public SpeechContext(String message)
public SpeechContext(String message, org.bukkit.entity.LivingEntity recipient)
public SpeechContext addRecipient(org.bukkit.entity.Entity entity)
Talkable
recipient. The VocalChord
should use this information to correctly direct
the message. Note: depending on the VocalChord, this list may not be inclusive as to who gets the message.entity
- Talkable entity@Deprecated public SpeechContext addRecipient(org.bukkit.entity.LivingEntity entity)
public SpeechContext addRecipients(List<Talkable> talkables)
Talkable
recipients. The VocalChord
should use this information to correctly
direct the message. Note: depending on the VocalChord, this list may not be inclusive as to who gets the message.talkables
- Talkable entitiespublic String getMessage()
public Talkable getTalker()
public boolean hasRecipients()
SpeechContext
is not targeted.public void setMessage(String message)
message
- The text to send.public void setTalker(org.bukkit.entity.Entity entity)
entity
- NPC doing the talking@Deprecated public void setTalker(org.bukkit.entity.LivingEntity entity)
public int size()
Copyright © 2021. All rights reserved.