public class PlayerChatEvent implementsIAsyncEvent,ICancellable
Event fired when playerchat occurs. Listen for this event using EventBus.register.
java.lang.Object > PlayerChatEvent
Field Summary
sender
private
PlayerRef
sender
Field sender.
targets
private
List
targets
Field targets.
content
private
String
content
Field content.
formatter
private
Formatter
formatter
Field formatter.
cancelled
private
boolean
cancelled
Field cancelled.
Method Detail
PlayerChatEvent
public
public
PlayerChatEvent
(@Nonnull final PlayerRef sender, @Nonnull final List targets, @Nonnull final String content)
Method PlayerChatEvent.
- Parameters:
@Nonnull final PlayerRefsender@Nonnull final Listtargets@Nonnull final Stringcontent
getTargets
public
List
getTargets
()
Method getTargets.
setTargets
public
void
setTargets
(@Nonnull final List targets)
Method setTargets.
- Parameters:
@Nonnull final Listtargets
getContent
public
String
getContent
()
Method getContent.
setContent
public
void
setContent
(@Nonnull final String content)
Method setContent.
- Parameters:
@Nonnull final Stringcontent
getFormatter
public
Formatter
getFormatter
()
Method getFormatter.
setFormatter
public
void
setFormatter
(@Nonnull final Formatter formatter)
Method setFormatter.
- Parameters:
@Nonnull final Formatterformatter
isCancelled
public
boolean
isCancelled
()
Method isCancelled.
setCancelled
public
void
setCancelled
(final boolean cancelled)
Method setCancelled.
- Parameters:
final booleancancelled
toString
public
String
toString
()
Method toString.