Commit graph

11 commits

Author SHA1 Message Date
extremeheat
9b029e8b6f
1.20.5 (#1309)
* 1.20.5

* update examples

* Update for 1.20.5 chat_command_signed with seperateSignedChatCommandPacket feature

* updates

* update java

* re-enable packet tests

* Update client.js

add debug code after decompress

* Update client.js

* Update ci.yml

* Add `arrayWithLengthOffset` type to interpeter

* Update minecraft.js

* Update compiler-minecraft.js

* Update minecraft.js

* lint

* remote custom ci install

* Update package.json

* Update packetTest.js add Slot, SlotComponent

* Update packetTest.js

* Update packetTest.js

* Fix lint.

* Fix declare_recipes, Slot

* Update package.json

---------

Co-authored-by: Romain Beaumont <romain.rom1@gmail.com>
2024-10-12 23:55:36 +02:00
William Gaylord
1d9a38253a
1.20.3 / 1.20.4 support (#1275)
* Inital 1.20.3 update, bring in minecraft-data with 1.20.3 support and add it to the versions

* Add data for packetTest for explosion packet.

* Add 1.20.4 to version list.

* Add fix for 1.20.3+ NBT isntead of strings for chat. Not happy with this but it does work.

* Fix linting

* Update version.js

Remove 1.20.3 since its the same as 1.20.4. (As suggested)

* Comment how handleNBTStrings works.

* Removed debug console.log

* Update README.md

* chat packet nbt handling fix, use feature

* big endian UUID, add back `text` wrapper

* use prismarine-chat in client test

* expose _handleNbtComponent

* use prismarine-chat exposed processNbtMessage

* fix pre-1.20.4

* Update package.json

* Update server.js

* Update server.js

add missing import

* update server hello world

---------

Co-authored-by: Romain Beaumont <romain.rom1@gmail.com>
Co-authored-by: extremeheat <extreme@protonmail.ch>
2024-02-26 01:14:49 +01:00
Frej Alexander Nielsen
cf1f67117d
Update to 1.19.3 (#1069)
* Add 1.19.3 player_info parsing

* player_remove packet parsing

* 1.19.3 chat parsing

* Outgoing chat for 1.19.3

* Fix lint

* Server chat validation

* add 1.19.2 and 1.19.3 in version.js

* Add 1.19.2 and 1.19.3 in ci.yml

* Deprecated client.verifyMessage for server clients

* Update docs

* Deprecate client.verifyMessage for server clients

* Fix tests

* Fix lint

* Fix packetTest

* Fix test

* Remove unneeded log statement

* Update types/docs

* Remove unnecessary feature check

* Remove _session from docs

Co-authored-by: Romain Beaumont <romain.rom1@gmail.com>
2023-01-21 20:31:17 +01:00
extremeheat
367c01567c
Initial 1.19.1/2 signed chat support (#1050)
* Initial 1.19.1/2 signed chat impl

* lint

* remove node 15 nullish operators

* fix undefined uuid error

* handle player left

* fix

* add some feature flags

* fix

* Fix test to use new client.chat() wrapper method

* refactoring

* corrections, working client example

* refactoring

* message expiry checking

* Fix UUID write serialization

* Remove padding from client login to match vanilla client

* Fix server verification

* update packet field terminology

* Add some tech docs
Rename `map` field in Pending to not conflict with Array.map method

* update tech doc

* lint

* Bump mcdata and pauth

* add doc on playerChat event, .chat function

* update doc

* use supportFeature, update doc

Co-authored-by: Romain Beaumont <romain.rom1@gmail.com>
2023-01-14 20:33:04 +01:00
extremeheat
d7c5053a13
1.19.0 support (#1027)
* Bump mcdata for 1.19

* 1.19 in version.js

* 1.19.0 in ci yml

* Update ci.yml

* Update version.js

* Update package.json

* No fail fast

* Update mcdata

* Update package.json

* Update ci.yml

* [1.19] fix tests and library session code (#1020)

* make tests work, add todo's

* clean up, varlong test, additional todo

* removed log statements, fix for older versions

* Update mcdata

* Update ci.yml

* Update ci.yml

* remove excessive version comments near supportFeature checks

Co-authored-by: Romain Beaumont <romain.rom1@gmail.com>

* chat signing implementation

* Update ci.yml

* move some boilerplate to pauth

* update tests

* update chat example

* bump pauth, update doc

* modify test nextMessage func

* lint

* update default version

* add server player verifyMessage

* update doc

Co-authored-by: Romain Beaumont <romain.rom1@gmail.com>
Co-authored-by: Rob9315 <dev.robk@gmail.com>
2022-08-16 00:57:26 +02:00
Jordan Jones
4d5dbb118e
automatic port "discovery" for packets and server tests (#870)
* automatic port "discovery" for packets and server tests

* Semi-colon begone!

* move getport to commons file - u9g

* Merge code
2021-06-28 22:58:21 -04:00
u9g
3813d4de7d
Make ci clearer as to what version is being tested (#861)
* Make ci clearer as to what version is being tested

* Update ci.yml

* fix

* fix
2021-06-13 04:54:16 +02:00
Romain Beaumont
0bd2e559bd
run standard 1.12 --fix 2018-09-24 22:08:11 +02:00
Romain Beaumont
e3e0a26dfe
change codestyle to standard + enforce it with circle ci 2018-05-13 22:50:16 +02:00
Romain Beaumont
79f82afb91
var -> const/let in examples and tests 2017-07-13 14:03:52 +02:00
Romain Beaumont
20dd0710f2 parallel circle ci testing of clientTest.js (#373) (#449)
parallel testing with circle ci, solve #373
2017-05-10 02:49:13 +02:00