Commit graph

13 commits

Author SHA1 Message Date
modmuss50
fb8d95dacb Split test mods into client and common. (#3033) 2023-05-01 14:04:29 +01:00
Kevin
1ee8be400a Added Client Message Events (#2646)
* Added Client Message Events

* Applied suggestions and fixed checkstyle

* Inject before fabric-command-api and updated Javadocs

* Updated Javadocs regarding client commands

* Update fabric-message-api-v1/src/client/resources/fabric-message-api-v1.client.mixins.json

Co-authored-by: Juuz <6596629+Juuxel@users.noreply.github.com>

* Updated Javadocs regarding commands

* Fixed duplicated package names

* Updated ClientMessageEvents.java Javadoc

Co-authored-by: Sideroo <109681866+Sideroo@users.noreply.github.com>

* Removed duplicated client commands Javadoc

* Added cancelled sending and receiving events

* Seperated send and receive events and changed event names

* Fixed checkstyle

* Added support for modifying messages

* Added client command test

* Added narration and message indicator support for modifying received messages

* Added tests for modifying messages

* Updated ClientReceiveMessageEvents#CHAT Javadocs

* Small Javadoc fixes

* Added Modify to names

* Always narrate original message

* Removed modifying receive chat message

* Split notify and modify events

* Fixed checkstyle

---------

Co-authored-by: Juuz <6596629+Juuxel@users.noreply.github.com>
Co-authored-by: Sideroo <109681866+Sideroo@users.noreply.github.com>
(cherry picked from commit c85585f870)
2023-02-23 10:15:16 +00:00
apple502j
6ede1da9e0
Message API: update javadoc for 22w42a (#2605) 2022-10-28 18:26:52 +01:00
modmuss50
75e98211bd
22w42a 🐫 (#2599)
Co-authored-by: shartte <shartte@users.noreply.github.com>
Co-authored-by: Juuz <6596629+Juuxel@users.noreply.github.com>
2022-10-22 20:38:33 +01:00
apple502j
93d8cb82e8
Fix many javadoc issues (#2526)
Co-authored-by: Juuz <6596629+Juuxel@users.noreply.github.com>
2022-09-25 14:45:12 +01:00
apple502j
176380a2b6 Message API: fix outdated and incorrect javadoc 2022-08-06 19:17:54 +01:00
Gegy
4e0178f48a
Fix: broadcast message headers when chat event is cancelled (#2426)
This resolves an issue where the chat signing chains for players would be broken when the server cancels a signed player message. This could lead to clients disconnecting after receiving any following message due to the broken chain.
2022-07-27 20:26:56 +01:00
modmuss50
8e190802a5 1.19.1-rc3 2022-07-26 20:53:20 +01:00
apple502j
e6c0642c7f
Message API: 1.19.1 changes (#2411)
* BREAKING: Add server param to game message events

* Update javadocs

* Update testmod

* Fix param name in testmod

* Update ServerMessageEvents.java
2022-07-24 16:07:05 +01:00
modmuss50
25a4c8239c 1.19.1-pre6 2022-07-20 19:47:52 +01:00
modmuss50
240720a216 1.19.1-pre4 2022-07-08 18:49:07 +01:00
modmuss50
d5533c01e6 1.19.1-pre2 2022-06-30 18:19:22 +01:00
apple502j
513f4a5977
Fabric Message API v1 (experimental) (#2220)
* Initial skeleton

* Fabric Chat API v1 (experimental)

* Run checkstyle

* Fix checkstyle (testmod)

* Support 1.19-pre1

* Fix spotless

* Fixes

* Remove caching of messages
This is hard to maintain and has several edge cases. Mods should cache themselves when needed.

* Make constructor private

* Add ServerChatEvents

* Update mappings

* Prepare for the rename

* Include chat decorator in exception

* Add support for blocking messages

* Rename to fabric-message-api-v1

* Update to 1.19-pre2

* Use fabric namespace

* Rename ChatDecoratorEvent

* Rename events and add more javadoc

* Rename ServerChatEvents

* Rename ChatDecorator

* Only block bad respawn point death in testmod

* Fix wrong word in javadoc

* Improve javadoc

Co-authored-by: modmuss50 <modmuss50@gmail.com>
2022-06-02 16:00:15 +01:00