Commit Graph

44 Commits

Author SHA1 Message Date
TheMode fc90fe8852 Remove some `Collections` usage
Signed-off-by: TheMode <themode@outlook.fr>
2022-09-06 15:08:36 +02:00
TheMode 7891cc5bbe Use more instanceof pattern matching
Signed-off-by: TheMode <themode@outlook.fr>
2021-10-22 02:19:38 +02:00
TheMode 4db3b9317d Replace google Beta annotation to jetbrains ApiStatus.Experimental 2021-06-20 21:48:07 +02:00
TheMode fd5f45adcd Remove unused method 2021-06-16 21:46:13 +02:00
TheMode 88dba380f9 Remove apache common text dependency 2021-05-15 08:31:24 +02:00
TheMode e4680d1f8d Fix syntaxes tree branching when a literal is present in the middle of a syntax 2021-05-05 00:01:50 +02:00
TheMode 4b6026f18d Remove unnecessary scopes 2021-05-04 23:15:20 +02:00
TheMode dfcf908abc Initial command syntaxes tree attempt 2021-05-04 23:00:38 +02:00
TheMode 5e385c7c9b Fix section resize performance 2021-04-25 12:39:18 +02:00
TheMode dd88a14b90 Remove unused class 2021-04-18 00:19:57 +02:00
themode 45d3b7158c Use a Supplier in Argument#setDefaultValue, fix all-optional syntaxes missing arguments 2021-03-30 20:29:50 +02:00
themode 27cfe9c92b Rename Command#addConditionalSyntax 2021-03-27 18:28:10 +01:00
themode a47bf24034 Added support for empty syntax 2021-03-12 22:10:03 +01:00
themode 67b3b37813 Replace Arguments by CommandContext 2021-03-10 06:38:51 +01:00
themode a419d7eb3f Add subcommand support for fast parsing & proper separation between logics 2021-02-20 08:59:15 +01:00
themode 1c65b36087 Rework of ArgumentCallback to be more robust, allowing to simplify all argument types in order to be used out of the command framework for general parsing.
Also removed magic space string, replaced with constant from commons apache library
2021-01-08 03:07:37 +01:00
themode 3a7ae11c56 Add CommandSender as param in onDynamicWrite 2021-01-05 18:04:28 +01:00
themode 4bf120b714 Added support for command syntaxes with optional arguments (default values) 2021-01-01 23:36:53 +01:00
Felix Cravic 3c0fa42758 Precision in the documentation, syntax argument count needs to be higher than 0 2020-12-05 16:19:54 +01:00
Felix Cravic 369910aea4 Fixed a terrible typo 2020-12-01 18:52:37 +01:00
Felix Cravic 75e3ffde8d Comments for FollowTargetGoal 2020-11-29 22:19:13 +01:00
Felix Cravic b6aa81bbbf Prevent adding a command syntax without any argument 2020-11-29 21:34:54 +01:00
Felix Cravic daa72719a0 Specify that ASK_SERVER is required for dynamic write callback 2020-11-22 23:04:06 +01:00
themode da94942bad Created PermissionHandler 2020-11-14 07:06:46 +01:00
themode 3ddca82aaa Cleanup 2 2020-11-10 08:01:27 +01:00
themode 9781e380b9 Command syntaxes can now contain a CommandCondition 2020-11-04 04:45:46 +01:00
themode 6d29f955e4 More comments for the command API, Arguments methods are NotNull since id should not be decided at runtime 2020-10-30 18:43:14 +01:00
themode 872dccd7ce Small cleanup 2020-10-29 22:52:07 +01:00
themode c887392a91 CommandDispatcher comments for maintenance purpose and fixed all code warnings 2020-10-29 19:51:10 +01:00
themode cb28fdc208 Annotations for data & command 2020-10-24 16:58:27 +02:00
themode 3e4ccbe75a Usage sample for every Argument 2020-10-17 11:29:05 +02:00
themode 660a67e53e English fix 2020-10-15 21:16:31 +02:00
themode 5f7261cd6e Comments 2020-10-11 18:35:32 +02:00
themode 8badd5bb4d Fix invalid javadoc format 2020-10-11 17:05:02 +02:00
themode e783d33767 Fix comment typo in Command 2020-10-11 15:42:22 +02:00
themode f2004f1ecd More comments for the command API 2020-10-11 15:27:23 +02:00
themode 28332cd09d Command comments 2020-10-08 01:28:40 +02:00
themode af369dedde Added Command global listener 2020-10-08 01:21:15 +02:00
themode f811f1efef Comments cleanup 2020-10-06 21:03:00 +02:00
jglrxavpok b6fc3ee978 Publish with Javadoc & Sources 2020-09-20 15:04:07 +02:00
Felix Cravic aecf0f427a Added dynamic arguments for Command (allow for server tab completion) 2020-08-04 06:14:42 +02:00
Felix Cravic 287f7e64a3 Added command javadoc 2020-07-21 18:04:02 +02:00
Felix Cravic c8f2c9c078 Remove command generic + WIP target selector 2020-07-14 13:35:07 +02:00
Felix Cravic ccf8038f62 CommandBuilder is now integrated in Minestom directly 2020-07-10 16:37:18 +02:00