public class NPCSpeechEvent extends NPCEvent implements org.bukkit.event.Cancellable
SpeechContext
. This event takes place before being sent to the
VocalChord
Constructor and Description |
---|
NPCSpeechEvent(SpeechContext context,
String vocalChordName) |
Modifier and Type | Method and Description |
---|---|
SpeechContext |
getContext()
Returns the
SpeechContext that will be sent to the VocalChord. |
static org.bukkit.event.HandlerList |
getHandlerList() |
org.bukkit.event.HandlerList |
getHandlers() |
String |
getVocalChordName() |
boolean |
isCancelled() |
void |
setCancelled(boolean cancelled) |
void |
setVocalChord(String name)
Sets the name of the
VocalChord to be used. |
public NPCSpeechEvent(SpeechContext context, String vocalChordName)
public SpeechContext getContext()
SpeechContext
that will be sent to the VocalChord.public org.bukkit.event.HandlerList getHandlers()
getHandlers
in class org.bukkit.event.Event
public String getVocalChordName()
public boolean isCancelled()
isCancelled
in interface org.bukkit.event.Cancellable
public void setCancelled(boolean cancelled)
setCancelled
in interface org.bukkit.event.Cancellable
public void setVocalChord(String name)
VocalChord
to be used.name
- A valid registered VocalChord namepublic static org.bukkit.event.HandlerList getHandlerList()
Copyright © 2021. All rights reserved.