Class CommandContext
java.lang.Object
com.zenith.command.api.CommandContext
- Direct Known Subclasses:
DiscordCommandContext
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionCommandContext(String input, CommandSource source, Embed embed, List<String> multiLineOutput) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanstatic CommandContextcreate(String input, CommandSource source) static CommandContextcreateInGamePlayerContext(String input, ServerSession session) static CommandContextcreateSpectatorContext(String input, ServerSession session) booleangetData()getEmbed()@Nullable CommandContext.InGamePlayerInfogetInput()inthashCode()booleanbooleanvoidsetInGamePlayerInfo(@Nullable CommandContext.InGamePlayerInfo inGamePlayerInfo) voidsetNoOutput(boolean noOutput) voidsetSensitiveInput(boolean sensitiveInput) toString()
-
Constructor Details
-
CommandContext
public CommandContext(String input, CommandSource source, Embed embed, List<String> multiLineOutput)
-
-
Method Details
-
create
-
createInGamePlayerContext
-
createSpectatorContext
-
getInput
-
getSource
-
getEmbed
-
getMultiLineOutput
-
getInGamePlayerInfo
-
isSensitiveInput
public boolean isSensitiveInput() -
isNoOutput
public boolean isNoOutput() -
getData
-
setInGamePlayerInfo
-
setSensitiveInput
public void setSensitiveInput(boolean sensitiveInput) -
setNoOutput
public void setNoOutput(boolean noOutput) -
equals
-
canEqual
-
hashCode
-
toString
-