Commit Graph

433 Commits

Author SHA1 Message Date
mworzala
bcaa7df23d
feat: initial ArgumentItemStack reader, other minor fixes 2024-04-25 08:45:38 -04:00
mworzala
2b974d95f9
feat: more components 2024-04-25 08:45:34 -04:00
mworzala
a9e056a119
chore: more components 2024-04-25 08:45:34 -04:00
mworzala
5188c15245
feat: initial conversion to adventure nbt. no tests, no anvil 2024-04-25 08:45:11 -04:00
Spanner
fe46ed4ac2
Prioritise errors by chain length, build subcommands first (fix #1934) (#1935)
* Fix empty command chain causing NullPointerException

* Add test for empty command input

* Add test for #1934; subcommand priority issue

* Fix ConversionNode; process subcommands first

* Fix command error priority, add test for literal suggestions

* Test for subcommand priority in graph tests

(cherry picked from commit 2cdb3911b0)
2024-02-12 18:28:15 -05:00
iam
7320437640
Optionally load vanilla biomes (#1988)
* Add biomes from vanilla

* cleanup

* rework biomes

* nullability

* getByName string

* expose vanilla biomes

* not null

* before rename

* rename

* nbt cache

* fix

* fix

* fix

* final on vanilla biome
2024-02-12 15:25:46 -05:00
Spongecade
e9e58e4fce
Update Minecraft Wiki links to new domain
(cherry picked from commit 478eba12fb)
2024-02-09 15:03:05 -05:00
rockquiet
c421971eaa fix typo in builtin command conditions (#115)
(cherry picked from commit 3be7b09b7d)
2024-02-09 14:27:43 -05:00
Spanner
2be361448f Fix empty command chain causing NullPointerException (#1931)
* Fix empty command chain causing NullPointerException

* Add test for empty command input

(cherry picked from commit 3645d4311d)
(cherry picked from commit e2efdbb427)
2024-02-09 14:27:43 -05:00
Matt Worzala
6805c903f3 hollow-cube/command-parser-fixes (#54)
* Rewrite CommandParserImpl recursively (fix #1327)

* Fix for tests: CommandManagerTest, CommandParseTest

* Make attributes final inside Chain

* fix #1295 with argument type priority

* Don't include command name in list of arguments

* Add test for #1327

* Add test for #1295

* Fix suggestions with bad syntax

* Fix #1916

* Add test for #1916

* add failing test

* mess with arg order

* Fix `GraphImpl` causing syntax order issues

---------

Co-authored-by: Spanner <spanner77@protonmail.com>

(cherry picked from commit e9d0098418)
2024-02-09 14:27:43 -05:00
mworzala
5929b811ec return terminal 2024-02-09 14:27:43 -05:00
Matt Worzala
036e0b5ea3 hollow-cube/1.19.4_2 (#14)
* oopsie woopsie

* use double vector

* fix `minecraft:time` argument min property

(cherry picked from commit 6f11e42d46)
2024-02-09 14:27:43 -05:00
Matt Worzala
8f1f7e127d 1.19.4 (#11)
* first join

* add new entities

* fix type on interpolation duration

* switch long to var long

* switch long to var long, round 2

* add flags to TextDisplay

* 1.19.4

* setView in Entity#teleport

* do not trigger touchTick if entity physics are disabled

* Add new 1.19.4 packets

* constant expr

* no localhost on github actions

* yoinked changes from 1.19.3 main

* update to forked changes

* remove potion command

* remove potion command

---------

Co-authored-by: GreatWyrm <alecmusante@gmail.com>

(cherry picked from commit 7f3144337d)
2024-02-09 14:27:43 -05:00
mworzala
8335afdf47 hollow-cube/sender-in-command-arg-parsing
Signed-off-by: mworzala <mattheworzala@gmail.com>

fix default argument issue

(cherry picked from commit a7440639c8541faeb91155c53ce3a1f4d60df127)

Add sender to command parse chain

(cherry picked from commit 853307891d178abdc7036f8c809c52909cdca327)

(cherry picked from commit 1268cf16c0)
2024-02-09 14:27:43 -05:00
Spanner
2cdb3911b0
Prioritise errors by chain length, build subcommands first (fix #1934) (#1935)
* Fix empty command chain causing NullPointerException

* Add test for empty command input

* Add test for #1934; subcommand priority issue

* Fix ConversionNode; process subcommands first

* Fix command error priority, add test for literal suggestions

* Test for subcommand priority in graph tests
2023-09-07 08:58:34 -04:00
Spanner
3645d4311d
Fix empty command chain causing NullPointerException (#1931)
* Fix empty command chain causing NullPointerException

* Add test for empty command input
2023-09-01 17:14:18 -04:00
Spanner
2b8beadd3e
Rewrite CommandParserImpl recursively (fix #1327) (#1893)
* Rewrite CommandParserImpl recursively (fix #1327)

* Fix for tests: CommandManagerTest, CommandParseTest

* Make attributes final inside Chain

* fix #1295 with argument type priority

* Don't include command name in list of arguments

* Add test for #1327

* Add test for #1295

* Fix suggestions with bad syntax

* Fix #1916

* Add test for #1916

* Fix `GraphImpl` causing syntax order issues
2023-08-31 09:11:17 +10:00
Codestech
cb3892255e
1.19.3 (#1851)
* hollow-cube/1.19.3

Signed-off-by: mworzala <mattheworzala@gmail.com>

fix sounds v2

(cherry picked from commit e6d4a2cc919d6ab5aa9402cc871a70535069d803)

fix command packet

(cherry picked from commit f3efd64f7bd1d0473e0899d202268f77bab35abf)

fix sound effect packets

(cherry picked from commit 8530b37b354129a2149aafe2820183b28766be00)

remove named sound effect & fix sound effect, entity sound effect packet is still wrong

(cherry picked from commit 612f6065a12c465c07816c8551b1c44f17c21159)

update NamedSoundEffectPacket to 1.19.3

(cherry picked from commit 8c78d9beac96f94770f6fd0e9216452c3421bcfd)

update datagen, add read method to player info update (though it seems kinda broken)

(cherry picked from commit 6464a72dabc5edaf9b09ef1b8100815965bbad74)

Add ChatSession

Signed-off-by: TheMode <themode@outlook.fr>
(cherry picked from commit 0488915fda)

Unnecessary line change

Signed-off-by: TheMode <themode@outlook.fr>
(cherry picked from commit 915836f490)

Make tests compile

Signed-off-by: TheMode <themode@outlook.fr>
(cherry picked from commit 220217fcc1)

Fix info update

Signed-off-by: TheMode <themode@outlook.fr>

(cherry picked from commit 1a606285c0)

Fix unsigned message

Signed-off-by: TheMode <themode@outlook.fr>
(cherry picked from commit 7ba55fdfef)

1.19.3 support

(cherry picked from commit f09fdd862b)

* Cleanup

* Fix tests

* Fix tests round 2

* Cleanup round 2

* remove logback

* remove chatbound

* don't use magic numbers

* Fix formatting

* Unused imports

* Fix and add update display name packet test back

* Cleanup tests

* Bump minestom data

* Add ArgumentResource and ArgumentResourceOrTag

* Fix spacing

---------

Co-authored-by: themode <themode@outlook.fr>
Co-authored-by: KrystilizeNevaDies <tyreece@rozycki.family>
Co-authored-by: iam <iam4722202468@users.noreply.github.com>
2023-05-21 17:51:13 +03:00
Kezz
24cc458659
Implement some Adventure methods into ConsoleSender (#336)
* Implement some Adventure methods into ConsoleSender

* Remove getUuid from CommandSender/ConsoleSender

* rebase and review fixes

Co-authored-by: mworzala <mattheworzala@gmail.com>
2022-12-30 22:24:01 -05:00
TheMode
c95ced9493 Misc intellij suggestions
Signed-off-by: TheMode <themode@outlook.fr>
2022-10-27 15:25:51 +02:00
Huynh Tien
d7e958fa07
ComponentLogger & Colored Terminal (#1460) 2022-10-26 19:52:01 +02:00
TheMode
fc90fe8852 Remove some Collections usage
Signed-off-by: TheMode <themode@outlook.fr>
2022-09-06 15:08:36 +02:00
TheMode
1dd2cc72ee
1.19.2 (#774) 2022-09-05 13:54:58 +02:00
Noel Németh
9e5de35fa7
New command parser (#1235) 2022-07-25 19:34:40 +02:00
TheMode
d596992c0e
Include command aliases in graph (#1244) 2022-07-17 23:13:25 +02:00
TheMode
07a0fb129c Rename node executor
Signed-off-by: TheMode <themode@outlook.fr>
2022-07-17 22:41:28 +02:00
Noel Németh
c885ca1d7c
Fix index out of bounds when creating a command packet (#1243) 2022-07-17 20:28:14 +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
ba73c742f4 Fix syntax condition isn't checked when building the graph 2022-07-06 17:01:11 +02:00
TheMode
0309d12540 Test loop/group arguments
Signed-off-by: TheMode <themode@outlook.fr>
2022-07-06 11:12:08 +02:00
Noel Németh
10a2967f33 Fix wrapper arguments not forwarding node properties 2022-07-05 20:25:09 +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
Zak Shearman
a01ff09563
Return null, don't throw NullPointerException (#1131) 2022-05-28 11:39:50 +02:00
TheMode
f2fec73202
Tag internal rework (#782) 2022-03-20 01:47:57 +01:00
themode
b906bd89ce Oops 2022-03-10 16:07:56 +01: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
0366027c5d Misc cleanup
Signed-off-by: TheMode <themode@outlook.fr>
2022-01-12 22:15:50 +01:00
Xavier Niochaut
9ab4277502 Port to Hephaistos v2 (#424) 2022-01-10 16:51:21 +01:00
TheMode
05de99f45f immutable packets (record) (#528) 2022-01-10 16:51:21 +01:00
TheMode
3fa7a0ba4b Deprecate unsafe casting methods
Signed-off-by: TheMode <themode@outlook.fr>
2021-11-23 20:38:57 +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
LeoDog896
811e3c542b Fix up tab completion for EntityType 2021-08-25 18:35:51 -04:00
TheMode
f1c9268897 Catch Throwable instead of Exception 2021-08-22 18:35:19 +02:00