com.github.ucchyocean.lc.command
クラス SubCommandAbst

java.lang.Object
  上位を拡張 com.github.ucchyocean.lc.command.SubCommandAbst
直系の既知のサブクラス:
AcceptCommand, BanCommand, CheckCommand, CreateCommand, DenyCommand, DictionaryCommand, FormatCommand, HelpCommand, HideCommand, InfoCommand, InviteCommand, JoinCommand, KickCommand, LeaveCommand, ListCommand, LogCommand, ModeratorCommand, MuteCommand, OptionCommand, PardonCommand, ReloadCommand, RemoveCommand, TemplateCommand, UnhideCommand, UnmuteCommand

public abstract class SubCommandAbst
extends Object

サブコマンドの抽象クラス

作成者:
ucchy

コンストラクタの概要
SubCommandAbst()
          コンストラクタ
 
メソッドの概要
abstract  String getCommandName()
          コマンドを取得します。
abstract  com.github.ucchyocean.lc.command.SubCommandAbst.CommandType getCommandType()
          コマンドの種別を取得します。
abstract  String getPermissionNode()
          パーミッションノードを取得します。
abstract  boolean runCommand(org.bukkit.command.CommandSender sender, String label, String[] args)
          コマンドを実行します。
abstract  void sendUsageMessage(org.bukkit.command.CommandSender sender, String label)
          使用方法に関するメッセージをsenderに送信します。
 
クラス java.lang.Object から継承されたメソッド
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

SubCommandAbst

public SubCommandAbst()
コンストラクタ

メソッドの詳細

getCommandName

public abstract String getCommandName()
コマンドを取得します。

戻り値:
コマンド

getPermissionNode

public abstract String getPermissionNode()
パーミッションノードを取得します。

戻り値:
パーミッションノード

getCommandType

public abstract com.github.ucchyocean.lc.command.SubCommandAbst.CommandType getCommandType()
コマンドの種別を取得します。

戻り値:
コマンド種別

sendUsageMessage

public abstract void sendUsageMessage(org.bukkit.command.CommandSender sender,
                                      String label)
使用方法に関するメッセージをsenderに送信します。

パラメータ:
sender - コマンド実行者
label - 実行ラベル

runCommand

public abstract boolean runCommand(org.bukkit.command.CommandSender sender,
                                   String label,
                                   String[] args)
コマンドを実行します。

パラメータ:
sender - コマンド実行者
label - 実行ラベル
args - 実行時の引数
戻り値:
コマンドが実行されたかどうか


Copyright © 2016. All rights reserved.