Skip to content

Latest commit

 

History

History
239 lines (239 loc) · 14.1 KB

cn.nukkit.command.Command.md

File metadata and controls

239 lines (239 loc) · 14.1 KB
  • 成员变量一览

    成员变量 
    修饰符和类 成员变量描述
    protected CommandData commandData 
    protected Map<String,CommandParameter[]> commandParameters 
    protected String description 
    Timing timing 
    protected String usageMessage 
  • 构造函数一览

    构造函数 
    构造函数描述
    Command(String name) 
    Command(String name, String description) 
    Command(String name, String description, String usageMessage) 
    Command(String name, String description, String usageMessage, String[] aliases) 
  • 成员函数一览

    All Methods Static Methods Instance Methods Abstract Methods Concrete Methods 
    修饰符和类 成员函数描述
    void addCommandParameters(String key, CommandParameter[] parameters) 
    boolean allowChangesFrom(CommandMap commandMap) 
    static void broadcastCommandMessage(CommandSender source, String message) 
    static void broadcastCommandMessage(CommandSender source, String message, boolean sendToSource) 
    static void broadcastCommandMessage(CommandSender source, TextContainer message) 
    static void broadcastCommandMessage(CommandSender source, TextContainer message, boolean sendToSource) 
    abstract boolean execute(CommandSender sender, String commandLabel, String[] args) 
    CommandDataVersions generateCustomCommandData(Player player)
    Generates modified command data for the specified player for AvailableCommandsPacket.
    static CommandData generateDefaultData() 
    String[] getAliases() 
    Map<String,CommandParameter[]> getCommandParameters() 
    CommandParameter[] getCommandParameters(String key) 
    CommandData getDefaultCommandData()
    Returns an CommandData containing command data
    String getDescription() 
    String getLabel() 
    String getName() 
    Map<String,CommandOverload> getOverloads() 
    String getPermission() 
    String getPermissionMessage() 
    String getUsage() 
    boolean isRegistered() 
    boolean register(CommandMap commandMap) 
    void setAliases(String[] aliases) 
    void setCommandParameters(Map<String,CommandParameter[]> commandParameters) 
    void setDescription(String description) 
    boolean setLabel(String name) 
    void setPermission(String permission) 
    void setPermissionMessage(String permissionMessage) 
    void setUsage(String usageMessage) 
    boolean testPermission(CommandSender target) 
    boolean testPermissionSilent(CommandSender target) 
    String toString() 
    boolean unregister(CommandMap commandMap) 
    • 继承自类 java.lang.Object

      clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait