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