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

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

public class LunaChatChannelCreateEvent
extends LunaChatBaseCancellableEvent

チャンネル作成イベント

作成者:
ucchy

入れ子のクラスの概要
 
クラス org.bukkit.event.Event から継承された入れ子のクラス/インタフェース
org.bukkit.event.Event.Result
 
コンストラクタの概要
LunaChatChannelCreateEvent(String channelName, org.bukkit.command.CommandSender sender)
           
 
メソッドの概要
 Channel getChannel()
          推奨されていません。 チャンネル作成イベントは、チャンネルを作成する前に呼び出されるので、 このメソッドの戻り値は必ずnullになります。
 org.bukkit.command.CommandSender getSender()
          チャンネルを作成した人を取得する。
 void setChannelName(String channelName)
          作成するチャンネルのチャンネル名を上書き設定する
 
クラス com.github.ucchyocean.lc.event.LunaChatBaseCancellableEvent から継承されたメソッド
isCancelled, setCancelled
 
クラス com.github.ucchyocean.lc.event.LunaChatBaseEvent から継承されたメソッド
getChannelName, getHandlerList, getHandlers
 
クラス org.bukkit.event.Event から継承されたメソッド
getEventName, isAsynchronous
 
クラス java.lang.Object から継承されたメソッド
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

LunaChatChannelCreateEvent

public LunaChatChannelCreateEvent(String channelName,
                                  org.bukkit.command.CommandSender sender)
メソッドの詳細

setChannelName

public void setChannelName(String channelName)
作成するチャンネルのチャンネル名を上書き設定する

パラメータ:
channelName - 設定するチャンネル名

getSender

public org.bukkit.command.CommandSender getSender()
チャンネルを作成した人を取得する。

戻り値:
チャンネルを作成したCommandSender

getChannel

public Channel getChannel()
推奨されていません。 チャンネル作成イベントは、チャンネルを作成する前に呼び出されるので、 このメソッドの戻り値は必ずnullになります。

クラス LunaChatBaseEvent の記述:
チャンネルを取得する

オーバーライド:
クラス LunaChatBaseEvent 内の getChannel
戻り値:
チャンネル
関連項目:
LunaChatBaseEvent.getChannel()


Copyright © 2016. All rights reserved.