Package net.citizensnpcs.trait
Class CommandTrait
java.lang.Object
net.citizensnpcs.api.trait.Trait
net.citizensnpcs.trait.CommandTrait
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
static enum
static enum
static class
static class
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
addCommand
(CommandTrait.NPCCommandBuilder builder) void
describe
(CommandSender sender) Send a brief description of the current state of the trait to the suppliedCommandSender
.void
dispatch
(Player player, CommandTrait.Hand hand) double
getCost()
float
boolean
hasCommandId
(int id) boolean
void
removeCommandById
(int id) void
setCost
(double cost) void
void
setExperienceCost
(float experienceCost) void
setHideErrorMessages
(boolean hide) void
setTemporaryPermissions
(List<String> permissions)
-
Constructor Details
-
CommandTrait
public CommandTrait()
-
-
Method Details
-
addCommand
-
describe
Send a brief description of the current state of the trait to the suppliedCommandSender
. -
dispatch
-
getCost
public double getCost() -
getExecutionMode
-
getExperienceCost
public float getExperienceCost() -
hasCommandId
public boolean hasCommandId(int id) -
isHideErrorMessages
public boolean isHideErrorMessages() -
removeCommandById
public void removeCommandById(int id) -
setCost
public void setCost(double cost) -
setExecutionMode
-
setExperienceCost
public void setExperienceCost(float experienceCost) -
setHideErrorMessages
public void setHideErrorMessages(boolean hide) -
setTemporaryPermissions
-