Modifier and Type | Class and Description |
---|---|
static class |
CommandTrait.ExecutionMode |
static class |
CommandTrait.Hand |
static class |
CommandTrait.ItemRequirementGUI |
static class |
CommandTrait.NPCCommandBuilder |
Constructor and Description |
---|
CommandTrait() |
Modifier and Type | Method and Description |
---|---|
int |
addCommand(CommandTrait.NPCCommandBuilder builder) |
void |
describe(org.bukkit.command.CommandSender sender)
Send a brief description of the current state of the trait to the supplied
CommandSender . |
void |
dispatch(org.bukkit.entity.Player player,
CommandTrait.Hand hand) |
double |
getCost() |
CommandTrait.ExecutionMode |
getExecutionMode() |
boolean |
hasCommandId(int id) |
void |
removeCommandById(int id) |
void |
setCost(double cost) |
void |
setExecutionMode(CommandTrait.ExecutionMode mode) |
void |
setTemporaryPermissions(List<String> permissions) |
public int addCommand(CommandTrait.NPCCommandBuilder builder)
public void describe(org.bukkit.command.CommandSender sender)
CommandSender
.public void dispatch(org.bukkit.entity.Player player, CommandTrait.Hand hand)
public double getCost()
public CommandTrait.ExecutionMode getExecutionMode()
public boolean hasCommandId(int id)
public void removeCommandById(int id)
public void setCost(double cost)
public void setExecutionMode(CommandTrait.ExecutionMode mode)
Copyright © 2021. All rights reserved.