Commit Graph

120 Commits

Author SHA1 Message Date
Noel Németh
9e5de35fa7
New command parser (#1235) 2022-07-25 19:34:40 +02:00
TheMode
366f08f7f9
Graph api (#1233) 2022-07-13 22:45:38 +02:00
TheMode
1cdee4a8e1
Revert "Initial graph api (#1230)" (#1231)
This reverts commit 3999c30961.
2022-07-13 01:16:18 +02:00
TheMode
3999c30961
Initial graph api (#1230) 2022-07-13 01:14:23 +02:00
Noel Németh
2a1abdbaf4 Fix subcommands not being added to the graph and (maybe) better separate responsibilities of the relevant classes 2022-07-05 01:36:42 +02:00
Noel Németh
793561e0cb
Simplify command graph generation (#1200) 2022-07-02 05:39:39 +02:00
GoldenStack
54a6bcd2af
Command Tests (#1199) 2022-07-02 02:12:07 +02:00
themode
3e184abc0f Unnecessary array util 2022-03-02 14:55:03 +01:00
TheMode
d316290ab8
Command test (#597) 2022-01-23 23:30:57 +01:00
TheMode
05de99f45f immutable packets (record) (#528) 2022-01-10 16:51:21 +01:00
TheMode
0f2ad33e52 Use java 17 toList()
Signed-off-by: TheMode <themode@outlook.fr>
2021-11-23 20:27:25 +01:00
Zak Shearman
49f64581dc
Fix CommandManager javadocs (#519) 2021-11-06 18:33:48 +01:00
TheMode
7891cc5bbe Use more instanceof pattern matching
Signed-off-by: TheMode <themode@outlook.fr>
2021-10-22 02:19:38 +02:00
TheMode
987e355a70 Cleanup basic command parsing 2021-08-19 09:06:24 +02:00
TheMode
9a74051cdb Use jdk method for array comparison 2021-08-01 14:00:57 +02:00
TheMode
4e93e52333 New command fix attempt 2021-07-18 17:19:48 +02:00
TheMode
a07177fbf0 Prevent IOB 2021-07-18 02:13:20 +02:00
TheMode
97104df793 Potentially fix command node creation 2021-07-18 01:09:59 +02:00
TheMode
93fa65f90b Temporary command node fix 2021-07-17 23:21:31 +02:00
TheMode
8b255651ab Call events using EventDispatcher 2021-06-04 03:48:51 +02:00
TheMode
cd0ea0c0c2 Remove deprecated CommandProcessor.java 2021-05-01 20:27:41 +02:00
TheMode
56439a2330 Merge branch 'master' into jline 2021-04-13 02:18:10 +02:00
jglrxavpok
930054385f More packets, just missing ChunkDataPacket 2021-03-30 19:50:55 +02:00
themode
e15d710bf8 Initial jline commit 2021-03-18 02:47:10 +01:00
themode
36d548ff35 Improve redirection match 2021-03-17 01:52:55 +01:00
themode
a8bb20fca6 Fix node index query 2021-03-15 12:56:05 +01:00
themode
78e12879b4 Fix redirection when the player doesn't have access to a command 2021-03-15 09:05:02 +01:00
themode
3c7a96dc4a Initial command redirection improvement 2021-03-15 09:01:29 +01:00
themode
1f7558c753 Deprecate CommandProcessor further, added SimpleCommand as a replacement 2021-03-11 03:02:13 +01:00
themode
441cb5a1db Initial command suggestion commit 2021-03-09 01:44:01 +01:00
themode
732fa0434a Properly return the command result UNKNOWN 2021-02-22 11:26:16 +01:00
themode
99be06f571 Revert to check shared command arguments 2021-02-20 19:18:28 +01:00
themode
bd840a868f Improve optional argument support & client-side brigadier suggestion 2021-02-20 13:10:12 +01:00
themode
a419d7eb3f Add subcommand support for fast parsing & proper separation between logics 2021-02-20 08:59:15 +01:00
themode
df2ee23a7c ArgumentLoop cleanup 2021-02-13 08:43:38 +01:00
themode
efd2dbc021 Fix command argument sharing 2021-02-12 04:34:37 +01:00
themode
84da72d798 Fix command aliases + cleanup 2021-02-12 00:00:44 +01:00
themode
f0105d7058 Added WIP ArgumentLoop (no parsing yet) 2021-02-11 20:36:02 +01:00
themode
f639ac83f7 Rewrite of the command nodes creation 2021-02-11 06:37:09 +01:00
themode
ab9ddebfea WIP ArgumentGroup nodes, renamed NodeMaker#addNodes 2021-02-11 05:08:49 +01:00
themode
053ef06ee1 Cleanup (moved some packet methods to DeclareCommandsPacket) and added CommandResult#getInput 2021-02-11 03:00:13 +01:00
themode
1a2fd4f743 Added NodeMaker + ArgumentCommand 2021-02-11 02:51:42 +01:00
themode
779490064e Root node should be at index 0 (to facilitate the future ArgumentCommand) 2021-02-11 00:58:10 +01:00
themode
9fc10bc051 Added CommandResult & moved ParsedCommand 2021-02-11 00:04:42 +01:00
LeoDog896
7854602a04 Remove unnecessary toNodes wrapper 2021-02-09 13:21:25 -05:00
LeoDog896
becd876dcd Put getNumberProperties into Number arg 2021-02-09 10:58:27 -05:00
LeoDog896
79ec9e6569 Add null checks for aliases 2021-02-09 09:26:53 -05:00
LeoDog896
3d74e74b9e Use redirection for aliases instead of repetition 2021-02-09 09:25:18 -05:00
LeoDog896
f20d8941a5 Put simpleArgumentNode into Argument 2021-02-08 21:03:55 -05:00
LeoDog896
8d7cce3044 Use collections for the correct situations 2021-02-08 19:11:47 -05:00