com.github.ucchyocean.lc.event
クラス LunaChatPreChatEvent

java.lang.Object
  上位を拡張 org.bukkit.event.Event
      上位を拡張 com.github.ucchyocean.lc.event.LunaChatBaseEvent
          上位を拡張 com.github.ucchyocean.lc.event.LunaChatBaseCancellableEvent
              上位を拡張 com.github.ucchyocean.lc.event.LunaChatPreChatEvent
すべての実装されたインタフェース:
org.bukkit.event.Cancellable

public class LunaChatPreChatEvent
extends LunaChatBaseCancellableEvent

チャンネルチャットへの発言前に発生するイベント

作成者:
ucchy

入れ子のクラスの概要
 
クラス org.bukkit.event.Event から継承された入れ子のクラス/インタフェース
org.bukkit.event.Event.Result
 
コンストラクタの概要
LunaChatPreChatEvent(String channelName, ChannelPlayer player, String message)
           
 
メソッドの概要
 String getMessage()
          発言内容を取得します。
 ChannelPlayer getPlayer()
          発言を行ったプレイヤーを取得します。
 void setChannel(Channel channel)
          発言先チャンネルを変更します。
 void setChannelName(String channelName)
          発言先チャンネルを変更します。
 void setMessage(String message)
          発言内容を変更します。
 
クラス com.github.ucchyocean.lc.event.LunaChatBaseCancellableEvent から継承されたメソッド
isCancelled, setCancelled
 
クラス com.github.ucchyocean.lc.event.LunaChatBaseEvent から継承されたメソッド
getChannel, getChannelName, getHandlerList, getHandlers
 
クラス org.bukkit.event.Event から継承されたメソッド
getEventName, isAsynchronous
 
クラス java.lang.Object から継承されたメソッド
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

LunaChatPreChatEvent

public LunaChatPreChatEvent(String channelName,
                            ChannelPlayer player,
                            String message)
メソッドの詳細

getPlayer

public ChannelPlayer getPlayer()
発言を行ったプレイヤーを取得します。

戻り値:
発言したプレイヤー

getMessage

public String getMessage()
発言内容を取得します。

戻り値:
発言内容

setChannelName

public void setChannelName(String channelName)
発言先チャンネルを変更します。

パラメータ:
channelName - 発言先チャンネル名

setChannel

public void setChannel(Channel channel)
発言先チャンネルを変更します。

パラメータ:
channel - 発言先チャンネル

setMessage

public void setMessage(String message)
発言内容を変更します。

パラメータ:
message - 発言内容


Copyright © 2016. All rights reserved.