Class SpeechEvent
java.lang.Object
org.bukkit.event.Event
net.citizensnpcs.api.ai.speech.event.SpeechEvent
- All Implemented Interfaces:
- Cancellable
- Direct Known Subclasses:
- SpeechBystanderEvent,- SpeechTargetedEvent
- 
Nested Class SummaryNested classes/interfaces inherited from class org.bukkit.event.EventEvent.Result
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionGets theSpeechContextassociated with the SpeechEvent.static HandlerListThe final message to be sent to the bystander.booleanvoidsetCancelled(boolean cancelled) voidsetMessage(String formattedMessage) Sets the message to be sent to the bystander.Methods inherited from class org.bukkit.event.EventgetEventName, isAsynchronous
- 
Constructor Details- 
SpeechEvent
 
- 
- 
Method Details- 
getContextGets theSpeechContextassociated with the SpeechEvent.- Returns:
- the SpeechContext
 
- 
getHandlers- Specified by:
- getHandlersin class- Event
 
- 
getMessageThe final message to be sent to the bystander. Note: This may differ from the message contained in the SpeechContext, as formatting may have occurred.- Returns:
- the message to be sent to the Talkablebystander.
 
- 
isCancelledpublic boolean isCancelled()- Specified by:
- isCancelledin interface- Cancellable
 
- 
setCancelledpublic void setCancelled(boolean cancelled) - Specified by:
- setCancelledin interface- Cancellable
 
- 
setMessageSets the message to be sent to the bystander. Note: This may differ from the message contained in the SpeechContext, as formatting may have occurred.
- 
getHandlerList
 
-