Interface MessageCancellable
-
- All Known Subinterfaces:
AdvancementEvent.Grant
,DestructEntityEvent
,DestructEntityEvent.Death
,ServerSideConnectionEvent.Join
public interface MessageCancellable
Represents an event whose message can be cancelled.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
isMessageCancelled()
Returns true if theComponent
should not be sent.void
setMessageCancelled​(boolean cancelled)
Sets whether theComponent
should be sent.
-
-
-
Method Detail
-
isMessageCancelled
boolean isMessageCancelled()
Returns true if theComponent
should not be sent.- Returns:
- True if message should not be sent
-
setMessageCancelled
void setMessageCancelled​(boolean cancelled)
Sets whether theComponent
should be sent.- Parameters:
cancelled
- True if should not be sent
-
-