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 [2019/11/16 02:14] i509vcbtutorial:commands [2019/11/16 04:35] liach
Line 441: Line 441:
 ===== Custom Arguments ===== ===== Custom Arguments =====
  
-Brigadier has support for custom argument types and this section goes into showing how to create a simple argument type. For this example we will create a UUIDArgumentType+Brigadier has support for custom argument types and this section goes into showing how to create a simple argument type.  
 + 
 +Warning: Custom arguments require client mod installation to be registered correctly! If you are making a server plugin, consider using existing argument type and a custom suggestions provider instead. 
 + 
 +For this example we will create a UUIDArgumentType.
  
 First create a class which extends ''ArgumentType''. Note that ArgumentType is a generic, so the generic will define what type the ArgumentType will return First create a class which extends ''ArgumentType''. Note that ArgumentType is a generic, so the generic will define what type the ArgumentType will return
tutorial/commands.txt · Last modified: 2024/02/23 14:22 by allen1210