PlayerChatEvent

public class PlayerChatEvent implements IAsyncEvent, 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 PlayerRef sender
@Nonnull final List targets
@Nonnull final String content

getSender

public PlayerRef getSender ()

Method getSender.

setSender

public void setSender (@Nonnull final PlayerRef sender)

Method setSender.

Parameters:
@Nonnull final PlayerRef sender

getTargets

public List getTargets ()

Method getTargets.

setTargets

public void setTargets (@Nonnull final List targets)

Method setTargets.

Parameters:
@Nonnull final List targets

getContent

public String getContent ()

Method getContent.

setContent

public void setContent (@Nonnull final String content)

Method setContent.

Parameters:
@Nonnull final String content

getFormatter

public Formatter getFormatter ()

Method getFormatter.

setFormatter

public void setFormatter (@Nonnull final Formatter formatter)

Method setFormatter.

Parameters:
@Nonnull final Formatter formatter

isCancelled

public boolean isCancelled ()

Method isCancelled.

setCancelled

public void setCancelled (final boolean cancelled)

Method setCancelled.

Parameters:
final boolean cancelled

toString

public String toString ()

Method toString.