User Tools

Site Tools


tutorial:commands

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
tutorial:commands [2020/06/14 01:13] – [Creating Commands] Slight clarification i509vcbtutorial:commands [2020/06/14 01:17] – [CommandContexts] Command context is two words i509vcb
Line 72: Line 72:
 The execute blocks specify the command to be ran. As Brigadier's Command is a functional interface you can use lambdas to specify commands. The execute blocks specify the command to be ran. As Brigadier's Command is a functional interface you can use lambdas to specify commands.
  
-==== CommandContexts ====+==== Command Context ====
  
 When a command is ran, Brigadier provides a ''CommandContext'' to the command that is ran.  When a command is ran, Brigadier provides a ''CommandContext'' to the command that is ran. 
-The CommandContext contains all arguments and other objects such as the inputted String and the ''Command Source'' (ServerCommandSource in Minecraft's implementation).+The command context contains all arguments and other objects such as the inputted String and the ''Command Source'' (ServerCommandSource in Minecraft's implementation).
  
 ==== Arguments ==== ==== Arguments ====
tutorial/commands.txt · Last modified: 2024/02/23 14:22 by allen1210