Max
d022087cd5
Add support for adding PacketTransformers to SimpleNetworkManager messages ( #379 )
...
[ci skip]
* Add support for adding PacketTransformers to SimpleNetworkManager messages
* Mark new methods as experimental, add javadocs
* Update common/src/main/java/dev/architectury/networking/simple/SimpleNetworkManager.java
* Update common/src/main/java/dev/architectury/networking/simple/SimpleNetworkManager.java
Co-authored-by: shedaniel <daniel@shedaniel.me >
2023-02-06 17:53:24 +01:00
shedaniel
796ee4fc14
Fix SplitPacketTransformer not saving enough space for packet id ( #273 )
2022-06-09 19:16:14 +08:00
shedaniel
23c5587442
Fix split packet transformer splitting into wrong parts, minus 10 more bytes for safety ( #270 )
2022-05-28 13:30:39 +02:00
Max
8b282f5c5a
3.4 : License and workflow updates, deprecate NbtType, merge #159 and #160
...
Signed-off-by: Max <maxh2709@gmail.com >
2021-12-31 23:06:44 +01:00
shedaniel
6a6cad7025
[ci skip] Introduce EntitySpawnExtension ( #160 )
...
* Introduce EntitySpawnExtension
* Add to mixins
* Update common/src/main/java/dev/architectury/extensions/network/EntitySpawnExtension.java
* Update common/src/main/java/dev/architectury/networking/NetworkManager.java
Co-authored-by: Juuxel <6596629+Juuxel@users.noreply.github.com >
2021-12-31 22:35:40 +01:00
shedaniel
db6ae9934f
Don't release non split packets, bump minor version because we didn't
2021-10-23 19:12:41 +08:00
shedaniel
a6a361e5e1
Add support for PacketTransformer and a SplitPacketTransformer ( #142 )
...
* Add support for PacketTransformer and a SplitPacketTransformer
* Add testmod and make it work
* Add experimental, Remove generics, they are pointless
2021-10-23 18:27:28 +08:00
LatvianModder
5b7cb36414
Added SimpleNetworkManager ( #120 )
...
Signed-off-by: shedaniel <daniel@shedaniel.me >
Co-authored-by: Juuz <6596629+Juuxel@users.noreply.github.com >
Co-authored-by: shedaniel <daniel@shedaniel.me >
2021-07-12 12:13:07 +08:00
shedaniel
8b262d07c0
Refactor and 1.17-pre1 ( #96 )
...
* Fix #94
Signed-off-by: shedaniel <daniel@shedaniel.me >
* Add Chunk data save and load events, closes #89 (#92 )
* Created Chunk save and load event. Closes #89
* Fixed missing licence
* Update common/src/main/java/me/shedaniel/architectury/event/events/ChunkEvent.java
* Update common/src/main/java/me/shedaniel/architectury/event/events/ChunkEvent.java
* Update common/src/main/java/me/shedaniel/architectury/event/events/ChunkEvent.java
* Supply ServerLevel in ChunkEvent.LOAD, style cleanup
Signed-off-by: shedaniel <daniel@shedaniel.me >
* Add "Data" suffix to Chunk IO Events and mark level as nullable for load
* Update common/src/main/java/me/shedaniel/architectury/event/events/ChunkEvent.java
* Bump to 1.16
Co-authored-by: shedaniel <daniel@shedaniel.me >
Co-authored-by: Max <maxh2709@gmail.com >
* Update pr.yml
* Add NetworkManager hook for Entity spawn packets (#88 )
* New utility hook for creating a entity spawn packet. before every mod had to implement this in itself.
* Apply suggestions from code review
Co-authored-by: shedaniel <daniel@shedaniel.me >
* Update common/src/main/java/me/shedaniel/architectury/networking/NetworkManager.java
* Update common/src/main/java/me/shedaniel/architectury/networking/NetworkManager.java
* Properly implement SpawnEntityPacket & Format style
Signed-off-by: shedaniel <daniel@shedaniel.me >
* Format
Signed-off-by: shedaniel <daniel@shedaniel.me >
* createEntitySpawnPacket -> createAddEntityPacket for mojmap consistency
Signed-off-by: shedaniel <daniel@shedaniel.me >
* Bump version to 1.17
Co-authored-by: Max <maxh2709@gmail.com >
Co-authored-by: shedaniel <daniel@shedaniel.me >
* Add Javadocs for all events (#91 )
* javadoc for ClientChatEvent
* javadoc for ClientPlayerEvent
* javadoc for ClientRawInputEvent
* Added javadoc for ClientScreenInputEvent
* Bit refactoring and removed javadoc @see to the caller methods
* Add javadoc for BlockEvent
* Add javadoc for ChatEvent
* Add javadoc for CommandPerformEvent and CommandRegistrationEvent
* Add javadoc for EntityEvent
* Add javadoc for ExplosionEvent
* Add javadoc for GuiEvent
* Add javadoc for InteractionEvent
* Add javadoc for LightningEvent, RecipeUpdateEvent & TextureStitchEvent
* Add javadoc for LifecycleEvent & ClientLifecycleEvent
* Add javadoc for TooltipEvent
* Add javadoc for TickEvent and partly PlayerEvent
* More javadoc for PlayerEvent
* Finally all event have javadoc
* Update common/src/main/java/me/shedaniel/architectury/event/events/CommandPerformEvent.java
Co-authored-by: Juuxel <6596629+Juuxel@users.noreply.github.com >
* Update common/src/main/java/me/shedaniel/architectury/event/events/CommandPerformEvent.java
Co-authored-by: Juuxel <6596629+Juuxel@users.noreply.github.com >
* Update common/src/main/java/me/shedaniel/architectury/event/events/CommandPerformEvent.java
Co-authored-by: Juuxel <6596629+Juuxel@users.noreply.github.com >
* Update common/src/main/java/me/shedaniel/architectury/event/events/ChatEvent.java
Co-authored-by: Juuxel <6596629+Juuxel@users.noreply.github.com >
* Update common/src/main/java/me/shedaniel/architectury/event/events/CommandRegistrationEvent.java
Co-authored-by: Juuxel <6596629+Juuxel@users.noreply.github.com >
* Update common/src/main/java/me/shedaniel/architectury/event/events/EntityEvent.java
Co-authored-by: Juuxel <6596629+Juuxel@users.noreply.github.com >
* Update common/src/main/java/me/shedaniel/architectury/event/events/EntityEvent.java
Co-authored-by: Juuxel <6596629+Juuxel@users.noreply.github.com >
* Update common/src/main/java/me/shedaniel/architectury/event/events/EntityEvent.java
Co-authored-by: Juuxel <6596629+Juuxel@users.noreply.github.com >
* Update common/src/main/java/me/shedaniel/architectury/event/events/EntityEvent.java
Co-authored-by: Juuxel <6596629+Juuxel@users.noreply.github.com >
* Update common/src/main/java/me/shedaniel/architectury/event/events/client/ClientScreenInputEvent.java
Co-authored-by: Juuxel <6596629+Juuxel@users.noreply.github.com >
* Update common/src/main/java/me/shedaniel/architectury/event/events/client/ClientScreenInputEvent.java
Co-authored-by: Juuxel <6596629+Juuxel@users.noreply.github.com >
* Update common/src/main/java/me/shedaniel/architectury/event/events/BlockEvent.java
Co-authored-by: Max <maxh2709@gmail.com >
* Update common/src/main/java/me/shedaniel/architectury/event/events/BlockEvent.java
Co-authored-by: Max <maxh2709@gmail.com >
* Update common/src/main/java/me/shedaniel/architectury/event/events/BlockEvent.java
Co-authored-by: Max <maxh2709@gmail.com >
* Update common/src/main/java/me/shedaniel/architectury/event/events/BlockEvent.java
Co-authored-by: Max <maxh2709@gmail.com >
* Update common/src/main/java/me/shedaniel/architectury/event/events/LifecycleEvent.java
Co-authored-by: Max <maxh2709@gmail.com >
* Update common/src/main/java/me/shedaniel/architectury/event/events/LifecycleEvent.java
Co-authored-by: Max <maxh2709@gmail.com >
* Update common/src/main/java/me/shedaniel/architectury/event/events/LifecycleEvent.java
Co-authored-by: Max <maxh2709@gmail.com >
* Update common/src/main/java/me/shedaniel/architectury/event/events/PlayerEvent.java
Co-authored-by: Max <maxh2709@gmail.com >
* Apply suggestions from code review
Co-authored-by: Max <maxh2709@gmail.com >
Co-authored-by: Juuxel <6596629+Juuxel@users.noreply.github.com >
* Apply suggestions from code review
Co-authored-by: Juuxel <6596629+Juuxel@users.noreply.github.com >
Co-authored-by: Max <maxh2709@gmail.com >
* Apply suggestions from code review
Co-authored-by: Max <maxh2709@gmail.com >
Co-authored-by: Juuxel <6596629+Juuxel@users.noreply.github.com >
* Apply suggestions from code review
Co-authored-by: Max <maxh2709@gmail.com >
Co-authored-by: Juuxel <6596629+Juuxel@users.noreply.github.com >
* Apply suggestions from code review
Co-authored-by: Max <maxh2709@gmail.com >
Co-authored-by: Juuxel <6596629+Juuxel@users.noreply.github.com >
* Apply suggestions from code review
* Apply suggestions from code review
Co-authored-by: shedaniel <daniel@shedaniel.me >
* Applied some more reviews
* Applied some more reviews
* Applied suggestions
* Reformat and apply some minor suggestions
* Apply suggestions from review (first batch)
* Remove double return javadoc
* Apply suggestions from code review
Co-authored-by: shedaniel <daniel@shedaniel.me >
* Add "scaled" to mouse coordinates
* Final touches
Signed-off-by: shedaniel <daniel@shedaniel.me >
* Remove invalid tips
Signed-off-by: shedaniel <daniel@shedaniel.me >
Co-authored-by: Juuxel <6596629+Juuxel@users.noreply.github.com >
Co-authored-by: Max <maxh2709@gmail.com >
Co-authored-by: shedaniel <daniel@shedaniel.me >
* Refactor
Signed-off-by: shedaniel <daniel@shedaniel.me >
* Update common/src/main/java/dev/architectury/event/events/common/InteractionEvent.java
Co-authored-by: Max <maxh2709@gmail.com >
* Apply suggestions from code review
Co-authored-by: Max <maxh2709@gmail.com >
* attack -> hurt
Signed-off-by: shedaniel <daniel@shedaniel.me >
* Update @param for InteractionEvent#FARMLAND_TRAMPLE
Signed-off-by: shedaniel <daniel@shedaniel.me >
* world -> level
Signed-off-by: shedaniel <daniel@shedaniel.me >
* Relocate hooks
Signed-off-by: shedaniel <daniel@shedaniel.me >
* Organize imports
Signed-off-by: shedaniel <daniel@shedaniel.me >
* Registry -> Registrar Please voice out your opinion!!
Signed-off-by: shedaniel <daniel@shedaniel.me >
* Some more renames
itemOptional -> optionalItem
RegistryBuilder -> RegistrarBuilder
RegistryOption -> RegistrarOption
Not forcing RegistryEntry on new registries, vanilla types don't have them
Signed-off-by: shedaniel <daniel@shedaniel.me >
* Java 16-ification
Signed-off-by: shedaniel <daniel@shedaniel.me >
* Optimise imports after the var change
Signed-off-by: shedaniel <daniel@shedaniel.me >
* Un-minimize architectury-common.mixins.json
Signed-off-by: shedaniel <daniel@shedaniel.me >
Co-authored-by: canitzp <12819060+canitzp@users.noreply.github.com >
Co-authored-by: Max <maxh2709@gmail.com >
Co-authored-by: Juuxel <6596629+Juuxel@users.noreply.github.com >
2021-05-30 19:08:11 +08:00