retrooper
d27d8ffd6a
packetevents 2.9.2 release
2025-07-17 15:18:28 +02:00
retrooper
7a57012822
Revert "Cleanup gradle configuration mess"
...
This reverts commit cfb054b8b2 .
2025-07-17 14:01:23 +02:00
retrooper
0a10f4d861
Merge pull request #1265 from Luuzzi/2.0
...
fix spawn position for versions lower than 1.8 & protocol 4 support
2025-07-13 22:52:41 +02:00
retrooper
d1a3145483
Merge pull request #1300 from GrimAnticheat/feature/read-list-max-size
...
Add new readList(Reader<K> reader, int maxSize) function to PacketWrapper
2025-07-13 22:46:25 +02:00
retrooper
08096106f8
patch: UserLoginEvent always fired in PlayerJoinEvent to provide UUID and username (so it's not a breaking change).
2025-07-13 22:41:22 +02:00
Luuzzi
a3fbccc454
1.7.5 and lower doesn't have action START_JUMPING_WITH_HORSE
2025-07-13 20:36:10 +03:00
Luuzzi
9ea931d58d
resolve #1301
2025-07-13 20:19:39 +03:00
Alexandr
364be4e34d
Merge branch 'retrooper:2.0' into 2.0
2025-07-12 19:11:19 +03:00
Axionize
b22394c288
Add new readList(Reader<K> reader, int maxSize) function to PacketWrapper
2025-07-12 09:49:19 -04:00
retrooper
208dfbc3f3
Merge pull request #1294 from booky10/fix/gradle-config-mess
...
Cleanup gradle configuration mess
2025-07-10 09:11:36 +02:00
booky10
cfb054b8b2
Cleanup gradle configuration mess
2025-07-10 04:58:23 +02:00
booky10
f47e6880fd
[skip ci] Add fabric production run task
2025-07-10 02:53:39 +02:00
booky10
f55f791f8a
[skip ci] Update gradle wrapper to v8.14.3
2025-07-10 02:53:38 +02:00
booky10
ba389ddb57
[skip ci] Fix changelog
2025-07-10 02:53:38 +02:00
booky10
2ce143d466
[skip ci] Increment version to v2.9.2 snapshot
2025-07-10 02:53:38 +02:00
booky10
b7f99503d9
Release packetevents v2.9.1
2025-07-10 02:14:43 +02:00
booky10
52adfbae8a
Fix "publishMods" task name breaking shadow jar exclusions
...
This should be fixed properly, this is just a quick fix to get out a proper release
2025-07-10 02:08:11 +02:00
booky10
a861066cab
Don't copy artifacts to root build directory
2025-07-10 02:07:21 +02:00
retrooper
1acec02bfb
PacketEvents 2.9.1 snapshot
2025-07-10 01:27:48 +02:00
retrooper
b88857386a
Release PacketEvents 2.9.0
2025-07-10 00:42:32 +02:00
retrooper
4c48d4c1df
Merge pull request #1291 from booky10/feat/publishing-workflow
...
Automatic release publishing
2025-07-10 00:34:47 +02:00
retrooper
68f8fd3d03
Merge pull request #1290 from booky10/fix/recursive-dialog-resolving
...
Store dialog click event field as reference for names
2025-07-10 00:29:56 +02:00
retrooper
2d625c6e7a
feat: add setters to WrapperPlayServerWorldBorder
2025-07-10 00:15:19 +02:00
booky10
83fe2cce0d
Revert "Setup testing setup v2"
...
This reverts commit 11e4033ec6 .
2025-07-09 23:46:20 +02:00
booky10
73bfaebab6
Fix publishing type for github release
...
Was stable even for snapshots because version isn't set yet in root project
2025-07-09 23:39:57 +02:00
booky10
2ac61fd5cb
Fix snapshot detection
2025-07-09 23:30:04 +02:00
booky10
7d31150b35
Add v2.6.0 and v2.7.0 changelogs to CHANGELOG.md
2025-07-09 23:28:19 +02:00
booky10
11e4033ec6
Setup testing setup v2
2025-07-09 23:20:51 +02:00
booky10
a6a8866727
Revert "Setup testing setup"
...
This reverts commit 84a0759288 .
2025-07-09 23:20:08 +02:00
booky10
ce61c3ef52
Fix github tag name
2025-07-09 23:13:50 +02:00
retrooper
4602ea8107
Merge pull request #1251 from booky10/fix/attempt-fixing-random-login-race-condition-injection-issues
...
Attempt fixing random login race condition injection issues
2025-07-09 23:12:48 +02:00
booky10
5fb1a6c85e
Write changelog to github output instead of stdout
2025-07-09 23:12:05 +02:00
retrooper
7e2ac525ac
Merge pull request #1287 from booky10/feat/effect-wrapper
...
Add missing WrapperPlayServerEffect
2025-07-09 23:07:55 +02:00
booky10
7590d6f7de
Fix missing loaders field for modrinth publishing
2025-07-09 22:58:24 +02:00
booky10
d7c2284ccb
Add gradle preparation step to release workflow
2025-07-09 22:51:30 +02:00
booky10
84a0759288
Setup testing setup
2025-07-09 22:46:10 +02:00
booky10
0ca8e27fc8
Finish implementing release workflow
2025-07-09 22:43:04 +02:00
retrooper
5e30aef0a1
patch: correction of WORLD_BORDER wrapper
2025-07-09 21:26:31 +02:00
retrooper
9e53791fef
patch: WrapperPlayServerWorldBorder exception fix for 1.8-1.11.2
2025-07-09 21:12:06 +02:00
booky10
8346918e86
Start implementing release automation workflow
2025-07-09 19:30:31 +02:00
booky10
7714c6253a
Store dialog click event field as reference for names
2025-07-09 18:19:35 +02:00
booky10
0a00e970d7
Access ResourceKey location using fields instead of methods
...
Method order is sort-of unpredictable, my test in 1.21.4/1.21.6 resulted in the registry name being returned instead of the registry entry's name
2025-07-09 17:37:31 +02:00
retrooper
d0dd8dc4cd
patch: potentially fix SpigotConversionUtil#typeFromBukkitWorld for 1.17+
2025-07-09 17:18:16 +02:00
booky10 and jtJava
bc01609828
Add missing WrapperPlayServerEffect
...
Based on https://github.com/retrooper/packetevents/pull/702
Fixes https://github.com/retrooper/packetevents/issues/415
Fixes https://github.com/retrooper/packetevents/pull/423
Co-authored-by: jtJava <ilovefuud@gmail.com >
2025-07-09 16:59:44 +02:00
booky10
c6e7bcb980
Remove useless zero-byte-suffix for chunk data
...
Mojang fixed the issue in 1.21.6, but we forgot to remove our fix too
2025-07-09 16:33:27 +02:00
booky10
8987194030
Fix changes to ChatMessage
...
Some small fixes to https://github.com/retrooper/packetevents/pull/1267
* Uses consistent version-specific gson serializer instead of platform-dependent one
* Uses component getters/setters instead of directly accessing field to allow for overrides to work
2025-07-09 15:52:45 +02:00
booky10
4495db796d
Update comment in PlayerManagerImpl
2025-07-09 15:44:29 +02:00
booky10
e1a29a20a7
Small cleanup for listeners
2025-07-09 15:40:57 +02:00
booky10
bd5ef7cb30
Update to support paper's configuration api
...
Paper no longer creates the player object during the configuration phase, like vanilla
Also, paper has removed the early connection reference in the player object added by CraftBukkit in 1.20.5
PacketEvents now uses the pre-1.20.5 logic for extracting the player reference
As a result, all handshake/status/login/config packets won't have access to the player object;
play packets should always have the player set
2025-07-09 15:38:15 +02:00
booky10
36363c885c
Merge branch '2.0' into fix/attempt-fixing-random-login-race-condition-injection-issues
2025-07-09 14:42:12 +02:00
retrooper
a198f0e8d6
Merge pull request #1286 from retrooper/revert-1250-dev
...
Revert "Refactor TaskWrapper into interface and implementation classes"
2025-07-08 19:39:41 +02:00
retrooper
69cbe1e405
Revert "Refactor TaskWrapper into interface and implementation classes"
2025-07-08 19:39:19 +02:00
retrooper
2b0ec87da6
Merge pull request #1250 from ShortyDev/dev
...
Refactor TaskWrapper into interface and implementation classes
2025-07-08 14:46:55 +02:00
retrooper
08f95b8036
Merge branch '2.0' of https://github.com/retrooper/packetevents into 2.0
2025-07-08 14:34:42 +02:00
retrooper
a15ad3a8d7
patch: typo, put actual code in comment; also removed previous sponsor of computational servers;
2025-07-08 14:34:35 +02:00
retrooper
fef7f983b0
Merge pull request #1267 from iiAhmedYT/patch-1
...
Allow getting/setting json in ChatMessage
2025-07-08 14:27:57 +02:00
retrooper
71eae683fb
Merge remote-tracking branch 'origin/2.0' into 2.0
2025-07-08 14:21:22 +02:00
retrooper
f692f41025
patch: fix the plugin disabling on unsupported version check
2025-07-08 14:21:09 +02:00
retrooper
3b4acde6f8
Merge pull request #1273 from ineanto/2.0
...
feat: add RemoteChatSession getter
2025-07-08 14:13:17 +02:00
retrooper
6b14595582
patch: import optimization in spigot reflection util
2025-07-08 13:40:58 +02:00
retrooper
50c2a69449
patch: packetevents disables itself when running on an unsupported Minecraft version;
...
changing "packetevents 2.0 failed to inject" message;
2025-07-07 19:32:23 +02:00
Alexandr
b62fc6922c
Merge branch 'retrooper:2.0' into 2.0
2025-06-30 06:55:33 +03:00
booky
1b5479f04f
Merge pull request #1269 from HSGamer/2.0
...
correctly parse payload in WrapperCommonClientCustomClickAction
2025-06-29 17:20:13 +02:00
booky10
ac0041ff52
Read nbt end tags as null for custom click action packet
2025-06-29 17:13:25 +02:00
Luuzzi
c6f129cdd3
added setData and getData to WrappedBlockState
2025-06-28 22:49:57 +03:00
ineanto
21226e6ac9
feat: add remote chat session getter via reflection
2025-06-28 21:41:46 +02:00
hsgamer
b14f5f5031
correctly parse payload in WrapperCommonClientCustomClickAction
...
the payload is either an NBT or NBTEnd, but no boolean byte. So we don't have to check optional
close #1268
2025-06-27 13:22:11 +07:00
Ahmed Waleed
6ff9f8c401
Allow getting/setting json in ChatMessage
2025-06-27 02:04:00 +03:00
Luuzzi
22b28b7b35
1_7_10 -> 1_7_2. Also wrapper fixes
2025-06-26 23:23:17 +03:00
Luuzzi
9e7de426c0
fix incorrect shifts(get, set) in Chunk_v1_7
2025-06-26 13:17:53 +03:00
retrooper
77abb65bab
Merge pull request #1264 from booky10/feat/1.21.7-support
...
1.21.7 support
2025-06-26 08:50:49 +02:00
Luuzzi
a5188e5d78
added support for 1.7.2-1.7.5, seems it works fine 🤔
2025-06-26 07:03:53 +03:00
Luuzzi
cce0ac2d7b
fix spawn position for versions lower than 1.8
2025-06-26 06:27:49 +03:00
booky10 and Steaf23
001f6b9fd7
Fix InputControl encoding
...
Co-authored-by: Steaf23 <steafmobile@gmail.com >
2025-06-26 03:44:27 +02:00
booky10
0395378726
Update registries for 1.21.7
2025-06-26 03:09:57 +02:00
booky10
31fe7a89d9
Add 1.21.7 protocol constants
2025-06-26 03:03:38 +02:00
booky
d8b47495e4
Merge pull request #1258 from dawon/bugfix/fix-waypoint-info-types
...
Fix WaypointInfo types
2025-06-20 14:36:29 +02:00
Jakub Zacek
cba4603ad8
Fix WaypointInfo types
2025-06-20 13:55:48 +02:00
booky10
f37c74d0d9
Convert PacketEventsEncoder to simple ChannelOutboundHandlerAdapter
...
This allows cancelling packets without throwing exceptions around
Fixes https://github.com/retrooper/packetevents/issues/1256
2025-06-19 19:34:27 +02:00
booky10
2085dfb84b
Skip generating useless CancelPacketException stacktrace
2025-06-19 19:33:40 +02:00
booky10
cdad13d5c5
Fix WrapperPlayClientEntityAction actions for 1.21.6+
...
Fixes https://github.com/retrooper/packetevents/issues/1254
2025-06-19 19:12:35 +02:00
retrooper
95b50a44e9
Merge pull request #1255 from Cyramek/direction-fix
2025-06-19 17:30:31 +02:00
cyramek
78f630b5c1
fix direction vector being different from vanilla
2025-06-19 16:58:27 +02:00
retrooper
08d000ea82
Merge pull request #1234 from huanmeng-qwq/impl/advancements
...
Implement WrapperPlayServerUpdateAdvancements
2025-06-19 12:19:42 +02:00
booky10
28c4fdc7ce
Merge branch '2.0' into fix/attempt-fixing-random-login-race-condition-injection-issues
2025-06-19 02:58:42 +02:00
booky10
96c81a69ae
Fix compatibility with netty v4.0 (e.g. used by minecraft 1.8)
2025-06-19 02:58:21 +02:00
booky10
83720c6a81
Fix race condition on login for versions older than 1.20.5
2025-06-19 02:48:09 +02:00
booky10
c95acffab6
Resolve user in loginevent for 1.20.5+
2025-06-19 02:01:37 +02:00
booky10
c2beb331f1
Implement support for resolving player connection through transferCookieConnection field
...
This makes it possible to get the connection info from a player object much sooner than otherwise
2025-06-19 01:57:07 +02:00
booky10
2667431ec9
Don't resolve entity id getter method by name
2025-06-18 23:19:23 +02:00
booky10
21ce0f4d34
Small cleanup to other advancement classes
2025-06-18 23:00:40 +02:00
booky10
21c1a7dfa8
Clean up Advancement class
...
- Removes version parameter from read method
- Convert comments to javadoc
- Add constructor for constructing Advancement without criteria list parameter
- Reorder getters/setters
2025-06-18 23:00:25 +02:00
booky10
518a995e8e
Add abstraction class for criterion value in AdvancementProgress
2025-06-18 22:58:49 +02:00
booky10
e20e0854ab
Remove unused ClientAsset
2025-06-18 22:58:28 +02:00
booky10
7c3cde51f0
Reformat WrapperPlayServerUpdateAdvancements
...
- Convert comments to javadoc
- Reorder getter/setter
- Don't make "showAdvancements" field nullable
2025-06-18 22:33:28 +02:00
booky10
cc18a7ad08
Don't register debug listener
2025-06-18 22:28:49 +02:00
booky10
35fa135e9e
Fix formatting of Advancement/AdvancementDisplay
2025-06-18 22:26:52 +02:00
booky10
c68fe76156
Merge branch '2.0' into impl/advancements
2025-06-18 22:23:57 +02:00
retrooper
80846cfea2
Merge pull request #1247 from booky10/feat/1.21.6-support
...
1.21.6 support
2025-06-18 22:03:28 +02:00
retrooper
1a1b03c1f5
i'm not religious, but god bless aboookyrica
2025-06-18 22:01:26 +02:00
booky10
c411a1925b
Also support void promises for sponge
2025-06-18 21:46:08 +02:00
booky10
d8b4f5b1b6
Account for void promises while writing on spigot platform
2025-06-18 21:37:16 +02:00
booky10
486c9a493a
Add hydration block state property
2025-06-18 21:02:04 +02:00
booky10
b1ed98f53d
Fix fabric connection error
2025-06-18 21:01:53 +02:00
ShortyDev
ca8ca782fc
refactor TaskWrapper into interface and implementation classes
2025-06-18 20:10:49 +02:00
booky10
c75f039c99
Update adventure to v4.23.0
2025-06-18 19:08:38 +02:00
booky10
c1324fe7fe
Update adventure to v4.22.0
2025-06-17 18:06:52 +02:00
booky10
781d4a7c82
Add new ui sound category
2025-06-17 18:06:52 +02:00
retrooper
590479adda
patch: ensure consistent naming of #getGameMode and #setGameMode
2025-06-17 16:48:37 +02:00
retrooper
df2c50ccfc
patch: ensure code can compile
2025-06-17 13:50:49 +02:00
retrooper
f5b60ea3f2
feat: changed WrapperPlayServerUpdateAdvancements design; updated it to 1.21.5; relocated advancement classes to advancements folder; (requires some testing still)
2025-06-17 13:45:56 +02:00
booky10
c95194f147
Fix test errors
2025-06-16 05:16:03 +02:00
booky10
56a643f8d0
Implement item attribute display for 1.21.6
2025-06-16 04:54:42 +02:00
booky10
7daed688e0
Update equippable component to 1.21.6
2025-06-16 04:28:11 +02:00
booky10
f3782dffe1
Finish implement dialog bodies
2025-06-16 04:21:09 +02:00
booky10
b06063ebf7
Finish implement dialog inputs
2025-06-16 03:53:28 +02:00
booky10
6cb3d301d8
Finish implementing dialog types
2025-06-16 03:16:39 +02:00
booky10
1aab738dd5
Implement dialog actions
2025-06-16 02:44:07 +02:00
booky10
0aafad8b58
Some more dialog progress
2025-06-13 17:04:21 +02:00
huanmeng-qwq
910d77252e
fix: Advancement#read & write
2025-06-13 21:59:52 +08:00
retrooper
524e6ca16d
patch: added copyright notice to update advancements wrapper
2025-06-13 15:15:58 +02:00
retrooper
1aa88d05bf
feat: more progress to WrapperPlayServerUpdateAdvancements; updating to 1.21.5 (incomplete)
2025-06-13 15:11:40 +02:00
huanmeng-qwq
70271f3694
update
2025-06-13 11:52:41 +08:00
booky10
62201ae3fa
Start implementing dialogs
2025-06-11 17:55:36 +02:00
booky10
8ce56fc346
Quick fabric module update
2025-06-11 16:45:44 +02:00
booky10
8029fd1b4e
Update block and item tags for 1.21.6
2025-06-11 16:39:27 +02:00
booky10
de19712dbb
Add missing WrapperConfigServerPing
2025-06-11 16:33:12 +02:00
booky10
1d41037bdd
Implement WrapperPlayClientChangeGameMode
2025-06-11 16:26:53 +02:00
booky10
a98b8c5604
Implement WrapperPlayServerWaypoint
2025-06-11 16:24:47 +02:00
booky10
7d5d2682b7
Implement waypoint api
2025-06-11 16:21:36 +02:00
booky10
2b5f8027f0
Implement new clientbound show dialog packet wrappers partially
2025-06-11 15:45:09 +02:00
booky10
1e37351b48
Implement new clientbound clear dialog packet wrappers
2025-06-11 15:40:49 +02:00
booky10
70c8aad74e
Implement new serverbound custom click action packet wrappers
2025-06-11 15:38:03 +02:00
booky10
5527546f05
Update existing packet wrappers to 1.21.6
2025-06-11 15:18:56 +02:00
booky10
56671341ae
Update packet type mappings for 1.21.6
2025-06-11 15:03:11 +02:00
booky10
41ea688ff3
Update registries for 1.21.6
2025-06-11 14:54:16 +02:00
booky10
004195144d
Implement new cloud height for dimension types
2025-06-11 14:22:55 +02:00
booky10
962aefba17
Add new 1.21.6 version constants
2025-06-11 14:13:15 +02:00
huanmeng-qwq
88ec7a583d
remove final modifier
2025-05-28 10:36:09 +08:00
huanmeng-qwq
2303d362d7
add setter
2025-05-28 10:32:34 +08:00
retrooper
da0e95fa03
Merge pull request #1238 from booky10/fix/enchantment-refs
...
Fix issues with enchantment loading
2025-05-25 11:56:07 +02:00
booky10
c98bfad8b8
Merge branch '2.0' into fix/enchantment-refs
2025-05-25 04:59:33 +02:00
booky10
3dfb8389dc
Bump gradle wrapper validation action to v4
...
I hope this fixes these random errors while building
2025-05-25 04:57:03 +02:00
booky10
7c74dd2e05
Allocate new buffer when re-encoding clientbound buffers with a limited capacity
...
Bungee now limits the maximum capacity of bytebufs, presumably because of https://github.com/SpigotMC/BungeeCord/commit/1279cca971b2d32b6bd75103d3a555fbbd629392
This now allocates a completely new bytebuf to ensure we don't run into the maximum bytebuf capacity
Fixes https://github.com/retrooper/packetevents/issues/1227
2025-05-25 04:56:21 +02:00
booky10
05eabbf667
Decode enchantment type exclusive set as mapped entity ref set on registry synchronization
2025-05-25 04:22:12 +02:00
booky10
d1cafe2bcc
Resolve self-reference registry after adding entries to registry
...
Only relevant to enchantments for now
2025-05-25 03:57:49 +02:00
booky10
26078fcb59
Implement MappedEntityRefSet
2025-05-25 03:44:03 +02:00
booky10
3d602b9f96
Fix item reading/writing for 1.13/1.13.1
...
Just for future reference, so I don't have to remap + decompile these jars again:
* 1.12.2 logic: https://haste.pinofett.de/degt0ejhbr.java
* 1.13/1.13.1 logic: https://haste.pinofett.de/omr31l9mv9.java
* 1.13.2 logic: https://haste.pinofett.de/iul6y7vvny.java
2025-05-25 02:57:11 +02:00
huanmeng-qwq
df4f9e425e
update
2025-05-24 14:44:41 +08:00
huanmeng-qwq
efb9766388
convert time to Optional
2025-05-23 18:17:27 +08:00
huanmeng-qwq
ab0ad68d43
update
2025-05-23 18:12:38 +08:00
huanmeng-qwq
1be8db5ff4
update
2025-05-23 18:09:36 +08:00
huanmeng-qwq
1f68ee1f46
convert showAdvances to Optional
2025-05-23 18:00:13 +08:00
huanmeng-qwq
e7c6ae4726
Implement WrapperPlayServerStatistics
2025-05-23 17:48:09 +08:00
huanmeng-qwq
5db1671895
Implement WrapperPlayServerUpdateAdvancements
2025-05-23 17:47:49 +08:00
retrooper
023a0da619
packetevents description change
2025-05-16 15:46:40 +02:00
retrooper
51863fa435
bump version to 2.8.1 snapshot
2025-05-15 15:20:19 +02:00
retrooper
f46ec64e60
update: 2.8.0 release
2025-05-15 14:33:04 +02:00
retrooper
f0d7a8e84d
patch: fix tropical fish pattern mappings
2025-05-15 14:12:49 +02:00
retrooper
ac4fac85ed
Merge pull request #1220 from Loyisa/2.0
...
fix: minecraft:air isn't empty in <1.11
2025-05-14 23:49:46 +02:00
retrooper
8f274e0695
Merge pull request #1224 from Bram1903/fix/legacy-item-damage
...
Fixed: ItemStack#getDamageValue & ItemStack#setDamageValue
2025-05-14 13:03:45 +02:00
Bram
cd0892ffe4
Fixed: ItemStack#getDamageValue & ItemStack#setDamageValue on version 1.12.2 and below
2025-05-11 20:42:43 +02:00
Loyisa
f9398b58f7
fix: minecraft:air isn't empty in 1.8
2025-05-06 18:43:51 +08:00
booky10
9c9f5cf41d
Fix missing saddle EquipmentSlotGroup
2025-05-03 17:50:21 +02:00
retrooper
5983395561
chore: update adventure to 4.21.0 (for 1.21.5 support)
2025-05-01 13:35:53 +02:00
retrooper
686bb4fd3f
Merge pull request #1216 from Axionize/fix/teleport-flags
...
Fix Setting RelativeFlags
2025-05-01 13:31:24 +02:00
retrooper
ff4ac7eefc
Merge pull request #1162 from Rubenicos/fix/field-lookup
...
Fix recursive field lookup
2025-04-30 21:04:16 +02:00
retrooper
20b52fbcd9
Merge pull request #1212 from Beaness/patch-1
...
Add missing copy fields to spawn player wrapper
2025-04-30 21:01:33 +02:00
Axionize
424fd149e7
Fix setting relativeflags
2025-04-30 14:24:34 -04:00
Beanes
e372f4f30a
Add missing copy fields to spawn player wrapper
2025-04-28 21:11:59 +02:00
retrooper
b520a2ea99
Merge pull request #1205 from booky10/feat/versioned-itemstacks
...
Add version and registry context to ItemStacks
2025-04-28 17:51:48 +02:00
booky10
4e4174b7d3
Add version and registry context to ItemStacks
...
As logic related to ItemStack has changed quite a lot throughout the versions, this now adds a version (and registry) field to ItemStacks
These fields are populated by packetevents automatically when reading ItemStacks
Using this new version, this properly updates the ItemStack api methods to how vanilla handles stuff now
Additionally, this should fix issues related to modern handling of item amounts breaking legacy negative stack sizes
(E.g. see https://github.com/retrooper/packetevents/pull/1192 and https://github.com/retrooper/packetevents/pull/1062 )
2025-04-19 04:54:21 +02:00
booky10
0931f7c9e7
Merge remote-tracking branch 'upstream/2.0' into 2.0
2025-04-18 23:33:58 +02:00
booky10
4faf97cdb4
Increase bytebuf capacity when writing zero-byte-suffix for chunk data
...
See https://github.com/retrooper/packetevents/issues/1202#issuecomment-2816226784 for more info
Fixes #1202
2025-04-18 23:33:30 +02:00
booky
71fa7be70d
Merge pull request #1158 from spring-dependency-management/spring-dependency-management-patch-1
...
Check classes before copying from last
2025-04-18 23:16:33 +02:00
booky
a7cb0ce6bf
Merge pull request #1177 from Axionize/refactor/eliminate-static-ProtocolManager-USERS-&-CHANNELS-use
...
Eliminate usage of static ProtocolManager fields which should be accessed on an instance basis
2025-04-18 20:03:04 +02:00
booky10
8fa1b820d4
Don't iterate over all channels when disconnecting a channel without a UUID
2025-04-18 19:09:01 +02:00
booky10
05f42bc9d5
Mark internal fields/methods as internal
2025-04-18 19:08:14 +02:00
booky10
b635dcbe54
Merge branch '2.0' into refactor/eliminate-static-ProtocolManager-USERS-&-CHANNELS-use
2025-04-18 19:01:42 +02:00
booky10
a1def4170c
Check if last wrapper is an instance of this wrapper when copying
2025-04-18 18:59:02 +02:00
booky
53f1fc495b
Merge pull request #1191 from Axionize/feat/runtime-obselete-annotation
...
Add new RuntimeObsolete annotation used for checking if a field is obsolete at runtime via reflection
2025-04-18 18:55:37 +02:00
booky10
17086d3017
Add registry #getByNameOrThrow/#getByIdOrThrow api
2025-04-18 18:30:56 +02:00
booky10
d604e9d6af
Fix nbt encoding/decoding of MappedEntitySet tags
2025-04-18 18:25:56 +02:00
booky
76aba6fb8d
Merge pull request #1159 from spring-dependency-management/spring-dependency-management-patch-2
...
Add getWrapperClass() to packet type
2025-04-18 18:04:37 +02:00
booky10
5e8ad3e6e2
Add missing wrapper class for structure block packet
2025-04-18 18:00:58 +02:00
booky10
2f780a22a0
Merge branch '2.0' into spring-dependency-management-patch-2
2025-04-18 17:57:47 +02:00
booky
7549b22604
Merge pull request #1192 from ManInMyVan/fix/itemstack-type-getter
...
make itemstack type getter always return type
2025-04-18 17:48:32 +02:00
booky
8083725b96
Merge pull request #1197 from Luuzzi/2.0
...
fixed a floating-point issue in .nbt files
2025-04-18 15:31:21 +02:00
booky
3e624ebde5
Merge pull request #1203 from Bram1903/fix/NullDisconnectLog
...
[Fix] Disconnected `null` due to invalid packet console log
2025-04-18 15:11:19 +02:00
booky
16f031c585
Merge pull request #1204 from MachineBreaker/patch-1
...
Remove server version check for SelectBundleItem selectedItemIndex check
2025-04-18 13:56:27 +02:00
MachineBreaker
32f7d0b68b
Actually remove the version check since its useless
2025-04-18 07:35:36 -04:00
MachineBreaker
8a3a418d05
Use correct server version for SelectBundleItem selectedItemIndex check
2025-04-18 07:33:54 -04:00
Bram
3a76049868
Fixed: Disconnected null due to invalid packet
2025-04-18 13:06:57 +02:00
booky10
e7495c2e85
Remove ingredient from TrimMaterial for 1.21.5
2025-04-14 18:54:45 +02:00
booky10
a2726516b3
Fix 1.21.5 player chat message writing
2025-04-14 18:50:36 +02:00
booky10
bf57fef29c
Remove template item from TrimPattern for 1.21.5
2025-04-14 18:06:43 +02:00
retrooper
a9679cd5b2
Merge pull request #1199 from bridgelol/patch-1
...
chore: bump adventure to 4.20.0
2025-04-12 14:39:52 +02:00
Bridge
8e3eba761d
chore: bump adventure to 4.20.0
2025-04-12 14:02:04 +02:00
retrooper
b4ef9b90b9
patch: slight change to project description
2025-04-12 09:35:39 +02:00
Luuzzi
b2ccbe0bed
fixed a floating-point issue in .nbt files
2025-04-11 09:49:35 +03:00
ManInMyVan
1913c6603e
make itemstack type getter always return type
2025-04-07 17:25:52 -06:00
Axionize
9eafaaab7d
Add new RuntimeObsolete annotation used for checking if a field is obsolete at runtime via reflection
2025-04-07 18:05:40 -04:00
booky
e672aa2b92
Merge pull request #1190 from retrooper/revert-1180-fix/fix-goat-horn-cooldown
...
Revert "Fix Goat Horn Cooldown"
2025-04-07 23:02:46 +02:00
retrooper
1ba1ec17fa
Revert "Fix Goat Horn Cooldown"
2025-04-07 18:02:46 +02:00
booky10
288b0a5bed
Fix instrument component for versions older than 1.21.5
2025-04-07 15:40:56 +02:00
booky10
2bc4056c9c
Don't use MappedEntity instance for extracting TypesBuilderData when defining in registry
...
Fixes https://github.com/retrooper/packetevents/issues/1187
2025-04-07 15:28:31 +02:00
retrooper
1c0b85a689
Merge pull request #1180 from Axionize/fix/fix-goat-horn-cooldown
...
Fix Goat Horn Cooldown
2025-04-06 13:59:41 +02:00
retrooper
51e2538ea4
patch: slight changing of messaging
2025-04-06 13:36:12 +02:00
booky10
47645e4ea0
Fix backwards compatibility packet wrapper creation in chunk reader
2025-04-05 18:25:40 +02:00
booky10
5aa121db9a
Update entity types to 1.21.5
...
Fixes https://github.com/retrooper/packetevents/issues/1186
2025-04-05 14:06:32 +02:00
spring-dependency-management
c32300cd04
rebase on 1.21.5
2025-04-05 02:01:15 +01:00
retrooper
0d9b183ea1
feat: support earlier access of player object (as soon as JOIN_GAME packet) on spigot
2025-04-04 23:16:42 +02:00
retrooper
a215fd9b4d
add .kotlin from buildSrc to gitignore
2025-04-04 21:00:30 +02:00
retrooper
2ffb9335b3
Merge pull request #1174 from booky10/feat/1.21.5-support
...
1.21.5 support
2025-04-04 20:57:35 +02:00
retrooper
d9ddf4e598
feat: bump version up to 2.8.0-SNAPSHOT
2025-04-04 20:52:14 +02:00
retrooper
eb3b9593be
patch: add missing copyright statement
2025-04-04 20:31:42 +02:00
booky
e49b989025
Merge pull request #1139 from ytnoos/fix-wrappers
...
Fixed some wrappers
2025-04-01 14:37:40 +02:00
booky
fdd7947728
Merge pull request #1171 from Axionize/fix/mark-embedded-channels-as-fake
...
Mark embedded channels as fake
2025-04-01 14:28:45 +02:00
booky
cc4b69acf5
Merge pull request #1166 from ManInMyVan/fix/trial-spawner-requiresCorrectTool
...
fix trial spawner requiresCorrectTool
2025-04-01 14:27:37 +02:00
booky
3139282035
Merge pull request #1176 from ManInMyVan/fix/sus-gravel-sand-requiresCorrectTool
...
fix suspicious gravel and sand requiresCorrectTool
2025-04-01 14:26:38 +02:00
booky10
9a721c79d5
Don't write entity type tags below 1.14
2025-03-31 18:55:24 +02:00
booky10
5c4ccc544c
Fix a lot of random registry issues
2025-03-31 18:47:52 +02:00
booky10
751b93c51f
Setup registry registration check
...
Validates that all registry entries have been defined
2025-03-31 18:16:20 +02:00
booky10
1a0c9da630
Add more command argument type mappings
2025-03-31 18:02:45 +02:00
booky10
383a680a70
Fix legacy support for attributes
2025-03-31 17:47:40 +02:00
booky10
83e600c301
Fix Chunk_v1_9 writing on proxy
2025-03-31 17:41:25 +02:00
booky10
f69eb78aa4
Small legacy palette improvements
2025-03-31 17:41:11 +02:00
booky10
c046bd5a9d
Use correct server version when reading/writing Chunk_v1_9
...
Fixes errors on proxies
2025-03-31 17:32:42 +02:00
booky10
8740a5ed0f
Don't skip prefix of zero-bytes if it doesn't exist
...
Thanks ViaVersion!
2025-03-31 17:19:09 +02:00
booky10
9e89b0a5c7
Fix WrapperPlayServerTeams 1.21.5 reading
2025-03-31 17:15:07 +02:00
booky10
5b45f3c634
Fix entity data type names
2025-03-31 17:02:12 +02:00
booky10
a95250f4f7
Save bits per entry in data palette
...
If the amount of bits gets changed while constructing the palette, the storage would have the wrong length of data
Instead, be safe and get the amount of bits from the palette after its construction
2025-03-31 16:55:44 +02:00
booky10
fb31dab995
Small chunk palette cleanup
...
Also adds back proper resizing to block state list palettes
2025-03-31 16:32:18 +02:00
booky10
d3aba54f69
Handle 1.21.5 broken mojang zero byte suffix
...
See https://bugs.mojang.com/browse/MC-296121
2025-03-31 16:31:32 +02:00
booky10
e823e17f69
Fix hover event text reading
2025-03-31 15:40:02 +02:00
booky10
98e46dd38a
Add remaining components types for 1.21.5
2025-03-31 15:08:43 +02:00
booky10
405caec719
Merge branch '2.0' into feat/1.21.5-support
2025-03-31 13:59:01 +02:00
booky10
c32b1b90b1
Default model type of chicken/cow/pig variants to normal
2025-03-31 13:58:10 +02:00
booky
2272315d83
Merge pull request #1181 from AoElite/conversion-fix
...
Keep block property order to fix conversions
2025-03-31 07:32:54 +02:00
AoElite
dfd8eccf87
add a basic test for material conversions
2025-03-31 00:32:32 -04:00
AoElite
b826fbc197
block data property order needs to be preserved
2025-03-31 00:32:27 -04:00
booky10
878c7a96d6
Update adventure nbt serializer to 1.21.5
2025-03-30 23:06:31 +02:00
booky10
3a1474c5a6
Add per-version adventure serializers
...
Required for changes done to click/hover events in 1.21.5
2025-03-30 22:45:40 +02:00
booky10
0f94fc8216
Fix unbreakable item component legacy handling
2025-03-30 21:50:41 +02:00
booky10
445893d664
Fix ItemEquippable reading for 1.21.5
2025-03-30 21:46:30 +02:00
booky10
e8cc99fa0d
Add can_destroy_blocks_in_creative field to tool item component for 1.21.5
2025-03-30 21:45:51 +02:00
booky10
9948837294
Ensure base components get fully read
2025-03-30 21:40:38 +02:00
booky10
3e0191aa17
Remove chunk data palette length prefix for 1.21.5
2025-03-30 21:23:17 +02:00
booky10
8a3ee34e28
Small cleanup for chunk palette resizing
2025-03-30 21:10:45 +02:00
booky10
ae317c535b
Merge remote-tracking branch 'origin/feat/1.21.5-support' into feat/1.21.5-support
2025-03-30 20:07:13 +02:00
booky10
2949af533f
Refactor chunk data reading/writing
...
This deprecates NetStreamInput/NetStreamOutput as they just duplicate PacketWrapper api and do not carry as much context as a PacketWrapper, which is required for proper proxy support
This is a pretty big change to how chunk reading/writing currently works and should therefore be tested on a lot of versions
2025-03-30 20:05:20 +02:00
retrooper
e90f377c61
patch: imports of certain test files were removed by ide (for some odd reason)
2025-03-30 19:26:12 +02:00
retrooper
088ded2190
patch: add forgotten copyright statements
2025-03-30 19:20:26 +02:00
Axionize
93a6e3f5ed
Fix Goat Horn Cooldown
...
Cooldown Length: 7.0 seconds
Resource Group: minecraft:goat_horn
Encoded String: QOAAAAETbWluZWNyYWZ0OmdvYXRfaG9ybg==
See: https://github.com/retrooper/packetevents/pull/1180#issuecomment-2764633510
2025-03-30 12:37:35 -04:00
booky10
63a6b158eb
Verify reader index change when reading length-prefixed item component patches
2025-03-30 16:25:52 +02:00
booky10
c471b691f7
Update smithing trim slot display to 1.21.5
2025-03-30 16:14:23 +02:00
booky10
b2c4bb8928
Add new test block related block entity types for 1.21.5
2025-03-30 15:53:48 +02:00
booky10
253d5f968e
Merge branch '2.0' into feat/1.21.5-support
2025-03-30 14:47:46 +02:00
booky10 and Axionize
533274fd45
Fix WrappedBlockState stringification
...
Co-authored-by: Axionize <154778082+axionize@users.noreply.github.com >
Closes #1179
2025-03-30 14:45:24 +02:00
booky10
4a35ebf7eb
Bump fabric loom, parchment mappings and fabric loader
2025-03-30 05:21:26 +02:00
booky10
9dd45ffc48
Update gradle wrapper to v8.13
2025-03-30 05:16:36 +02:00
booky10
1e8bee4179
Fix workflow distribution config
...
This should've errored long ago, adopt is already gone since summer 2021
2025-03-30 05:08:53 +02:00
booky10
b367e1da91
Fix static mapped entity constructors
2025-03-30 05:03:41 +02:00
booky10
2808e35234
Add equipOnInteract field to equippable component
2025-03-30 04:59:41 +02:00
booky10
df7b69249b
Correctly implement "EitherHolder"
2025-03-30 04:52:49 +02:00
booky10
6650ee5d64
Update tooltip show flag in remaining components
2025-03-30 04:23:03 +02:00
booky10
c75e137bd0
Add type parameter to EntityData
...
Yes, this is a compile-time breaking change
2025-03-30 04:15:31 +02:00
booky10
57d00aaa4e
Update entity data serializers to 1.21.5
2025-03-30 04:11:11 +02:00
booky10
e8a95aeb8e
Update wolf variant encoding to 1.21.5
2025-03-30 03:51:18 +02:00
booky10
2fcdce578d
Fix wolf variant default registry
2025-03-30 03:46:09 +02:00
booky10
ac729a30e3
Implement cat variant registry
2025-03-30 03:43:34 +02:00
booky10
2b626d38b1
Fully implement pig, frog, cow and chicken variant registries
2025-03-30 03:41:02 +02:00
booky10
a5d3633088
Implement wolf sound variant registry
2025-03-30 03:17:05 +02:00
booky10
c79cea2b42
Add registry synchronization todos
2025-03-30 01:54:00 +01:00
booky10
9c4e438099
Add new 1.21.5 particle types
2025-03-30 01:51:19 +01:00
booky10
7572eeb5ca
Add more new item components
2025-03-30 01:49:46 +01:00
booky10
b78f8369f4
Implement basic component matcher support for adventure predicate item component
2025-03-30 01:30:30 +01:00
booky10
881898d788
Add potion duration scale item component
2025-03-30 00:48:20 +01:00
booky10
c355dbf1fc
Add blocks attack item component
2025-03-30 00:47:48 +01:00
booky10
17262757ce
Add weapon component
2025-03-30 00:30:19 +01:00
booky10
e890fcd7e5
Add new tooltip display component
2025-03-30 00:23:25 +01:00
booky10
90ff84471f
Update unbreakable data component
2025-03-30 00:12:26 +01:00
booky10
963643bdeb
Update creative inventory item packet to 1.21.5
2025-03-30 00:00:30 +01:00
booky10
12c2c307eb
Implement length-prefixed item data component serialization
2025-03-29 23:57:46 +01:00
booky10
a4fefad9e6
Refactor item stack serialization to separate class
2025-03-29 23:15:29 +01:00
booky10
9bb7b6e458
Update WrapperPlayClientClickWindow to 1.21.5
2025-03-29 22:44:27 +01:00
booky10
18ed3fb529
Add initial HashedStack structure
2025-03-29 22:44:21 +01:00
booky10
6c70181d77
Implement support for new heightmap encoding in 1.21.5
2025-03-29 22:16:19 +01:00
booky10
ed848d93d3
Add WrapperPlayServerTestInstanceBlockStatus
2025-03-29 21:58:22 +01:00
booky10
db30205fa6
Add WrapperPlayClientSetStructureBlock
2025-03-29 21:54:08 +01:00
booky10
d33cb38f15
Add new 1.21.5 block state properties
2025-03-29 21:38:04 +01:00
booky10
1371809b37
Update sound events to 1.21.5
2025-03-29 21:29:37 +01:00
booky10
3a24bed6fb
Update item tags for 1.21.5
2025-03-29 21:24:52 +01:00
booky10
ab5f4ee049
Update block tags for 1.21.5
2025-03-29 21:24:48 +01:00
booky10
da8bdd9384
Add new 1.21.5 state type constants
2025-03-29 21:16:57 +01:00
booky10
7e398fe45a
Add new 1.21.5 item type constants
2025-03-29 21:16:53 +01:00
booky10
1f6314a262
Update item type base components
2025-03-29 21:10:17 +01:00
booky10
2c238c251e
Update block state mappings
2025-03-29 21:10:09 +01:00
booky10
0018d60f9c
Merge branch '2.0' into feat/1.21.5-support
2025-03-29 20:36:56 +01:00
booky10 and Ammo
f9670a71b1
Update last seen messages to 1.21.5
...
Co-authored-by: Ammo <ammo@slne.dev >
2025-03-29 20:36:32 +01:00
booky10
bede82c866
Add some more javadoc comments regarding new 1.21.5 additions
2025-03-29 20:35:20 +01:00
Ammo
d5cca6490f
feat: Update clientbound player team packet to use enums for name tag visibility and collision rule
2025-03-29 20:31:12 +01:00
Ammo
8f920cd6cc
feat: Validate selectedItemIndex in WrapperPlayClientSelectBundleItem
2025-03-29 20:26:39 +01:00
Ammo
06eb3f4b90
chore: Update Minecraft version to 1.21.5 in gradle.properties of fabric to have access to nms classes
2025-03-29 20:24:53 +01:00
booky10
e57002768b
Finish WrapperPlayClientTestInstanceBlockAction
2025-03-29 20:23:39 +01:00
booky10
a85de1cef2
Small chat message read/write cleanup
2025-03-29 20:23:33 +01:00
Axionize
39d45d8d1f
Remove usage of direct external/public static references to ProtocolManager.CHANNELS and ProtocolManager.USERS
...
Fields will remain accessible for backwards compatibility in the unlikely case of a developer meddling these values in their own code.
All usage of both these fields is now wrapped in interface methods which can be overwritten by other ProtocolManagers.
2025-03-29 03:56:34 -04:00
retrooper
1bb6268a62
feat: add support for 1.21.5 in chat message packet
2025-03-28 20:46:53 +01:00
retrooper
4c87f3fce1
feat: set test block wrapper added
2025-03-28 20:12:49 +01:00
retrooper
86358c3fe9
Merge pull request #1148 from booky10/feat/lazy-loaded-registries
...
Registry cleanup and lazy-loaded block state mappings
2025-03-28 19:33:33 +01:00
ManInMyVan
34846df85b
fix suspicious gravel and sand requiresCorrectTool
2025-03-27 20:19:04 -06:00
booky10
5b214e4187
Add 1.21.5 resource_selector command argument parser
2025-03-25 21:03:35 +01:00
booky10
5280f26e00
Setup 1.21.5 packet ids
2025-03-25 21:00:31 +01:00
booky10
8226aed28e
Add 1.21.5 client and server version constants
2025-03-25 20:39:05 +01:00
Axionize
ec4496f837
Add EmbeddedChannel as a FakeChannel name
...
- This prevents Carpet mod players from not fully existing/being invisible
- EmbeddedChannel is a standard netty channel used to mock/simulate a netty channel, and isn't used for actual player connections on any platform
2025-03-23 03:54:36 -04:00
booky10
91730fdb46
Add javadoc to User#getConnectionState
...
See https://github.com/retrooper/packetevents/issues/1170
2025-03-19 20:18:19 +01:00
ytnoos
c892a15c5a
Fixed write for 1.7 WrapperPlayClientTabComplete
2025-03-16 14:15:39 +01:00
ytnoos
2fc6613df0
Added WrapperPlayClientEditBook setters
2025-03-16 14:15:11 +01:00
ytnoos
cf0a3115f0
Merge remote-tracking branch 'upstream/2.0' into fix-wrappers
2025-03-16 14:12:42 +01:00
ManInMyVan
513b970c4d
fix trial spawner requiresCorrectTool
2025-03-14 11:59:52 -06:00
Rubén
2b03bbce7c
Fix recursive field lookup
2025-03-08 12:14:06 -06:00
spring-dependency-management
319568d92a
oops
2025-03-06 19:10:27 +00:00
spring-dependency-management
f666047ae5
Some missing oops
2025-03-06 16:56:13 +00:00
spring-dependency-management
e86beec90f
add interface
2025-03-06 16:55:55 +00:00
spring-dependency-management
3d416fc961
Add getWrapperClass() to packet type
2025-03-06 16:47:50 +00:00
spring-dependency-management
2cd2f5d7f9
Check classes before copying
2025-03-06 15:35:31 +00:00
booky10
688e32d9a6
Merge branch '2.0' into feat/lazy-loaded-registries
2025-03-02 19:01:45 +01:00
booky
ef49276809
Merge pull request #1155 from booky10/fix/bungee-injection-v2
...
Support bungee's new combined compressor
2025-03-02 19:00:13 +01:00
booky
a3116dc2a6
Merge pull request #1149 from Axionize/fix/fabric-call-user-login-event
...
Fire UserJoinEvent() on Fabric
2025-03-02 18:57:54 +01:00
booky
3fda55bc39
Merge pull request #1134 from Axionize/fix/painting-registry-id-mappigns
...
Make PE painting IDs consistent
2025-03-02 18:54:59 +01:00
booky
f78294afb4
Merge pull request #1140 from ytnoos/exceptiong-handling
...
Improved exception handling
2025-03-02 18:47:42 +01:00
booky
0a30904217
Merge pull request #1138 from ytnoos/propagate-exception
...
Propagate exception while reading NBT
2025-03-02 18:42:10 +01:00
booky
8a1506ee53
Merge pull request #1135 from Axionize/feat/cache-values-of-direction-for-fast-int-to-enum
...
Add new methods to Direction Enum and optimize by caching values array
2025-03-02 18:39:25 +01:00
booky10
795798de41
Read any number tag as enchantment level
...
Previously, packetevents would have only parsed shorts as the enchantment level
2025-03-02 18:30:56 +01:00
booky10
fed7c147d8
Support bungee's new combined compressor
...
See: https://github.com/SpigotMC/BungeeCord/commit/774a6fd68c8fbbb99b6bbe8c0060820f8c3b059e
Bungee combined both the frame encoder and the compressor, which makes handling compression a lot easier
This should still support both the old and the new compression setup
2025-03-02 03:39:00 +01:00
booky10
5cdb80c002
Account for null in-flight connection in velocity
...
Fixes https://github.com/retrooper/packetevents/issues/1142
2025-02-28 22:46:29 +01:00
booky10
57add57796
Try to do less server version lookups
...
Every call to do a server version lookup will return an invalid value for proxy servers
2025-02-28 22:45:18 +01:00
Axionize
f7a72713e1
Fire UserJoinEvent() on Fabric
2025-02-28 15:27:55 -05:00
booky10
2c0a5346f4
Fix error when trying to load mappings for invalid mapping version
2025-02-28 20:47:15 +01:00
booky10
3627cd4d5a
Reset reader index before resetting writer index
...
The writer index can't be smaller than the reader index according to netty buffers
2025-02-28 20:03:48 +01:00
booky10
6f39702af7
Ensure mapping data gets unloaded from all registries via test
2025-02-28 20:01:23 +01:00
booky10
fe316a4368
Small refactor to ClassStructureTest
2025-02-28 19:49:27 +01:00
booky10
e026ef8181
Move anonymous map decoration type class implementation to outer class
2025-02-28 19:39:54 +01:00
booky10
d9e78b71a6
Convert hard-coded villager professions to a registry
2025-02-28 19:36:49 +01:00
booky10
92fc265333
Convert hard-coded score format types to a registry
2025-02-28 19:32:56 +01:00
booky10
d75137fe5f
Convert hard-coded villager types to a registry
2025-02-28 17:55:38 +01:00
booky10
3d90acad8e
Fix class structure of mapped entity implementations
2025-02-28 17:48:03 +01:00
booky10
dc3c168d84
Implement class structure test
...
This ensures consistent usage of annotations and common method/field names for registry-related stuff
2025-02-28 17:47:01 +01:00
booky10
8a5d4fc3e0
Use a single buffer for parsing an item component map
2025-02-28 16:35:02 +01:00
booky10
8cbfde0c3f
Convert particle types to a registry
2025-02-28 16:26:20 +01:00
booky10
9dc5908c5e
Fix mapping file names in remaining registries
2025-02-28 16:17:29 +01:00
booky10
3bdab06db4
Convert sound events to a registry
2025-02-28 16:15:56 +01:00
booky10
e08b5f69bf
Convert legacy recipe serializers to a registry
2025-02-28 16:12:22 +01:00
booky10
f6e76b65b6
Convert potions to a registry
2025-02-28 16:08:39 +01:00
booky10
bbf8749f1e
Convert position source types to a registry
2025-02-28 16:06:50 +01:00
booky10
d4f7f64fc6
Convert entity types to a registry
...
Also refactor entity type instance checking logic
2025-02-27 22:53:43 +01:00
booky10
4a9cd4b8aa
Convert entity data types to a registry
...
Also refactor reader/writer handling logic
2025-02-27 21:08:13 +01:00
booky10
83ae030352
Convert state types to a registry
2025-02-27 19:00:54 +01:00
booky10
88b3b00c43
Convert command argument parsers to a registry
2025-02-27 18:51:19 +01:00
booky10
3b9c3632ad
Implement new item base components storage format
2025-02-27 18:47:09 +01:00
booky10
e8a8f0d0a3
Implement new mappings storage format for data mappings
2025-02-27 18:37:52 +01:00
booky10
113b4a84c2
Refactor how mappings are stored
...
These changes were done to split the block state mappings up into multiple files to prevent lazy-loading having to skip over the entire file for modern versions and to align mapping file names with vanilla registry names
Additionally, this also splits item base components into multiple files to prepare for lazy loading them too, as they will probably also constantly grow in size with each new release
2025-02-27 18:27:03 +01:00
booky10
a9a6c11402
Move each mappings file to a separate directory
2025-02-27 16:41:38 +01:00
booky10
2cb427e06d
Small refactor for state data cache map
2025-02-24 17:56:17 +01:00
booky10
22bea4e7b0
Ensure loading of WrappedBlockState on all platforms
2025-02-24 17:43:13 +01:00
booky10
6703db2528
Add system property to force eager loading of all block state mappings
2025-02-24 17:41:21 +01:00
booky10
44223018b0
Implement lazy loading of block state mappings
2025-02-24 17:30:34 +01:00
booky10
d7b677c4db
Convert block state map-in-map to map-in-array
2025-02-24 15:56:42 +01:00
retrooper
e531e434b6
updated velocity to 3.4.0-SNAPSHOT, fixing build errors
2025-02-17 11:33:27 +01:00
booky10
97dcbc606e
Fix login packet fields being read in wrong order
...
Fixes #1086
2025-02-13 16:11:18 +01:00
Axionize
4d55df1569
Add getting method for VALUES array and makes it private
2025-02-13 07:51:17 -05:00
ytnoos
a028653207
Invert handshaking state check
2025-02-12 14:36:50 +01:00
Axionize
0d92230183
Add new methods to Direction enum and optimize by caching values array
2025-02-12 08:34:47 -05:00
ytnoos
5c6c41e62f
Improved excpetiong handling
2025-02-12 12:51:43 +01:00
ytnoos
88ff380bbd
Fixed WrapperPlayClientEditBook for <1.17.1
2025-02-12 12:31:30 +01:00
ytnoos
8dd207ccec
Fixed WrapperPlayClientTabComplete for 1.7
2025-02-12 12:24:26 +01:00
ytnoos
73426fb7bf
Propagate exception while reading NBT
2025-02-12 12:23:09 +01:00
Axionize
3f13e4374a
Make PE painting IDs consistent
...
Modern Minecraft sends paintings over the network with ids not representing registration order, but rather alphabetical order.
This commit reorders the painting mappings to all be done in alphabetical order so the index IDs match up with vanilla.
2025-02-10 17:48:44 -05:00
retrooper
478a3e56c3
Merge pull request #1128 from booky10/feat/more-packet-user-utils
...
Add missing send/write/receive packet utils to User
2025-01-31 23:52:31 +01:00
booky10
699594090a
Add missing send/write/receive packet utils to User
2025-01-31 12:09:34 +01:00
booky10
2a137b0059
Fix potted eye blossom blocking/solid flags
2025-01-23 15:32:11 +01:00
booky10
81c53d3c4c
Mark resin brick wall as "shape exceeds cube"
2025-01-23 15:30:37 +01:00
booky
c824f9c835
Merge pull request #1108 from spring-dependency-management/fix-fence
...
Fix pale oak materials
2025-01-23 14:44:07 +01:00
booky10
e1df40710e
Fix incorrect shadow color deserialization/serialization
...
Previously, packetevents expected shadow color to be serialized as a hex string
Vanilla serializes shadow colors as a single integer instead
2025-01-18 20:13:45 +01:00
booky
6507a73042
Merge pull request #1110 from AoElite/2.0
...
add method to user to write packets silently
2025-01-12 03:09:12 +01:00
AoElite
6a99936110
add method to user to write packets silently
2025-01-11 21:04:04 -05:00
spring-dependency-management
93441ece77
Fix sapling, hanging sign, button, and moss carpet
2025-01-07 23:56:34 +00:00
spring-dependency-management
f5776682ce
Fix pale oak hanging sign
2025-01-07 23:49:35 +00:00
spring-dependency-management
be264f3d81
Fix pale oak wall sign
2025-01-07 23:48:07 +00:00
spring-dependency-management
8fcef1d834
Fix pale oak sign
2025-01-07 23:46:55 +00:00
spring-dependency-management
8210bb32da
Sapling is of type plant, not wood
2025-01-07 23:43:30 +00:00
spring-dependency-management
8b3ddb7b47
Fix pale oak pressure plate
2025-01-07 23:39:02 +00:00
spring-dependency-management
dcb3e5e1cd
.isShapeExceedsCube(true) for pale oak
2025-01-07 23:35:05 +00:00
retrooper
3d2a872de1
Merge pull request #1105
...
Keep Alive Version Check from V_1_12 to V_1_12_2
2025-01-06 00:25:07 +01:00
retrooper
61f5158279
patch: version check correction in WrapperPlayServerKeepAlive
2025-01-06 00:21:45 +01:00
scienziato1pazzo
ce481cfdb0
fixed keep alive
2025-01-04 00:01:55 +01:00
retrooper
3d5c294f64
update wiki vg link
2024-12-23 20:03:14 +01:00
retrooper
4f0678d782
Merge pull request #1098 from divinepablo/patch-1
...
Update protocol link
2024-12-23 20:02:07 +01:00
divine
9b1f7a372c
Update protocol link
...
wiki.vg merged with minecraft.wiki
2024-12-23 12:33:31 -05:00
retrooper
9a1ee3d888
update to adventure 4.18.0
2024-12-23 10:34:20 +01:00
retrooper
4f20680d5b
Revert "Temporarily revert shadow color support"
...
This reverts commit 0be838c58f .
2024-12-23 10:20:31 +01:00
retrooper
dd5a25eb66
Merge pull request #1097 from HaHaWTH/fix/folia-scheduling
2024-12-23 00:20:29 +01:00
HaHaWTH
3a3f8c498c
Use correct scheduler for tasks
...
In some rare cases, player may be teleported during join and kick will fail
2024-12-22 13:55:28 -08:00
booky
f603b49a3e
Merge pull request #1053 from Axionize/fix-legacy-grass-and-tallgrass-mappings
...
Fix legacy mappings for grass and tallgrass variants
2024-12-22 06:34:54 +01:00
booky
52e182e7f0
Merge pull request #1058 from ManInMyVan/player-digging-face-id
...
add faceid to WrapperPlayClientPlayerDigging
2024-12-22 06:29:59 +01:00
booky10
7cc925120e
Add some missing entity type ids for 1.8 through 1.11
2024-12-22 05:57:15 +01:00
booky10
603cb07c27
Fix wrong skeleton entity type id for versions older than 1.11
...
Fixes #1068
2024-12-22 05:57:14 +01:00
booky
7b5019ba87
Merge pull request #1047 from Axionize/coral-tags
...
Extend coral plant blocktags
2024-12-22 05:21:26 +01:00
libraryaddict and booky10
40f6b2fca4
Fix incorrect sound mappings for 1.19.4
...
Closes #1059
I didn't merge the original PR as it breaks sound mappings for 1.19.3
Co-authored-by: booky10 <boooky10@gmail.com >
2024-12-22 05:15:35 +01:00
booky10
1e50c5d6cb
Fix jukebox playable item component reading/writing
...
Packetevents didn't account for a jukebox song referring to a registry entry and always assumed it was an inlined jukebox song
See https://github.com/GrimAnticheat/Grim/issues/1892
2024-12-18 20:44:44 +01:00
booky10
d46db268f8
Fix damage event packet wrapper not using network synchronized registries
2024-12-16 20:16:59 +01:00
retrooper
8f5b549b84
bump version up to 2.7.1 snapshot
2024-12-10 22:47:54 +01:00
retrooper
476c61ed47
bump version up to 2.7.0 release
2024-12-10 21:34:52 +01:00
retrooper
4b6bfbc08b
Merge pull request #1085 from booky10/workaround/revert-shadow-color-support
...
Temporarily revert shadow color support
2024-12-10 20:52:44 +01:00
booky10
0be838c58f
Temporarily revert shadow color support
...
Will be un-reverted when adventure v4.18.0 gets released
2024-12-10 20:32:19 +01:00
Axionize
770a9cd996
Fix CORAL_PLANTS blocktag and add new ALIVE_CORAL_PLANTS and DEAD_CORAL_PLANTS blocktags
2024-12-07 02:37:53 -05:00
Axionize
6afe377b55
Fix legacy mappings for shortgrass item returning tallgrass
2024-12-07 02:33:57 -05:00
Axionize
fad73d2814
Fix legacy mappings for grass and tallgrass variants
2024-12-07 02:33:32 -05:00
booky10
d6c81f32cd
Fix shadow color adventure support check
2024-12-04 18:03:46 +01:00
booky10
5d2104dd91
Merge pull request #1076 from mfnalex/feat/fix-npe-nbtinterpret
...
fix NPE for nbtInterpret
2024-12-04 18:00:55 +01:00
retrooper
969ce9d6a3
Merge pull request #1081 from Tecnio/2.0
...
bugfix: Added input validation for window click
2024-12-04 16:37:18 +01:00
Tecnio
55b456cb95
bugfix: Added input validation for window click
2024-12-04 18:34:40 +03:00
booky10
062ffc18f9
Merge pull request #1078 from AoElite/biomefix
...
fix npe if music tag isn't present on older versions
2024-12-04 12:32:42 +01:00
AoElite
95cbd40655
fix npe if music tag isn't present on older versions
2024-12-04 05:38:55 -05:00
retrooper
70d94137dd
Merge pull request #1049 from booky10/feat/1.21.4-support
...
1.21.4 support
2024-12-03 22:50:55 +01:00
mfnalex
bbea70d1db
fix NPE for nbtInterpret
2024-12-03 20:23:31 +01:00
booky10
b5e5b752a4
Bump fabric version info
2024-12-03 18:42:39 +01:00
retrooper
28b4dd8e08
bump version up to 2.7.0 SNAPSHOT
2024-12-03 18:33:07 +01:00
retrooper
1ae92a8b9d
correction to comments mistakenly referring to 1.21.5
2024-12-03 17:57:29 +01:00
booky10
00bbea33f6
Bump fabric minecraft version to 1.21.4-rc3
2024-12-02 23:10:59 +01:00
booky10
3fd3c397a6
Rename attribute constants to remove "type" prefix
2024-12-02 22:56:33 +01:00
booky10
f1f95a0aac
Fix name of equipment asset mapping file reference
2024-12-02 22:20:25 +01:00
booky10
6e90a3e376
Update serverbound packet type mappings
2024-12-02 22:05:26 +01:00
booky10
41d51453a5
Update mappings for all changed registries
2024-12-02 22:01:06 +01:00
booky10 and Beanes
c74f8b2559
Add precision loss fix while writing, not while reading
...
This fixes *slightly* incorrect velocity values being provided in the wrapper, while still writing the correct short value
Co-authored-by: Beanes <sikyserver@gmail.com >
2024-12-02 21:45:35 +01:00
booky10
be2eb6a8ce
Update generated block tags and item tags
2024-12-02 21:40:45 +01:00
Beanes and booky10
9819db60cd
Work around loss of precision when unpacking entity velocity
...
Solution was discussed on discord (https://discord.com/channels/721686193061888071/721686193515003966/1313231483225378946 )
Closes #1074
Co-authored-by: booky10 <boooky10@gmail.com >
2024-12-02 21:26:55 +01:00
booky10
2a86e0d355
Update trim material structure to 1.21.4
2024-12-02 21:05:12 +01:00
booky10
4a209a342e
Update biome music nbt structure to 1.21.4
2024-12-02 20:46:22 +01:00
booky10
33e5b58e3b
Update custom model data component to 1.21.4
2024-12-02 20:21:21 +01:00
booky10
fd11bd24a9
Add new player loaded packet type and wrapper
2024-11-30 12:48:06 +01:00
booky10
8c1f14de57
Add wrappers for new pick item packets
2024-11-30 12:46:27 +01:00
booky10
bc615355c8
Add 1.21.4 serverbound packet type constants
2024-11-30 12:42:02 +01:00
booky10
28730806f9
Small javadoc notice for ParticleTrailData duration
2024-11-29 15:23:31 +01:00
booky10
4ec975fcd1
Update block state properties to 1.21.4
2024-11-29 15:20:55 +01:00
booky10
b6ce588e10
Add new item consumable use animation
2024-11-29 15:17:13 +01:00
booky10
a1510b5f6d
Update equippable item component
2024-11-29 15:15:58 +01:00
booky10
913d527a64
Mark creaking transient entity type as obsolete
2024-11-29 15:13:51 +01:00
booky10
a1e250b521
Add new sound constants
2024-11-29 15:13:18 +01:00
booky10
887c107216
Add resin trim material constant
2024-11-29 15:12:15 +01:00
booky10
b6fb699a27
Add onground flag to WrapperPlayClientVehicleMove
2024-11-29 15:09:19 +01:00
booky10
575aa4619c
Add initial support for shadow colors in component styles
2024-11-29 15:07:06 +01:00
booky10
3f787c0e35
Update particle types to 1.21.4
2024-11-29 14:41:37 +01:00
retrooper
a0fc7f6978
Merge pull request #1065 from rafi67000/missingServerVersion
...
Add missing ServerVersion.V_1_9_1
2024-11-25 17:32:54 +01:00
rafi67000
2cd069ea72
Add missing ServerVersion.V_1_9_1
2024-11-24 22:13:00 +01:00
retrooper
d4b4b24e3c
WrapperPlayServerResourcePackSend#setPrompt added
2024-11-17 16:35:30 +01:00
retrooper
dca7daec04
Merge pull request #1044 from ShreyasAyyengar/2.0
...
fix: NPC objects to have unique server team names.
2024-11-14 19:43:35 +01:00
booky10
b686eb467f
Fix javadoc warnings
2024-11-13 15:16:01 +01:00
booky10
d1f0618c0e
Merge branch '2.0' into feat/1.21.4-support
2024-11-13 14:28:59 +01:00
Shreyas Ayyengar
ce06511b52
fix: initial team name not longer than 16 characters.
2024-11-11 14:41:56 -08:00
Shreyas Ayyengar
a2b0c0f28e
fix: truncate team name for versions older than V_1_18
2024-11-10 10:13:20 -08:00
ManInMyVan
0666097934
add faceid to WrapperPlayClientPlayerDigging
2024-11-08 16:52:35 -07:00
retrooper
da71044fc4
rename BlockFace#getHorizontalId to adhere to naming convention
2024-11-08 14:47:41 +01:00
booky10
4167c949fe
Merge pull request #1048 from Axionize/blockface-get-horizontal
...
add getHorizontalID
2024-11-07 16:02:57 +01:00
booky10
6f490a7e93
Merge pull request #1057 from booky10/fix/potion-contents-component
...
Fix potion contents item component for 1.21.2/1.21.3
2024-11-07 16:01:51 +01:00
booky10
b14dfc710a
Fix potion contents item component for 1.21.2/1.21.3
2024-11-06 23:36:07 +01:00
You
1877bae091
add getHorizontalID
2024-11-04 22:27:29 -05:00
retrooper
4cf7069254
Bump version up to 2.6.1-SNAPSHOT
2024-11-03 21:31:26 +01:00
retrooper
d4c89ebff0
Final javadoc update
2024-11-03 20:35:26 +01:00
retrooper
f58005a412
Update javadoc overview
2024-11-03 20:34:07 +01:00
retrooper
382931f4f8
Merge pull request #1050 from booky10/fix/sponge-artifact-upload
...
Fix sponge artifacts not getting uploaded
2024-11-03 20:32:44 +01:00
booky10
7be5b84b5d
Fix sponge artifacts not getting uploaded
2024-11-03 20:31:53 +01:00
retrooper
0db35d3bd7
Stable release of 2.6.0
2024-11-03 20:22:12 +01:00
booky10
6e2da40aa5
Update block and item tags for 24w44a
2024-11-03 18:37:18 +01:00
booky10
dae7c2e90b
Update item types for 24w44a
2024-11-03 18:37:11 +01:00
booky10
04db0ba88d
Update state types for 24w44a
2024-11-03 18:37:06 +01:00
retrooper
9680bc77b3
relocate bstats in shadowNoAdventure task.
2024-11-02 22:53:43 +01:00
retrooper
85c0d3d9d3
Merge pull request #1018 from AbhigyaKrishna/2.0
...
Introduce a jar task to build without adventure dependencies
2024-11-02 22:46:38 +01:00
booky10
b348af9581
Update WrapperPlayServerHeldItemChange to 24w44a
2024-10-30 15:23:16 +01:00
booky10
aedb43b487
Update WrapperPlayServerPlayerInfoUpdate to 24w44a
2024-10-30 15:21:07 +01:00
booky10
3b86806d8e
Update WrapperPlayServerParticle to 24w44a
2024-10-30 15:17:18 +01:00
booky10
c4cc09d8e0
Add 1.21.4 version constants
2024-10-30 15:14:51 +01:00
Shreyas Ayyengar
1a3b2471b3
refactor: add get/set for teamName
2024-10-28 11:19:55 -07:00
ShreyasAyyengar
3a004572c1
fix: NPC objects to have unique server team names.
2024-10-29 01:59:16 +08:00
retrooper
feabf561c5
Merge pull request #1043 from booky10/fix/block-state-mapping-indexes
...
Fix block state mapping indexes
2024-10-28 17:16:12 +01:00
retrooper
5247ccd129
Add support for 1.16.1 join game codec (fix error)
2024-10-28 17:03:05 +01:00
booky10
c77390b86c
Implement more dynamic wrapped block state mapping indexes
2024-10-28 15:52:11 +01:00
booky10
8ecad1f93e
Introduce static field for legacy mapping index
2024-10-28 15:41:26 +01:00
booky10
dae82c4d65
Fix legacy mapping index being broken
2024-10-28 15:40:17 +01:00
booky10
8f8cc8ac43
Removed left over debug code from fabric module refactor
2024-10-28 14:46:50 +01:00
retrooper
f66626ae74
Merge pull request #1042 from booky10/fix/bstats-shadow-issues
...
Include relocated bstats classes in published shadow jar
2024-10-28 14:43:30 +01:00
booky10
4ffcbcad91
Include relocated bstats classes in published shadow jar
...
This moves bstats dependencies to a separate gradle dependency configuration, which is always shadowed and used in compile classpath
2024-10-28 14:41:31 +01:00
booky10
fc31b7de7b
Merge pull request #1032 from booky10/fix/fabric-module
...
Fabric module refactor
2024-10-27 05:09:00 +01:00
booky10
c24f2d7849
Re-add deprecated FabricPacketEventsBuilder for some backwards compatibility
2024-10-27 03:04:21 +01:00
booky10
b316f54fd8
Simplify platform-specific pre launch entrypoint handler logic
2024-10-27 02:58:42 +01:00
booky10
2fda301027
Load packetevents api instance on prelaunch
2024-10-27 02:57:56 +01:00
booky10
9e6f3fbb2a
Fix channel to user association in fabric module
2024-10-27 02:50:01 +02:00
booky10
980d306100
Bump fabric loom to v1.8.11
2024-10-27 01:46:15 +02:00
booky10
9d4a44b403
Merge branch '2.0' into fix/fabric-module
2024-10-27 01:46:04 +02:00
booky10
52d92e6c1a
Merge pull request #975 from booky10/feat/1.21.2-update
...
1.21.2/1.21.3 update
2024-10-27 01:43:19 +02:00
booky10
0a96edb1bb
Merge pull request #1034 from booky10/fix/slime-paper-support
...
Fix support for unsafe entity id getter on AdvancedSlimePaper
2024-10-27 01:37:04 +02:00
booky10
3ced349018
Merge pull request #1028 from Bram1903/feat/bStatsUpdate
...
[Feat] bStats Sponge Support
2024-10-27 00:49:16 +02:00
booky10
9649c99f90
Merge branch '2.0' into feat/bStatsUpdate
2024-10-27 00:49:01 +02:00
booky10
0b587d398d
Merge pull request #1022 from rafi67000/gradleUpdate
...
Update gradle
2024-10-27 00:47:50 +02:00
booky10
47eaa1d1ca
Add accesswidener to fabric.mod.json
2024-10-27 00:38:52 +02:00
booky10
cbd170729d
Bump version up to 2.6.0-SNAPSHOT
2024-10-27 00:30:45 +02:00
rafi67000
6997bb4615
Revert "Update loom"
...
This reverts commit 76ea2aa665 .
2024-10-25 19:55:17 +02:00
rafi67000
dc6db3cfaa
Revert "Update SpongeGradle"
...
This reverts commit 72c337a68c .
2024-10-25 19:53:14 +02:00
rafi67000
72c337a68c
Update SpongeGradle
2024-10-25 19:51:21 +02:00
rafi67000
a9d0389adf
Merge pull request #13 from retrooper/2.0
...
Sponge
2024-10-25 19:48:42 +02:00
rafi67000
76ea2aa665
Update loom
2024-10-25 19:40:45 +02:00
booky10
672700afc5
Add 1.21.3 server version
...
Thanks mojang for fixing the salmon!
2024-10-23 18:14:45 +02:00
retrooper
d8a44fe8b6
Merge pull request #1037 from booky10/fix/javadoc-link
...
Fix javadoc link in readme
2024-10-23 07:08:37 +02:00
booky10
2a777092d2
Fix javadoc link in readme
2024-10-23 01:14:01 +02:00
booky10
083a060371
Fix legacy attribute naming "remapping"
2024-10-22 18:18:56 +02:00
booky10
b1b5dee5f0
Fix NPE when copying WrapperPlayServerChunkData below 1.18
2024-10-22 18:14:23 +02:00
booky10
05dfea6da2
Fix classloading loop in SynchronizedRegistriesHandler
2024-10-22 18:07:27 +02:00
booky10
208d6911f0
Expose packet side in channel injector
2024-10-22 01:10:20 +02:00
booky10
07ca508df1
Change default value of legacy lookup to true
2024-10-21 21:53:48 +02:00
booky10
40ab1419c5
Fix support for unsafe entity id getter on AdvancedSlimePaper
2024-10-21 21:43:28 +02:00
booky10
cb48134548
Remove TODOs, tests were successful
2024-10-21 19:27:37 +02:00
booky10
ce287ad7db
Fix writing packets on fabric client side
2024-10-21 19:20:55 +02:00
booky10
be1e743571
Invert protocol manager send/receive methods if in client environment
2024-10-21 18:34:03 +02:00
booky10
a57b911fd2
Skip injection of fabric channels on the wrong side
2024-10-21 18:10:16 +02:00
booky10
a3b7fc8908
Refactor handshake handling to support non-inet socket addresses
2024-10-21 17:58:46 +02:00
booky10
85717a84b7
Associate player instance with player connection channel
...
The behaviour of the fabric platform is a bit different here, as the player instance gets re-created on respawn
2024-10-21 03:55:57 +02:00
booky10
6a8e96382e
Add method for creating packetevents instance
2024-10-21 03:31:35 +02:00
booky10
52b6cb6a71
Fix writing of WrapperPlayClientCraftRecipeRequest
2024-10-21 02:31:49 +02:00
booky10
eda7d9273f
Fix serialization of SingleInputOptionDisplay
2024-10-21 02:31:48 +02:00
booky10
9391b16f50
Fix missing sealevel write in login packet
2024-10-21 02:31:47 +02:00
booky10
bd499550d8
Reuse entity position sync EntityPositionData in more places for 1.21.2
2024-10-21 02:31:46 +02:00
booky10
dd6eb173a0
Fix ENTITY_POSITION_SYNC packet id
2024-10-21 02:31:45 +02:00
booky10
78c994987f
Update client settings packet wrapper to 1.21.2
...
Also refactors it's logic into a common class, as it was previously split in config and play state packets
2024-10-21 02:31:45 +02:00
booky10
d11a0bade5
Add tip and creaking block state properties for 1.21.2
2024-10-21 01:36:03 +02:00
booky10
e54035a683
Work around classloading loop only present on fabric
2024-10-21 01:32:17 +02:00
booky10
5ef51406eb
Refactor clientbound and serverbound packet handling for same behaviour
2024-10-21 01:32:05 +02:00
booky10
9843e9fd68
Fix refcount issues with PacketEncoder
2024-10-21 01:32:04 +02:00
booky10
f3bdcbec83
Fix PacketDecoder handling of serverbound packets
2024-10-21 01:32:03 +02:00
booky10
a5d3cf5957
Fix wrong packetencoder side
2024-10-21 01:32:03 +02:00
booky10
aa87cf8032
Fix fabric logger level remapping
2024-10-21 01:32:02 +02:00
booky10
07137ddb26
Call correct packet events depending on packet side
2024-10-21 01:32:01 +02:00
booky10
92076e8559
Move fabric mod metadata to common sourceset
2024-10-21 01:32:00 +02:00
booky10
5356a011ec
Refactor fabric network handlers
...
This removes compression handling from encoder, as vanilla compression setup does not interfere with packetevents
This also refactors the packet encoder to be based directly on the ChannelOutboundHandlerAdapter, instead of the MessageToByteEncoder
Requires testing - there could be a retain missing in the PacketEncoder
2024-10-20 06:03:00 +02:00
booky10
b72502b8a1
Implement support for fabric client again
2024-10-20 06:02:59 +02:00
booky10
20bee30f69
Refactor fabric packetevents builder to work on both server and client
2024-10-20 06:02:59 +02:00
booky10
4f29b8a2c9
Split fabric client and server sources
2024-10-20 06:02:58 +02:00
booky10
ef867acc36
Fix fabric mod icon
2024-10-20 06:02:58 +02:00
booky10
da37c4320e
Remove fabric api dependency
...
It's not used by packetevents, there is no need to depend on it
2024-10-20 06:02:57 +02:00
booky10
6b2d3cbc7e
Small cleanup of WrapperPlayServerExplosion
...
Didn't think I would have updated this already, but its already up-to-date! Yay!
2024-10-20 04:46:26 +02:00
booky10
397310df8b
Update WrapperPlayServerDeclareRecipes to 1.21.2
2024-10-20 04:42:45 +02:00
booky10
04d444cc30
Update WrapperPlayServerEntityTeleport to 1.21.2
2024-10-20 03:32:36 +02:00
booky10
eb68151a73
Update WrapperPlayServerPlayerPositionAndLook to 1.21.2
2024-10-20 03:04:59 +02:00
booky10
a2fcc30fbb
Update WrapperPlayServerCraftRecipeResponse to 1.21.2
2024-10-20 02:33:24 +02:00
booky10
6cdc535cbc
Update WrapperPlayServerTimeUpdate to 1.21.2
2024-10-20 02:26:08 +02:00
booky10
095550e041
Update WrapperPlayClientCraftRecipeRequest to 1.21.2
2024-10-20 02:18:42 +02:00
booky10
3b4a0609e3
Update WrapperPlayClientSetDisplayedRecipe to 1.21.2
2024-10-20 02:08:17 +02:00
booky10
54fe6b0dbd
Add player input packet wrapper
2024-10-20 02:05:12 +02:00
booky10
ff2b73e9b1
Update WrapperLoginServerLoginSuccess to 1.21.2
2024-10-20 01:51:30 +02:00
booky10
bb3630840d
Update particle network and nbt serialization to 1.21.2
2024-10-20 01:39:21 +02:00
booky10
555aed78f3
Fix items without any overrides missing their default base components
2024-10-20 01:10:11 +02:00
booky10
1ed52f3f4e
Fix versioned item type base components
2024-10-20 00:03:03 +02:00
booky10
72a44648cd
Fix removed music disc tag causing tests to fail
2024-10-19 23:57:48 +02:00
booky10
2db8e75a66
Update sound registry to 1.21.2
2024-10-19 05:48:18 +02:00
booky10
e9064c4e87
Implement new trail and block crumble particles
2024-10-19 05:44:21 +02:00
booky10
680cbbf932
Fix item component mappings
2024-10-19 05:25:31 +02:00
booky10
7285af4481
Update damage type registry
2024-10-19 05:17:00 +02:00
booky10
bd4f5c2ecf
Add 1.21.2 state type mappings
2024-10-19 05:14:10 +02:00
booky10
dd94a9a677
Refactor block entity types to registries
2024-10-19 05:13:24 +02:00
booky10
341c70f6dd
Add creaking heart block entity type
2024-10-19 05:10:59 +02:00
booky10
41a8a47060
Add pale garden biome
2024-10-19 05:09:53 +02:00
booky10
881ad034a6
Refactor attributes to include default, minimum and maximum values
...
Also adds utility for calculating final attribute value
Additionally, strips "category" prefix for 1.21.2+
And adds the new attribute for 1.21.2
2024-10-19 05:02:06 +02:00
booky10
4a1c86cba3
Update block and item tags
2024-10-19 02:54:52 +02:00
booky10
56c9b73bcb
Add new entity types for 1.21.2
2024-10-19 02:42:56 +02:00
booky10
93bac071ac
Add new item types for 1.21.2
2024-10-19 02:34:29 +02:00
booky10
f88c9f027d
Implement new item components for 1.21.2
2024-10-19 02:29:02 +02:00
booky10
1cb2219dbb
Update FoodProperties serialization to 1.21.2
2024-10-19 02:09:40 +02:00
booky10
e00d5822f2
Fix serialization of ItemRecipes component type
2024-10-19 02:04:20 +02:00
booky10
f64846f339
Add initial logic for loading item base components from file
2024-10-19 01:58:42 +02:00
booky10
fd2480abbc
Add item base component data for 1.20.5 to 1.21.2
2024-10-19 01:08:21 +02:00
booky10
4d820eef6d
Add new state types for 1.21.2
2024-10-18 23:54:18 +02:00
booky10
6bddd197db
Add block state mappings for 1.21.2
2024-10-18 23:54:07 +02:00
booky10
8439ca103c
Fix modern block state mapping indices
2024-10-18 23:26:57 +02:00
booky10
60e546b075
Mark current recipe wrappers as obsolete
2024-10-18 18:11:21 +02:00
booky10
cfc0e5b260
Finish implementing serialization of new recipe data
2024-10-18 18:08:39 +02:00
booky10
3c11278949
Implement WrapperPlayServerRecipeBookSettings
2024-10-18 17:31:05 +02:00
booky10
8bde89d4ee
Implement WrapperPlayServerRecipeBookRemove
2024-10-18 03:19:21 +02:00
booky10
a5ebc356ad
Start implementing WrapperPlayServerRecipeBookAdd
...
Recipe display types are too much work for now, I'll do them later
Also, mojang has removed the ability for custom item recipes... for whatever reason?
2024-10-18 03:16:24 +02:00
booky10
aeb37c0a28
Implement WrapperPlayServerPlayerRotation
2024-10-18 02:37:58 +02:00
booky10
85106c8e59
Implement WrapperPlayServerEntityPositionSync
2024-10-18 02:36:42 +02:00
booky10
06d350bb1e
Update packet mappings to rc1
2024-10-18 02:31:26 +02:00
booky10
a612ffeba1
Use mapped entity registry reading when reading modern ItemStacks
2024-10-18 02:12:52 +02:00
booky10
651051f136
Merge branch '2.0' into feat/1.21.2-update
2024-10-18 02:10:02 +02:00
Bram
3000d76272
Removed: Old bStats classes
2024-10-17 11:34:53 +02:00
retrooper
e136327742
Update README text
2024-10-16 23:30:05 +02:00
Bram
e1a22373d6
Re-added: Old Metric classes to prevent breaking changes, but marked the classes as deprecated
2024-10-15 16:10:57 +02:00
Bram
b7f4375599
Fixed: Coding convention issue
2024-10-15 15:55:18 +02:00
Bram
bf97a66dd7
Changed: Position of the plugin started message to outside the class constructor into the actual initiation event
2024-10-15 15:45:44 +02:00
Bram
9077e346f2
Removed: Internal bStats classes
...
Added: bStats as gradle dependency
Added: Sponge bStats Support
Changed: Velocity bStats initialisation, due to a reworked approach in a recent bStats update
Changed: Sponge Gradle Plugin version being specified in the build.gradle.kts rather than in the libs.versions.toml
2024-10-15 15:43:09 +02:00
retrooper
0031d6aae3
Merge pull request #670 from SamB440/feat/sponge
...
(WIP) Sponge support
2024-10-13 23:03:35 +02:00
SamB440
cec46d111b
Don't store the ServerPlayer
2024-10-13 21:30:18 +01:00
SamB440
ef151757db
Don't include non-nbt adventure
2024-10-13 21:30:18 +01:00
SamB440
fef29a0697
Update to new build logic
2024-10-13 21:30:17 +01:00
SamB440
b58b71a5b1
Fix ViaVersion compatibility (as via fixed injector)
2024-10-13 21:30:17 +01:00
SamB440
8a4fc799e4
Update to JDK 21 and support latest Sponge API
2024-10-13 21:30:17 +01:00
SamB440
979fc09e13
Sponge support
2024-10-13 21:30:17 +01:00
rafi67000
13fa3504bf
Remove unused and deprecated import
2024-10-08 17:41:09 +02:00
rafi67000
adbaa5cfbc
Update test libraries
2024-10-08 17:30:40 +02:00
rafi67000
1881336a14
Update runTask
2024-10-08 17:15:51 +02:00
rafi67000
100d02904e
Update shadow
2024-10-08 17:15:45 +02:00
rafi67000
be8e15e087
Update gradle to 8.10.2
2024-10-08 17:15:38 +02:00
retrooper
487bcc3461
Merge pull request #1021 from booky10/fix/food-properties
...
Fix order of reading fields in food properties
2024-10-06 16:53:21 +02:00
booky10
1f86c651b8
Fix order of reading fields in food properties
2024-10-06 13:39:10 +02:00
AbhigyaKrishna
388001447f
feat: jar task to produce jars without adventure
2024-10-04 17:17:59 +05:30
AbhigyaKrishna
13c59e2b5e
refactor: make jar names consistent
2024-10-04 17:17:21 +05:30
AbhigyaKrishna
5c236bb4ed
feat: configure javadoc plugin
2024-10-04 17:16:52 +05:30
booky10
fea6e90f12
Merge pull request #1015 from ManInMyVan/missing-breaks
...
add breaks in WrapperHandshakingClientHandshake::setNextConnectionState
2024-09-29 23:52:40 +02:00
ManInMyVan
fb098bd169
add breaks in WrapperHandshakingClientHandshake::setNextConnectionState
2024-09-29 15:46:01 -06:00
booky10
612b2bb6cc
Merge pull request #1014 from ManInMyVan/fix/legacy-rail-mappings
...
fix legacy rail mappings
2024-09-29 04:00:06 +02:00
ManInMyVan
a145c10e5d
fix detector rail id
2024-09-28 19:54:23 -06:00
ManInMyVan
cb57f4fd6a
fix legacy rail mappings
2024-09-28 17:43:31 -06:00
retrooper
ed28da338a
Merge pull request #1006 from booky10/fix/viaversion-map-deco-errors
...
Fix errors with viaversion and map decorations
2024-09-24 18:16:54 +02:00
retrooper
0d86b3b297
Merge pull request #1004 from booky10/fix/workaround-paper-library-loading-problems
...
Force usage of plugin classloader to lookup classes of other plugins
2024-09-24 18:16:22 +02:00
booky10
90bd1841f0
Revert unused import
2024-09-23 18:45:52 +02:00
booky10
be24877913
Merge pull request #1003 from booky10/fix/registry-element-equality
...
Fix registry element equality check
2024-09-23 18:43:57 +02:00
retrooper
7218c365e3
Merge pull request #1009 from booky10/fix/nbt-component-booleans
...
Allow any numbers when reading nbt booleans
2024-09-23 18:21:03 +02:00
booky10
33dd09362a
Allow any numbers when reading nbt booleans
...
Vanilla accepts every number type and so should packetevents
2024-09-23 17:36:16 +02:00
booky10
4aae57075a
Merge pull request #1005 from booky10/fix/more-bungee-injector-issues
2024-09-23 09:58:09 +02:00
booky10
d90240641e
Convert MapDecorationTypes to proper registry
2024-09-21 16:50:01 +02:00
booky10
a5871befe6
Norm registry key input strings
2024-09-21 16:47:08 +02:00
booky10
fa56d226f3
Add ResourceLocation#normString utility
...
This prepends the vanilla key namespace to the specified input key, if no other namespace has been specified
2024-09-21 16:45:58 +02:00
booky10
a5ff4a9ad8
Only print component map patches for ItemStack#toString
2024-09-21 16:42:53 +02:00
booky10
d61c690075
Release buffers after recompression
2024-09-21 16:26:01 +02:00
booky10
873589bd7f
Clear recyclable out list after usage
2024-09-21 16:25:47 +02:00
booky10
032f2ff228
Use proper logging for bungee instead of stdout
2024-09-21 16:25:19 +02:00
booky10
0c733b31a7
Force usage of plugin classloader to lookup classes of other plugins
...
Works around issues caused by some plugins loading packetevents through the library loader, which doesn't know about the classloader of plugins
2024-09-21 16:00:20 +02:00
booky10
2baaf18db6
Fix missing DeepComparableEntity interface
...
Caused by me just cherry-picking some commits from another branch
2024-09-21 15:26:53 +02:00
booky10
4d7314e2d8
Check for deep equals before using vanilla registry element
...
Could potentially solve #962 , although I can't reproduce that issue
This may be caused by two different changes to packetevents:
1. We did a little memory optimization so only elements different to the vanilly registry get stored
2. We fixed an issue where some elements would not equal the "same" vanilla element
This could cause every custom element to just never be registered, so we now do explicit deep-equals checks before saving the vanilla element instead
2024-09-21 15:21:02 +02:00
booky10
f1f4ffe6b2
Implement DeepComparableEntity for all dynamic registry entries
2024-09-21 15:21:01 +02:00
retrooper
2fac9dc516
Bump version up to 2.5.1-SNAPSHOT
2024-09-20 23:37:15 +02:00
retrooper
ab8faf358c
2.5.0 Release
2024-09-20 22:07:20 +02:00
retrooper
243ce3c5dd
Merge pull request #990 from Elikill58/2.0
...
Add wrapper for BossBar packet
2024-09-20 21:57:25 +02:00
retrooper
d4762195f9
adhere to packetevents' convention of capitalizing UUID in setters & getters
2024-09-20 21:53:46 +02:00
retrooper
121e1615b6
remove awkward comment break in PEVersion#toStringWithoutSnapshot docs
2024-09-20 21:49:46 +02:00
retrooper
350d33ae6f
Merge remote-tracking branch 'origin/2.0' into 2.0
2024-09-20 21:47:15 +02:00
retrooper
d4f7bced86
bstats metrics do not collect snapshot & commit, solely version is captured.
2024-09-20 21:46:18 +02:00
retrooper
8037e659a8
Merge pull request #1000 from booky10/fix/particle-data-again
...
Revert some fixes for particle data decoding/encoding
2024-09-20 21:12:04 +02:00
retrooper
28c7849252
Merge pull request #999 from booky10/fix/bungee-injection
...
Rework bungee injector to allow for packet cancellation
2024-09-20 21:07:09 +02:00
retrooper
cb277bf16a
Merge pull request #995 from booky10/fix/packet-sending-race-condition
...
Synchronize packet encoding
2024-09-20 21:04:50 +02:00
booky10
0612e1e188
Revert some fixes for particle data decoding/encoding
...
Mojang's codecs are confusing
2024-09-20 20:30:08 +02:00
booky10
7a9f83129e
Fix incorrect list recycling usage
2024-09-20 20:11:05 +02:00
booky10
a17e5f13a7
Rework bungee injector to allow for packet cancellation
2024-09-20 20:04:29 +02:00
retrooper
02a565bf39
Merge pull request #996 from booky10/fix/bungee-injection
...
Fix support for new bungee compression
2024-09-20 19:44:01 +02:00
booky10
f1d7d5ac81
Merge pull request #992 from galacticwarrior9/add-biomeeffects-getters
2024-09-18 08:33:30 +02:00
retrooper
a1663f5a03
Merge pull request #994 from booky10/fix/pre-1.20.5-registry-data-limit
...
Remove nbt reading limit in registry-data packet for pre 1.20.5
2024-09-17 23:22:28 +02:00
booky10
909492cfae
Fix support for new bungee compression
2024-09-17 16:39:46 +02:00
booky10
a3b4cc21f5
Synchronize packet encoding
...
Resolves concurrency issues which may happen when sending the same packet wrapper to different players, concurrently
This is not a perfect solution, but the alternative would be refactoring the packetwrapper to be based on buffers passed during encoding as parameters, which would be too much effort and would require breaking changes
2024-09-17 16:29:30 +02:00
booky10
402ebd729e
Remove nbt reading limit in registry-data packet for pre 1.20.5
2024-09-17 16:21:49 +02:00
galacticwarrior9
349b5dc110
Add missing getters to BiomeEffects
2024-09-17 13:43:07 +01:00
Elikill58
c778cc3368
Convert list to EnumSet
2024-09-16 23:03:43 +02:00
Elikill58
26e5aab84e
Rename divison to overlay
2024-09-16 19:54:01 +02:00
Elikill58
79da4e1bc4
Convert flags
2024-09-16 19:50:29 +02:00
Elikill58
51b550ca5e
Use adventure's enum
2024-09-16 11:29:37 +02:00
Elikill58
2877b74c42
Remove own config...
2024-09-15 19:54:08 +02:00
Elikill58
c67d1a86c5
Fix missing import
2024-09-15 19:41:28 +02:00
Elikill58
5cf9b34fd2
Add wrapper for BossBar packet
2024-09-15 19:24:59 +02:00
retrooper
99acbe4960
Merge pull request #980 from booky10/fix/javadoc-links
...
Update javadoc overview links
2024-09-02 22:27:53 +02:00
booky10
2bf64b6107
Update javadoc overview links
2024-09-02 22:26:07 +02:00
retrooper
4e86af8754
Add Javadocs URL
2024-09-02 22:22:44 +02:00
retrooper
6bf639f18a
Update links to documentation.
2024-09-02 22:11:34 +02:00
retrooper
9a7bb17459
Merge pull request #978 from AoElite/2.0
...
fixed runAtFixedRate not using ticks when running on folia
2024-09-01 22:38:57 +02:00
AoElite
6b84c683ee
fixed runAtFixedRate not using ticks when running on folia
2024-09-01 16:33:12 -04:00
booky10
1260aa1de5
Add some transformations for slot changes
2024-08-30 22:53:19 +02:00
booky10
bdccde4040
Fix compile issue with StaticConsumeEffectType
2024-08-30 21:44:45 +02:00
booky10
7cdb95116a
Implement all new components
2024-08-30 21:21:06 +02:00
booky10
c9d42f8e8e
Check for deep equals before using vanilla registry element
...
Could potentially solve #962 , although I can't reproduce that issue
This may be caused by two different changes to packetevents:
1. We did a little memory optimization so only elements different to the vanilly registry get stored
2. We fixed an issue where some elements would not equal the "same" vanilla element
This could cause every custom element to just never be registered, so we now do explicit deep-equals checks before saving the vanilla element instead
2024-08-30 20:34:37 +02:00
booky10
1e738f038f
Implement DeepComparableEntity for all dynamic registry entries
2024-08-30 20:31:32 +02:00
booky10
57fb06ca5f
Implement dynamic instrument registry
2024-08-30 20:28:59 +02:00
booky10
83d925ead0
Implement most 1.21.2 packet wrapper changes
2024-08-30 20:14:00 +02:00
booky10
ce1baaad7a
Setup new 1.21.2 packet types
2024-08-30 20:13:52 +02:00
booky10
a370f6e7b7
Setup 1.21.2 server version and client version constants
2024-08-30 20:13:42 +02:00
booky10
dc015dc457
Merge pull request #935 from rafi67000/gradleUpdate
...
Gradle, and shadow update
2024-08-29 22:34:52 +02:00
booky10
fd7bc84cd5
Merge pull request #972 from booky10/fix/workaround-spigot-item-conversion-issues
...
Use global synchronized registries as fallback
2024-08-29 17:46:19 +02:00
booky10
9fd5b3b912
Use global synchronized registries as fallback for spigot and fabric
...
Works around issues where plugins convert items to bukkit items, which doesn't preserve registry holder context, e.g. https://github.com/nulli0n/ExcellentEnchants-spigot/blob/8623159ca61b60e1d3cae22c77a99e82b15b9d5f/Core/src/main/java/su/nightexpress/excellentenchants/hook/impl/PacketEventsHook.java
2024-08-29 12:49:12 +02:00
rafi67000
a2d259af58
Update to Gradle 8.10
2024-08-27 20:29:28 +02:00
rafi67000
6cc21a6d98
Merge branch 'retrooper:2.0' into gradleUpdate
2024-08-27 20:13:20 +02:00
retrooper
e105770dde
Merge pull request #967 from KermanIsPretty/fix/join-game-data-codec-1.7
...
Fix 1.8< clients not having Reduced Debug Info.
2024-08-27 12:28:49 +02:00
booky10
68b7ee51dc
Merge pull request #968 from ManInMyVan/tuff-walls
...
tuff walls exceed cube
2024-08-26 19:50:22 +02:00
ManInMyVan
a4a375f411
tuff walls exceed cube
2024-08-26 11:19:35 -06:00
KermanIsPretty
ae6b3d18a4
Fix 1.8< clients not having reducedDebugInfo.
2024-08-25 15:50:02 -05:00
booky10
8763b0e77f
Merge pull request #966 from ManInMyVan/fix-inconsistency
...
Fix inconsistency in StateTypes
2024-08-25 10:55:44 +02:00
ManInMyVan
2440b64981
Fix inconsistency in StateTypes
2024-08-25 01:02:36 -06:00
retrooper
ebe73587fe
Merge pull request #959 from AoElite/2.0
...
API for checking if packetevents is terminated
2024-08-22 17:34:43 +02:00
AoElite
5b87ac4f61
unnecessary fix
2024-08-21 08:56:58 -04:00
AoElite
d9a3f33199
implement for test
2024-08-21 08:29:16 -04:00
AoElite
9f44834514
don't forget netty one
2024-08-20 21:04:03 -04:00
AoElite
314d4a2813
option to kick on join if terminated & added API for checking if terminated
2024-08-20 21:02:39 -04:00
retrooper
97fee0c898
Merge pull request #956 from booky10/fix/particle-data-decoding-1.20.4
...
Fix particle data decoding and encoding for <1.20.5
2024-08-21 00:19:56 +02:00
booky10
bdc96a88cd
Merge branch '2.0' into fix/particle-data-decoding-1.20.4
2024-08-20 19:33:29 +02:00
retrooper
af1691e6e5
Merge pull request #957 from booky10/fix/bungeecord-resolving
...
Fix bungeecord artifact not resolving
2024-08-20 19:03:40 +02:00
booky10
e4058f7f15
Fix bungeecord artifact not resolving
2024-08-20 18:06:55 +02:00
booky10
7f0c922e10
Fix particle data decoding and encoding for <1.20.5
2024-08-20 17:57:54 +02:00
retrooper
453793eb60
Merge pull request #955 from booky10/fix/item-adventure-predicate-component-reading
...
Read item adventure predicate nbt and property matchers as optionals
2024-08-20 17:37:45 +02:00
booky10
015e7a4647
Read item adventure predicate nbt and property matchers as optionals
2024-08-20 16:59:17 +02:00
retrooper
45c0c580f7
Merge pull request #954 from booky10/fix/1.19-issues
...
Fix some 1.19 issues related to registries
2024-08-20 15:39:11 +02:00
booky10
1c12a868c8
Fix chattype decoding and encoding for 1.19
2024-08-20 15:20:54 +02:00
booky10
a3f22320d5
Fix error when handling empty legacy registries
2024-08-20 15:10:57 +02:00
retrooper
f4bb1dd8fc
kick players even if user is null & they throw an exception, kick user for exceptions also in encoder.
2024-08-18 07:11:01 +02:00
retrooper
5203b3a376
Merge pull request #943 from ManInMyVan/static-getByName
...
Make BlockTags::getByName static
2024-08-17 20:22:28 +02:00
retrooper
fe66d743a9
Merge pull request #949 from booky10/fix/1.16.5-errors
...
Fix some errors related to old minecraft versions
2024-08-17 20:01:13 +02:00
retrooper
1d1cf84c60
Merge pull request #950 from booky10/fix/dynamic-registry-elements-equality
...
Don't do deep equals checks for dynamic registry entries
2024-08-17 19:57:02 +02:00
booky10
1c81aab994
Don't do deep equals checks for dynamic registry entries
2024-08-17 19:12:52 +02:00
booky10
52559f6fc8
Fix binary tag holder for adventure <4.10.0
2024-08-17 17:55:29 +02:00
booky10
06cc25bf23
Add workaround to make DimensionType#getId work for 1.16.2 to 1.18.2
2024-08-17 17:49:32 +02:00
booky10
86cf0d51ed
Replace usages of translation fallback in ComponentSerializerImpl
2024-08-17 17:36:25 +02:00
booky10
5fbb052d6f
Fix wrong recipe serializer definition key
2024-08-17 17:36:09 +02:00
booky10
b7021fcd1f
Fix support for adventure <4.10
...
Replaces Index#valueToKey usages with alternative
Fixes error on join in 1.16.5
2024-08-17 17:22:22 +02:00
booky10
64db7f13c6
Fix support for adventure <4.11
...
Replaces Index#valueOrThrow usages with copied implementation
Fixes error on join in 1.16.5
2024-08-17 17:05:41 +02:00
retrooper
20c9fdf634
Merge pull request #947 from booky10/fix/dimension-type-npes
...
Handle null values correctly in StaticDimensionType#equals
2024-08-17 17:03:29 +02:00
booky10
a71035a157
Handle null values correctly in StaticDimensionType#equals
2024-08-17 16:19:56 +02:00
ManInMyVan
b0002102e3
Make BlockTags::getByName static
2024-08-15 19:29:07 -06:00
retrooper
a3e65cfcbe
Merge pull request #939 from rexlManu/2.0
...
(Velocity) Avoid user if channel cannot be found
2024-08-14 09:35:48 +02:00
Emmanuel Lampe
edd9c5ce3d
Merge branch 'retrooper:2.0' into 2.0
2024-08-14 05:22:04 +02:00
retrooper
e918e6b10a
Merge remote-tracking branch 'origin/2.0' into 2.0
2024-08-13 21:04:18 +02:00
retrooper
f6c309fd18
add copyright notice to Metrics
2024-08-13 21:03:20 +02:00
retrooper
322a99dbc4
final change in README
2024-08-13 17:50:54 +02:00
retrooper
6793dee0bc
More fixes to README
2024-08-13 17:46:39 +02:00
retrooper
d33751dbb0
fix BUILD STATUS in README
2024-08-13 17:41:26 +02:00
retrooper
fa67de16a1
fixed issues in README
2024-08-13 17:40:10 +02:00
retrooper
57fc21f411
patch readme
2024-08-13 17:37:27 +02:00
retrooper
9999ee3b4a
updated README for packetevents
2024-08-13 17:32:03 +02:00
retrooper
4a90cadeb1
Merge pull request #933 from booky10/fix/bungee-server-nullability
...
Account for null servers in bungee
2024-08-12 18:49:59 +02:00
retrooper
048903f33f
Merge pull request #934 from booky10/fix/translation-fallback-adventure
...
Fix compatibility with adventure versions older than 4.13.0
2024-08-12 18:48:09 +02:00
retrooper
3fa5eaf2a3
Merge pull request #932 from booky10/fix/dimension-type-mappings
...
Fix dimension type mappings
2024-08-12 18:47:01 +02:00
rafi67000
93bd6d5ac9
Update wrapper
2024-08-12 17:24:04 +02:00
rafi67000
aa5535615c
A little tweak...
2024-08-12 17:22:15 +02:00
booky10
9ccd85178d
Fix compatibility with adventure versions older than 4.13.0
...
Translation fallback methods didn't exist before
2024-08-12 17:11:16 +02:00
rafi67000
14fd279c06
Update and switch to maintained shadow fork
2024-08-12 17:07:20 +02:00
rafi67000
6df845324b
Update gradle to 8.9
2024-08-12 17:06:59 +02:00
booky10
c3f233ca61
Account for null servers in bungee
2024-08-12 16:47:52 +02:00
booky10
ed4f018b34
Fix dimension type mappings
2024-08-12 16:44:09 +02:00
retrooper
ef4bc1c02e
github sponsors added as funding option
2024-08-12 09:32:44 +02:00
retrooper
ca725b68a5
fix: NPE error in DimensionType#decode
2024-08-12 09:09:02 +02:00
booky10
40f7463e93
Merge pull request #927 from AoElite/2.0
...
Fix sound exception on 1.21
2024-08-12 00:57:46 +02:00
AoElite
7778768c30
tweak
2024-08-11 18:55:09 -04:00
AoElite
6a6be44ab2
fix sound exception on 1.21
2024-08-11 15:57:12 -04:00
Abhigya
fe67c23ad4
Merge pull request #926 from AoElite/2.0
...
Release item buffer regardless of exception
2024-08-11 23:45:40 +05:30
AoElite
c09348d4f7
release item buffer regardless of exception
2024-08-11 13:55:17 -04:00
retrooper
e04cd2108f
Merge pull request #919 from libraryaddict/patch-2
...
Fix #916 via removing explicit type call of nbt get
2024-08-10 17:18:35 +02:00
retrooper
39f0dee9f1
Merge pull request #912 from booky10/feat/1.21.1-server-version
...
Add 1.21.1 version support
2024-08-10 17:16:20 +02:00
libraryaddict
9b9ae8d36c
Fix #916
2024-08-10 22:47:03 +12:00
retrooper
fc934195de
Merge pull request #866 from booky10/feat/network-synced-registries
...
Network synced registries
2024-08-09 07:49:14 +02:00
retrooper
6c4db8029b
chore: bump up version to 2.5.0-SNAPSHOT
2024-08-09 07:46:25 +02:00
retrooper
c4ce7b7a87
packetevents version represented as string only provides snapshotCommit if it is a snapshot, not for stable releases.
2024-08-09 07:44:31 +02:00
booky10
b751c63625
Add 1.21.1 version support
2024-08-08 16:44:16 +02:00
retrooper
31ac149b42
Merge pull request #909 from booky10/feat/peversion-build-timestamp
...
Add build timestamp to PEVersions class
2024-08-06 19:08:17 +02:00
booky10
2f45e9e469
Add equality methods for all dynamic registry value classes
2024-08-06 17:55:27 +02:00
booky10
7b152ff264
Don't store exact copies of vanilla registry elements
2024-08-06 17:25:55 +02:00
booky10
e9eb441a1c
Implement caching on bungee platform
2024-08-06 17:19:23 +02:00
booky10
55c1093783
Fix biome and enchantment type definitions on bungee
2024-08-06 17:17:05 +02:00
booky10
963ec4e978
Revert some debug changes which weren't meant to be pushed
2024-08-06 17:09:53 +02:00
booky10
26c30f46e7
Implement key-based registry caching and velocity proxy per-server caching
...
Bungee isn't finished yet
2024-08-06 17:06:55 +02:00
booky10
c2cdafb17f
Add system property to force disable caching
2024-08-06 16:09:38 +02:00
booky10
22060a9889
Actually make caching work by not decoding registries when not needed
2024-08-06 16:08:55 +02:00
booky10
e1a54099a4
Add build timestamp to PEVersions class
2024-08-06 15:24:28 +02:00
retrooper
3fa6a0f69a
fix: wrong tag name used in ParticleDustData
2024-08-05 22:48:26 +02:00
retrooper
676cb6c3ce
feature: cache legacy registries
2024-08-05 22:34:54 +02:00
retrooper
a3063f0bcb
feature: cache registries globally on non-proxy servers
...
Each kind of registry has a VersionedRegistry. This VersionedRegistry now contains a SimpleRegistry as a cache. If the cache is not null, it will be used globally. This makes the usage of registries convenient for PacketEvents users as they no longer need to access them within each user instance. If the plugin is on proxy, we shall store all registries for each user. If the plugin is not on proxy, we shall only store the dimension type registry for each user and globally cache the rest.
2024-08-05 22:17:53 +02:00
retrooper
c1520401b6
deletion: remove hard-coded 1.21 enchantment type mappings (as temporary fix)
2024-08-05 22:07:57 +02:00
booky10
d988d0c684
Fix backwards compatibility for dimension type codec
2024-08-04 23:00:46 +02:00
booky10
e2283d6f4e
Fix backwards compatibility for encoding trim patterns
2024-08-04 22:39:25 +02:00
booky10
ea56cfde04
Add backwards compatibility support for chat types
2024-08-04 22:34:44 +02:00
booky10
16733e587e
Add full legacy data support for biomes
2024-08-04 21:58:28 +02:00
booky10
b247807f0f
Fix biome mapping test
2024-08-04 20:30:26 +02:00
booky10
679aea8181
Add even more biome mappings
2024-08-04 18:47:30 +02:00
booky10
f0d499a008
Add more biome mappings
2024-08-04 18:41:22 +02:00
booky10
b5320f2ae7
Fix data reading for biomes and enchantment types
2024-08-04 18:24:52 +02:00
retrooper
0fd0821a93
Merge pull request #907 from booky10/fix/fire-legacy-mappings
...
Map legacy block ids for fire block
2024-08-04 18:17:59 +02:00
booky10
c7c1b9da17
Map legacy block ids for fire block
2024-08-04 18:15:03 +02:00
retrooper
d67d307788
Merge pull request #906 from booky10/fix/component-equality
...
Fix some component equality checking issues
2024-08-04 18:10:45 +02:00
booky10
c057f18914
Merge branch '2.0' into feat/network-synced-registries
2024-08-04 18:05:46 +02:00
booky10
7a5b425dbb
Merge pull request #1 from libraryaddict/feat/network-synced-registries
...
Feat/network synced registries
2024-08-04 18:01:20 +02:00
booky10
9b22739977
Remove setters from jukebox song interface
2024-08-04 17:56:03 +02:00
booky10
12e0869e0a
Fix JukeboxSongs#values javadoc
2024-08-04 17:55:22 +02:00
booky10
0039ab8704
Resolve small backwards compatibility issues
2024-08-04 17:55:12 +02:00
retrooper
7da389db14
feature: 1.21 enchantment mappings (ordered alphabetically)
2024-08-04 16:14:17 +02:00
libraryaddict
1f85797768
Merge pull request #1 from packetevents/2.0
...
Feature: Create Damage Event wrapper using new Damage Types
2024-08-04 23:49:55 +12:00
retrooper
3c55703718
feature: damage event wrapper using new damage types
2024-08-04 10:50:28 +02:00
booky10
e3734c2d94
Fix some component equality checking issues
2024-08-01 22:41:22 +02:00
Emmanuel Lampe
afc571e331
fix(velocity): check for fake connections
2024-08-01 09:59:47 +02:00
libraryaddict
4549d07a6c
IJukeboxSong
2024-07-31 17:36:11 +12:00
libraryaddict
acc220729b
Rename JukeboxSong and StaticJukeboxSong
2024-07-31 01:45:15 +12:00
libraryaddict
b27f64c3b1
Missing license disclaimer thingy
2024-07-30 21:17:32 +12:00
libraryaddict
1f7a09a561
Current WIP, adds damage types and jukebox
2024-07-30 21:14:15 +12:00
retrooper
f0b15c3f94
Merge pull request #900 from booky10/fix/number-issues-adventure-nbt-serializer
...
Allow item hover event count to be specified as any number
2024-07-27 11:32:31 +02:00
booky10
cc03d3029d
Allow item hover event count to be specified as any number
...
Fixes compatibility with vanilla codec, as vanilla allows any number to be decoded within DFU
2024-07-23 17:57:46 +02:00
retrooper
ef2d24c5ff
Merge pull request #894 from booky10/fix/chunk-codec-issues
...
Fix chunk codec issues
2024-07-23 13:58:58 +02:00
retrooper
6a69d1bcb4
Generics usage in ProtocolPacketEvent for platform-dependent player
2024-07-22 18:50:35 +02:00
retrooper
ea1e11d690
Merge pull request #874 from Bram1903/fix/LatestFabricSupport
...
Fabric 1.21 Support
2024-07-22 11:32:47 +02:00
retrooper
65b51fa6f5
Update javadocs link.
2024-07-19 17:27:25 +02:00
retrooper
dae31cedf6
Fix fabric injection, packet listeners now work.
2024-07-19 17:21:32 +02:00
retrooper
6179f997c9
Update fabric version
2024-07-19 16:42:50 +02:00
retrooper
8cb083c29a
Correction in PacketListenerPriority documentation, MONITOR should be avoided when modifying.
2024-07-19 13:21:57 +02:00
retrooper
7dd2434ea9
Modification of PacketEvents settings is now marked as internal API behavior. Generally, you are not advised to change the settings.
...
Unnecessary static in PacketEventsAPI fixed.
2024-07-19 13:17:34 +02:00
booky10
66ca952a1d
Add getter/setter for light data in Chunk_v1_9 packet
...
Would otherwise be impossible to send new chunk layers for 1.9 to 1.13
2024-07-18 19:57:10 +02:00
booky10
d6fef1180f
Don't read sky data in overworld dimension for 1.14 to 1.15.2
...
Sky data in overworld was only present before 1.14
2024-07-18 18:48:13 +02:00
booky10
32451165ba
Don't allow usage of singleton palette before 1.18
2024-07-18 18:47:28 +02:00
Bram
2c806b2d4e
Removed: foojay-resolver in favor of the foojay-resolver-convention
2024-07-14 11:17:40 +02:00
Bram
a8dadfdfff
Merge branch 'refs/heads/2.0' into fix/LatestFabricSupport
...
# Conflicts:
# settings.gradle.kts
2024-07-14 11:16:32 +02:00
booky10
4524b4289c
Merge pull request #883 from booky10/fix/1.21-item-attribute-modifiers-component
...
Fix reading/writing of item attribute modifier component in 1.21
2024-07-12 23:18:36 +02:00
retrooper
67010e8f11
Merge pull request #885 from booky10/feat/javadoc-publishing
...
Implement automatic javadoc publishing
2024-07-12 16:39:42 +02:00
retrooper
245ee7699a
Merge pull request #890 from booky10/fix/null-material-types
...
Fix missing material types for vault and heavy core
2024-07-12 16:38:11 +02:00
booky10
25dfb3c5b9
Fix missing material types for vault and heavy core
2024-07-12 16:36:57 +02:00
booky10
52709f279b
Update javadoc links
2024-07-11 17:43:23 +02:00
booky10
13d6437638
Remove javadoc pages deployment
...
Will be handled in different repo, see https://github.com/packetevents/packetevents.github.io
2024-07-11 16:51:46 +02:00
booky10
7a3505070e
Restrict javadoc deployment for tag pushes
2024-07-11 01:27:31 +02:00
booky10
7d79603d08
Move api javadoc to pages root
2024-07-11 00:57:37 +02:00
booky10
7890a8ae97
Add javadoc overview
2024-07-11 00:55:54 +02:00
booky10
c73e149f43
Fix spigot javadoc jar generation
2024-07-11 00:24:13 +02:00
booky10
2f72766aac
Fix wrong action name
2024-07-10 23:50:33 +02:00
booky10
43d915d09c
Add id-token permission to javadoc extraction job
2024-07-10 23:49:47 +02:00
booky10
3444b07f6a
Try if github pages upload action works
2024-07-10 23:46:23 +02:00
booky10
3cfb1c5b3e
Add initial javadoc upload workflow
...
Designed to not work yet, just testing if it outputs correct stuff as act is broken for me
2024-07-10 23:15:39 +02:00
booky10
150736b170
Update github build workflow actions
2024-07-10 23:11:20 +02:00
booky10
1f325a36d6
Enable javadoc jar generation
2024-07-10 23:10:56 +02:00
booky10
bdc8f6ef82
Use jvm 21 for kotlin jvm toolchain in buildscript
2024-07-10 23:10:44 +02:00
booky10
d365e4b949
Add foojay resolver convention plugin
...
Allows automatic download of specified java toolchain jvm version
2024-07-10 23:10:25 +02:00
booky10
4f4a3ba87b
Update gradle wrapper to v8.8
2024-07-10 23:06:44 +02:00
retrooper
7ceeaa5f3f
Merge pull request #872 from ShadowOfHeaven-Me/2.0
...
Optimized the EventManager
2024-07-10 21:07:52 +02:00
retrooper
6f968275c1
Merge pull request #882 from KoutaChan/fix-pallet-shift
...
Fix: Palette index calculation error
2024-07-10 18:29:41 +02:00
booky10
245b7a0d2a
Fix reading/writing of item attribute modifier component in 1.21
2024-07-10 16:29:36 +02:00
KoutaChan
13b1007c1c
Fix: pallet bit
2024-07-10 23:26:15 +09:00
KoutaChan
c164908aac
Fix: bit shift error
2024-07-10 23:22:40 +09:00
KoutaChan
1dd28f124a
Fix: Palette index calculation error
2024-07-10 23:02:53 +09:00
retrooper
149483ef21
Merge pull request #881 from booky10/fix/version-hash-publishing
...
Don't specify version hash in published maven pom
2024-07-10 15:49:32 +02:00
booky10
0a689564ce
Don't specify version hash in published maven pom
2024-07-10 15:44:33 +02:00
retrooper
facc6bc074
Merge pull request #877 from booky10/feat/versioning-commit-hash
...
Add current commit hash to project version
2024-07-09 22:57:14 +02:00
booky10
41224c9faf
Fix snapshot commit for release versions
2024-07-09 22:54:15 +02:00
retrooper
14548f5679
Even more clarity, now LGTM
2024-07-09 22:47:50 +02:00
retrooper
d31d0b2487
Correction and clarity to the PEVersion#snapshotCommit method documentation
2024-07-09 22:43:38 +02:00
retrooper
1366872acb
Merge pull request #870 from AbhigyaKrishna/mappings-reading-optimization
...
Mappings reading optimization
2024-07-09 11:41:11 +02:00
retrooper
40fcd23d87
More clarity on the deprecation reason in PEVersion#asArray
2024-07-09 11:31:48 +02:00
retrooper
ba7d09ee91
Correction in the documentation of PEVersion: Accuracy in the content and grammar whilst ensuring clarity.
2024-07-09 11:19:08 +02:00
booky10
b0fa4eb3b7
Don't include snapshot commit hash in file name
2024-07-09 01:54:40 +02:00
Bram
a8bf163355
Fix: Left behind old shadow plugin convention
2024-07-08 19:00:31 +02:00
booky10
f81730c689
Add snapshot commit api to PEVersion
2024-07-08 15:18:07 +02:00
booky10
a830fe8b63
Adjust PEVersionTask regex to allow any commit hash length
2024-07-08 04:18:25 +02:00
booky10
05c116271e
Add current commit hash to project version
...
Only added when version is a snapshot version
Disables itself if no git directory is found
2024-07-08 04:09:31 +02:00
booky10
a08f89813e
Allow chat type decoration parameters to be defined directly
2024-07-08 03:47:39 +02:00
booky10
87fa35dea0
Fix enchantment registry not being able to be replaced
...
Caused by directly referencing static registry
2024-07-08 03:45:32 +02:00
booky10
4ed644313a
Allow enchantment definition slots to be defined directly
2024-07-08 03:43:34 +02:00
booky10
9fdd1615bd
Merge branch '2.0' into feat/network-synced-registries
2024-07-08 03:25:15 +02:00
booky10
4ab220f189
Make TrimMaterial override armor materials optional
2024-07-08 03:25:00 +02:00
booky10
adef187685
Fix MappedEntitySet codec
2024-07-08 03:24:21 +02:00
booky10
0e5a443e9b
Fix various issues encountered on login
2024-07-08 03:01:45 +02:00
booky10
4961ad6e8d
Add biome registry handling to SynchronizedRegistriesHandler
...
Seems like I forgot to add it there
2024-07-08 02:44:32 +02:00
booky10
e056f1ca0a
Implement synchronized painting variant registries
2024-07-08 02:43:58 +02:00
retrooper
9d43fd7a35
Stop re-encoding by default on BungeeCord
2024-07-07 23:56:29 +02:00
AbhigyaKrishna
45bafb37fe
feat: HashedByteArray -> BinaryNBTCompound
2024-07-05 22:52:16 +05:30
AbhigyaKrishna
3554f3c6ac
feat: Read compound tags in binary format to save memory
2024-07-05 22:42:32 +05:30
AbhigyaKrishna
10d4cf4a9d
feat: fabric adventure dependency fix
2024-07-05 20:17:04 +05:30
retrooper
7a1621aa37
Final correction for bungee injector.
2024-07-05 14:11:57 +02:00
retrooper
22a5e67c69
Another correction, but probably obsolete
2024-07-05 13:56:33 +02:00
retrooper
8737ba218a
Correct decompress decode method on Bungee. Reflection error.
2024-07-05 13:51:47 +02:00
Bram
98e0a35f0c
Removed: Unused Mod Properties in the Fabric module gradle.properties
2024-07-05 10:01:21 +02:00
Bram
21500f3cab
Fixed: Another issue in the PacketEventsInjectorMixin
2024-07-04 23:58:13 +02:00
Bram
750d87937a
Switched: johnrengelman shadow to googler's shadowjar for Java 21 support (See https://github.com/johnrengelman/shadow/issues/908 )
2024-07-04 23:55:25 +02:00
Bram
f78ffc9a5c
Fixed: PacketEventsInjectorMixin
2024-07-04 23:33:10 +02:00
Bram
48b789d268
Added: foojay-resolver (fixes issues with the latest Fabric Loom dependency
...
Re-added: Parchment (mixed something up)
Fixed: Compile issue with removed class import
2024-07-04 23:29:29 +02:00
ShadowOfHeaven
a765347cba
Added a class description
2024-07-04 23:02:54 +02:00
ShadowOfHeaven
21fe4c920d
Just a little sneak of my name there
2024-07-04 22:55:05 +02:00
Bram
d35505b83a
Updated: Fabric Loom 0.11-SNAPSHOT -> 1.7.2
...
Updated: Gradle Wrapper 8.5 -> 8.7 (Required by Fabric Loom)
Removed: parchmentmc (Fabric Loom provides native support for Parchment mappings as of version 0.9)
Changed: Fabric Dependency id from fabric -> fabric-api (see: https://fabricmc.net/2022/11/24/1193.html )
2024-07-04 21:36:50 +02:00
ShadowOfHeaven
930d1370ce
Removed the User value association system. Another PR will be made
2024-07-04 09:45:25 +02:00
ShadowOfHeaven
4f01b9b2d6
Added a User value association system
2024-07-04 00:35:46 +02:00
ShadowOfHeaven
79ae548463
Optimized the EventManager v2
2024-07-03 19:59:41 +02:00
booky10
08120db4b4
Add small biome mapping test
2024-07-03 18:18:38 +02:00
booky10
11d2d979cc
Fix biome mapping not being compressed and shadowed
2024-07-03 18:18:26 +02:00
booky10
3822609afe
Implement most particle data codecs
...
Theoretically required for full support of biome data serialization
2024-07-03 18:15:25 +02:00
booky10
dd057ca20f
Finish biome effects implementation
2024-07-03 15:16:32 +02:00
ShadowOfHeaven
42403c9f51
Optimized the EventManager
2024-07-03 00:37:35 +02:00
AbhigyaKrishna
9eb6b11fe0
fix: Statistics not being cached
2024-07-03 02:27:32 +05:30
booky10
8c02988330
Save dimension type as reference while decoding
...
Reference gets resolved when calling the getter, this allows legacy version registries to be swapped before resolving the new dimension type
2024-07-02 18:58:12 +02:00
AbhigyaKrishna
fd7223a259
fix: Statistics reading
2024-07-02 15:37:16 +05:30
AbhigyaKrishna
b22560852f
chores: Update licence
2024-07-02 15:30:06 +05:30
AbhigyaKrishna
3498720e8c
feat: Change SequentialNBTReader class design to resemble reader
2024-07-02 15:24:46 +05:30
AbhigyaKrishna
457aed221b
fix: NBTEnd not being read when there is no data
2024-07-02 14:39:24 +05:30
AbhigyaKrishna
d6fb68d8e7
chores: Update licence
2024-07-02 03:32:50 +05:30
AbhigyaKrishna
0e6c15eb8b
feat: Diff load order
2024-07-02 03:30:00 +05:30
AbhigyaKrishna
485124bfef
feat: change diff tags order
...
'removals' tags now come before 'additions' tag
Order: removals, additions, changes
2024-07-02 03:27:53 +05:30
AbhigyaKrishna
3517d1fd00
feat: Refactor SequentialNBTReader
2024-07-02 03:07:38 +05:30
AbhigyaKrishna
7d80f08e1c
fix: nbt reading
2024-07-02 03:04:31 +05:30
AbhigyaKrishna
ff0af88299
chores: Removed debug statements
2024-07-02 02:16:25 +05:30
booky10
ba08959d39
Add wolf_variant registry and start with biome registry
...
Biome registry is required for wolf variant registry to fully work
2024-07-01 22:41:13 +02:00
AbhigyaKrishna
050aab96f7
fix: SequentialNBTReader parsing
2024-07-02 02:11:00 +05:30
booky10
afcdfae5a1
Fix version being ignored in User#getMinWorldHeight
2024-07-01 21:13:46 +02:00
booky10
8908cce24f
Implement enchantment effect component types
2024-07-01 21:08:49 +02:00
booky10
31447cb6cf
Fix test errors
2024-07-01 20:21:02 +02:00
booky10
884ab800f5
Start working on enchantment registry
2024-07-01 19:11:32 +02:00
booky10
6e87103114
Move everything related to registries from InternalPacketListener to new class
2024-07-01 16:24:55 +02:00
booky10
c3b8c213d3
Implement trim_material as a synchronized registry
2024-07-01 16:22:14 +02:00
booky10
33f50a0eb9
Implement trim_pattern as a synchronized registry
2024-07-01 16:12:32 +02:00
booky10
3f309bc92d
Migrate usages of chat types to new registry
2024-07-01 16:04:33 +02:00
booky10
8315b8d335
Implement chat_type as a synchronized registry
2024-07-01 15:59:15 +02:00
booky10
902c99aca2
Revert some now useless changes to MappedEntity#getId
2024-07-01 15:41:52 +02:00
booky10
f4fc20a1c8
Revert formatting changes in ChunkReader_v1_7
2024-07-01 15:36:50 +02:00
booky10
0690c45558
Add quality methods to StaticDimensionType
2024-07-01 15:35:11 +02:00
booky10
699fd9ac02
Finish migrating Dimension to DimensionType
2024-07-01 15:32:08 +02:00
booky10
b01db5ca2a
Work on creating registries of sent registries
2024-07-01 12:39:13 +02:00
booky10
4fdc9c67ad
Finish encode of DimensionType
2024-07-01 12:38:56 +02:00
AbhigyaKrishna
395ed0d58e
fix: version mapper initialization
2024-07-01 10:03:17 +05:30
AbhigyaKrishna
bcad08260c
feat: Implement sequential reading for all mappings
2024-07-01 09:55:34 +05:30
AbhigyaKrishna
06be6d52b2
feat: Implement closeable on sequential reader
2024-07-01 09:55:05 +05:30
AbhigyaKrishna
7ec896b8b0
feat: Updated block mappings for easier access to v2 mapping deserializer
2024-07-01 09:37:39 +05:30
AbhigyaKrishna
2717a94db5
feat: Implement sequential reader in type builder
2024-07-01 09:08:19 +05:30
AbhigyaKrishna
2ea20e3d19
feat: Bump Compression Task version
2024-07-01 09:07:43 +05:30
AbhigyaKrishna
94d939ba67
feat: Changes to mappings format
2024-07-01 08:13:25 +05:30
AbhigyaKrishna
620af0aec0
feat: SequentialNBTReader
2024-07-01 07:15:07 +05:30
AbhigyaKrishna
2299d82b92
feat: Improved NBTSerializer class
2024-07-01 05:56:54 +05:30
AbhigyaKrishna
25dbe61f64
feat: NBTLimiter class rewrite
...
Rewritten NBTLimiter class with better approach for better extendability
2024-07-01 05:53:41 +05:30
retrooper
ecd183156a
* Bump version up to 2.4.1-SNAPSHOT
...
* Marked SpigotReflectionUtil.getEntityById as internal
2024-07-01 00:20:35 +02:00
booky10
3f0cb7e799
Start working on dimension type registry
2024-06-30 23:33:40 +02:00
retrooper
3400877958
Release of 2.4.0
2024-06-30 22:56:57 +02:00
booky10
7b209c9733
Revert changes to Dimension
2024-06-30 22:37:10 +02:00
booky10
dfd490afc8
Merge branch '2.0' into feat/network-synced-registries
2024-06-30 22:34:34 +02:00
retrooper
b5a2c0ac29
Merge pull request #865 from cswhite2000/2.0
...
Switch EventManager listenerSet to CopyOnWriteArraySet
2024-06-30 09:40:48 +02:00
Christopher White
c43dd6425a
Switch EventManager listenerSet to CopyOnWriteArraySet
2024-06-29 23:21:34 -07:00
retrooper
8b643ae238
Small change of updater messages.
2024-06-30 08:07:55 +02:00
retrooper
b07461340e
Corrected latest chat type mappings to represent 1.20
2024-06-30 07:59:44 +02:00
retrooper
4cec8fe549
Correct the chat type mappings, temporarily assume that the 1.20.1 is referring to 1.20.2?
2024-06-30 07:56:23 +02:00
booky10
55ea059640
Merge pull request #864 from booky10/fix/sound-mappings-1.21
...
Fix missing/renamed sounds for 1.21
2024-06-30 05:09:09 +02:00
booky10
5429e80f66
Fix missing/renamed sounds for 1.21
2024-06-30 04:01:06 +02:00
retrooper
16c71fad14
Start working on WolfVariant in EntityMetadata packet.
2024-06-29 00:47:38 +02:00
retrooper
d27a97c322
Bump version up to 2.4.0-SNAPSHOT!
2024-06-29 00:46:38 +02:00
retrooper
59ccfa89db
Trying out PacketWrapper#writeVarInt optimization, written by Steinborn.
2024-06-29 00:26:55 +02:00
retrooper
b6f25939be
Correction in javadocs for SpigotConversionUtil
2024-06-29 00:10:23 +02:00
retrooper
d19406edf4
Merge pull request #858 from Bram1903/chore/BlockDataMethodCleanup
...
Removed: Unnecessary 1.7.10 version check and improved JavaDocs
2024-06-29 00:04:29 +02:00
retrooper
0702ff3716
Merge pull request #852 from AbhigyaKrishna/2.0
...
feat: chat type mappings update
2024-06-29 00:00:22 +02:00
Bram
4577c5a948
Removed: Unnecessary 1.7.10 version check
...
Added: JavaDocs to SpigotConversionUtil#fromBukkitMaterialData and #toBukkitMaterialData
2024-06-28 16:32:11 +02:00
booky10
d073f716f9
Merge pull request #855 from dawon/bugfix/fix-new-potion-effects
...
Fix new potion effects
2024-06-27 23:56:06 +02:00
Jakub Zacek
5051c31bea
Fix new potion effects
2024-06-27 23:48:47 +02:00
retrooper
eb2d91745a
Merge pull request #854 from booky10/fix/bungee-compat
...
Fix more bungee compatibility issues
2024-06-27 21:46:47 +02:00
booky10
9d40bc506e
Disable debug mode in bungee plugin
2024-06-27 21:07:29 +02:00
booky10
0fa3be1ce2
Extract channel from player on login
...
Caused by login success being sent after the PostLoginEvent gets fired
2024-06-27 20:59:28 +02:00
booky10
acecdb57f4
Skip bungeecord query handler handler
2024-06-27 20:58:00 +02:00
retrooper
33d3a72d4d
Fix bungee packetevents injector.
2024-06-27 20:18:10 +02:00
retrooper
2ce1fc1e79
Final change to this all
2024-06-27 19:08:56 +02:00
retrooper
63b9e27ebf
More changes to the bungee pipeline injector?
2024-06-27 19:04:55 +02:00
retrooper
8093481f08
Last changes to the bungee pipeline injector?
2024-06-27 18:51:35 +02:00
AbhigyaKrishna
629871fcb5
fix: type naming
2024-06-27 21:15:13 +05:30
AbhigyaKrishna
d2d9135c45
feat: chat type mappings update
2024-06-27 21:11:15 +05:30
retrooper
bf5c3e90b3
Merge pull request #851 from booky10/fix/dimtype-reg-via-velocity
...
Fix errors on velocity when via is installed on backends
2024-06-27 16:58:01 +02:00
retrooper
d100fd54de
Delete .travis.yml
...
We no longer use Travis CI. The Jenkins builds are working again,
2024-06-27 16:54:46 +02:00
retrooper
c8137956f1
Merge pull request #799 from booky10/fix/recipe-packet
...
Fix recipe packet writing/reading
2024-06-27 16:53:18 +02:00
booky10
e7739bac22
Remove MCProtocolLib credits from rewritten classes
2024-06-27 16:36:15 +02:00
booky10
5c9cfcb25d
Merge branch '2.0' into fix/recipe-packet
2024-06-27 16:35:08 +02:00
booky10
4364d7a646
Check for dimension type registry name without vanilla namespace
2024-06-27 16:31:57 +02:00
booky10
0ba826f578
Work around missing dimension type registry causing join errors
2024-06-27 16:29:57 +02:00
booky10
92564a3a09
More WIP changes to networked registries
2024-06-27 16:10:20 +02:00
retrooper
3e21b7d384
Merge pull request #836 from ManInMyVan/#693
...
Add #693
2024-06-27 16:10:20 +02:00
retrooper
b934d7361d
Merge pull request #844 from booky10/fix/item-hover-component
...
Support reading components in show_item hover events
2024-06-27 15:55:59 +02:00
booky10
172cfceed7
WIP starting network synchronized registries
2024-06-25 20:47:01 +02:00
retrooper
4047bafc6a
Merge pull request #848 from booky10/feat/itemstack-builder-utils
...
Add utility methods to ItemStack builder
2024-06-24 17:13:36 +02:00
booky10
27de28476e
Add utility methods to ItemStack builder
...
Allows easier modification of components and nbt data
2024-06-24 15:01:29 +02:00
retrooper
e5dfb84a53
Update DefaultNBTSerializer
2024-06-24 00:15:50 +02:00
retrooper
2b3c77b6b8
Update DefaultNBTSerializer to have limit for LONG_ARRAY
2024-06-24 00:15:31 +02:00
retrooper
16294ccc63
Merge pull request #847 from Bram1903/fix/NettyVersionResolving
...
Fix: Netty Version not being properly converted to an PEVersion
2024-06-23 23:56:50 +02:00
Bram
9ae2cd0538
Fix: Netty Version not being properly converted to an PEVersion due to not using semantic versioning
2024-06-23 23:44:13 +02:00
retrooper
30492a7b1f
chores: Format the multi-line comment appropriately and clarify references to the generated PEVersions class
2024-06-23 12:10:29 +02:00
AbhigyaKrishna
ecce9d8c4e
chores: Added default comment to the generated file
2024-06-23 15:32:23 +05:30
AbhigyaKrishna
448f7be2ae
fix: include generateVersionFile task in task graph
2024-06-23 02:49:43 +05:30
Abhigya
4e3c45bc7e
Merge pull request #819 from Bram1903/feat/GlobalVersioning
...
Feat: Global Versioning
2024-06-23 00:46:09 +05:30
AbhigyaKrishna
ccd3fd4b7b
chores: following some code design
2024-06-22 21:35:47 +05:30
Bram
5003d578c7
Fix: toArray being mend to be called asArray
2024-06-22 17:18:15 +02:00
AbhigyaKrishna
881a66740f
feat: Removed version resolution from manifest
2024-06-22 15:39:14 +05:30
AbhigyaKrishna
c9ae98814c
Merge branch 'feat/GlobalVersioning' of github.com:Bram1903/packetevents into Bram1903-feat/GlobalVersioning
2024-06-22 15:36:43 +05:30
AbhigyaKrishna
ee2c562c9e
feat: PEVersions file generation
2024-06-22 15:33:36 +05:30
Bram
cbd38ea581
Reverted: Previously changed comparison method
2024-06-22 11:08:08 +02:00
Bram
983b27d071
Added: Old toArray method and marked it as deprecated to prevent breaking changes
2024-06-22 10:39:03 +02:00
Bram
b2a827e97b
Merge branch 'refs/heads/2.0' into feat/GlobalVersioning
2024-06-22 10:31:59 +02:00
AbhigyaKrishna
a709e5f746
fix: Velocity adventure issue
2024-06-22 08:13:58 +05:30
AbhigyaKrishna
c1f482dd35
feat: MappingCompression task to depend on mapping files
2024-06-22 08:13:31 +05:30
booky10
269ca7ad43
Fix support for adventure <4.17.0
2024-06-22 04:17:14 +02:00
booky10
594f8cdc6e
Fix show item hover support for <1.20.3
2024-06-22 04:14:20 +02:00
booky10
187041bd47
Support reading components in show_item hover events
2024-06-22 03:29:55 +02:00
booky10
68eb537b66
Merge pull request #843 from booky10/fix/light-data-1.17-newer
...
Fix light data throwing errors for 1.17+
2024-06-22 01:56:48 +02:00
AbhigyaKrishna
b18884a5b3
fix: manifest implementation version should be in shadowJar
2024-06-22 05:19:26 +05:30
AbhigyaKrishna
061d1c25e8
fix: Version comparison
2024-06-22 04:57:11 +05:30
booky10
b1a881bfab
Fix light data throwing errors for 1.17+
2024-06-22 01:26:48 +02:00
AbhigyaKrishna
e68dbe4155
chore: method design pattern
2024-06-22 04:56:39 +05:30
AbhigyaKrishna
60e33ef0a3
Merge branch 'feat/GlobalVersioning' of github.com:Bram1903/packetevents into Bram1903-feat/GlobalVersioning
2024-06-22 04:12:04 +05:30
AbhigyaKrishna
eac72687cb
Merge branch 'Bram1903-feat/NativeFoliaSupport' into 2.0-pe
2024-06-22 04:03:03 +05:30
AbhigyaKrishna
d205d83f61
chore: Property access from a global final isFolia variable
...
Accessing a global final variable is better than having a copy in every class
2024-06-22 04:01:03 +05:30
AbhigyaKrishna
61969bf9df
chore: Work directory set to rootDir
...
Work directory now set to rootDir for easier navigation
2024-06-22 03:45:46 +05:30
AbhigyaKrishna
ed9ff0c5da
Merge branch 'feat/NativeFoliaSupport' of https://github.com/Bram1903/packetevents into Bram1903-feat/NativeFoliaSupport
2024-06-22 03:34:20 +05:30
Abhigya
371ec62571
Merge pull request #842 from AbhigyaKrishna/2.0
...
fix: Fixes NoSuchMethodError for GsonComponentSerializer on version 1.16.5
2024-06-22 03:19:31 +05:30
AbhigyaKrishna
4eaf000dea
fix: Fixes NoSuchMethodError for GsonComponentSerializer on version 1.16.5
...
Fixed NoSuchMethodError in GsonComponentSerializer due to older version of abstract classes in version 1.16.5
Ticket: #832
2024-06-22 03:16:19 +05:30
retrooper
97ca0007fc
Merge remote-tracking branch 'origin/2.0' into 2.0
2024-06-21 22:44:45 +02:00
retrooper
ece10d66c1
Undo something I removed, sorry!
2024-06-21 22:44:30 +02:00
booky10
420a658b0a
Merge pull request #835 from libraryaddict/2.0
...
Divide Color's int rgb by 255 when using for particle colors
2024-06-21 22:21:53 +02:00
booky10
48fbb745e0
Merge branch '2.0' into fix/recipe-packet
2024-06-21 22:15:42 +02:00
retrooper
24d78ef500
Merge remote-tracking branch 'origin/2.0' into 2.0
2024-06-21 22:13:05 +02:00
retrooper
a1123cdf67
Fix Paper entity lookup code.
2024-06-21 22:12:33 +02:00
booky10
cd3d3b17b1
Merge pull request #760 from ShadowOfHeaven-Me/WrapperPlayServerMapData-added
...
Added the missing WrapperPlayServerMapData
2024-06-21 21:44:37 +02:00
booky10
1f2de8a566
Merge pull request #715 from LeeGodSRC/feat/update-light
...
Added WrapperPlayServerUpdateLight and LightData
2024-06-21 21:32:25 +02:00
LeeGodSRC
74f4d65356
fix: Suggested changes for chunk packets by booky10
2024-06-22 03:16:11 +08:00
retrooper
2be8692661
Fix attempt for conversion between packetevents and bukkit itemstacks.
2024-06-21 13:32:43 +02:00
retrooper
5021eebd55
Final fix for bungee injector.
2024-06-21 13:26:37 +02:00
retrooper
124e59ba70
Another fix for bungee injector.
2024-06-21 13:12:42 +02:00
retrooper
301adfb28f
Fix paper entity lookup
2024-06-21 13:06:38 +02:00
retrooper
8d80725cf7
Does this fix the Bungee injector
2024-06-21 12:56:16 +02:00
retrooper
7aa429988b
Fixing the BungeeCord injector and the server version detection. (Part 2)
2024-06-21 12:40:43 +02:00
Bram
1cbd15e797
Merge branch 'refs/heads/2.0' into feat/NativeFoliaSupport
2024-06-21 09:11:09 +02:00
Bram
802c707902
Merge branch 'refs/heads/2.0' into feat/GlobalVersioning
2024-06-21 09:10:36 +02:00
retrooper
17d5e3f711
Merge remote-tracking branch 'origin/2.0' into 2.0
2024-06-21 08:05:39 +02:00
retrooper
7a342a8c21
Fixing the BungeeCord injector and the server version detection.
2024-06-21 08:04:53 +02:00
retrooper
a4e9a2cd06
Merge pull request #800 from booky10/fix/various-packet-wrapper-issues
...
Fix various packet wrapper issues
2024-06-21 00:13:02 +02:00
retrooper
4abc4a7403
Update copy method argument in WrapperPlayServerWorldBorderWarningReach (compilation error)
2024-06-21 00:12:38 +02:00
retrooper
2a364895cf
Correct constructor naming
2024-06-21 00:07:52 +02:00
retrooper
ff56e81136
Correct packet wrapper naming
2024-06-21 00:06:08 +02:00
retrooper
371fcff23a
Merge pull request #691 from ytnoos/reencode-fix
...
Fix re-encode for new bytebufs that were bigger than the received one
2024-06-21 00:03:05 +02:00
retrooper
abe5b9f75a
Merge pull request #827 from dawon/bugfix/fix-missing-body-slot
...
Fix missing Equipment body slot
2024-06-20 23:53:44 +02:00
retrooper
2c36b5ad9f
Variable naming issue fixed
2024-06-20 23:48:42 +02:00
retrooper
0436b8cb6a
Account for client version in EquipmentSlot enum.
2024-06-20 23:42:24 +02:00
retrooper
2fb967ec04
Merge pull request #732 from booky10/dev/1.21
...
1.21 update
2024-06-20 21:39:43 +02:00
retrooper
aafc45d70d
No more chat type handling
2024-06-20 21:32:12 +02:00
retrooper
3e25fa641c
Minor documentation error fixed
2024-06-18 22:07:15 +02:00
retrooper
3f3c6ba2e1
* ChatMessage_v1_19_1.ChatTypeBoundNetwork relocated to ChatType.Bound (with backwards compatibility)
...
* ChatMessage_v1_19_1#getChatType -> getChatFormatting
* ChatMessage_v1_19_3#getChatType -> getChatFormatting
* WrapperPlayServerDisguisedChat#getChatType -> getChatFormatting
* ChatTypeDecoration#decorate implemented
2024-06-18 22:03:14 +02:00
retrooper
3175ef85c4
Merge pull request #690 from ytnoos/nbt-limiter
...
Added NBT, ByteBuf, MessageSignature read limits
2024-06-17 21:40:28 +02:00
retrooper
e876b1c95f
First effort to network-synchronized registries regarding chat, but please look at TODOs.
2024-06-17 07:09:52 +02:00
retrooper
be2094a21f
Merge pull request #828 from booky10/fix/block-entity-data-wrapper
...
Fix block entity data packet wrapper
2024-06-17 06:42:23 +02:00
ManInMyVan
95fdebfb08
Add #693
2024-06-16 12:29:56 -06:00
booky10
5662c7ea9c
Fix name of attribute modifiers being unused
2024-06-16 19:48:12 +02:00
booky10
b8587a2487
Support reading int/byte/long arrays when parsing translation arguments
...
Fixes #801
2024-06-16 16:40:39 +02:00
booky10
1411fd09b9
Fix invalid WrappedBlockState mappings index
2024-06-16 16:28:08 +02:00
booky10
604a48e2dd
Make mappings compression task depend on changes to mappings input files
2024-06-16 16:24:14 +02:00
booky10
f091ab69bc
Support reading string translation arguments
2024-06-16 16:23:42 +02:00
libraryaddict
e22db21f72
Fix particledata color, divide Color's rgb's int by 255f
2024-06-16 21:27:10 +12:00
retrooper
24000fd837
Merge branch '2.0' into dev/1.21
2024-06-16 08:38:32 +02:00
retrooper
87275458bb
Merge pull request #833 from booky10/fix/velocity-version-detection
...
Fix velocity version failing to be detected
2024-06-16 06:58:18 +02:00
booky10
faac9cd83d
Mirror changes by user in name/uuid attribute modifier on change
2024-06-16 05:22:03 +02:00
booky10
887a9fa959
Look up private constructor of ResourceLocation
...
Was made private in 1.21, should normally now be constructed using static methods
2024-06-16 05:07:07 +02:00
booky10
d716309e34
Fix initialization of PacketType
2024-06-16 05:05:05 +02:00
booky10
92603a382b
Update attribute modifier encoding
...
Not perfect but idk how to solve this any better
2024-06-16 04:54:48 +02:00
booky10
88c788f654
Update item type mappings
...
Something was re-ordered in 24w19a
2024-06-16 04:46:24 +02:00
booky10
bdb429a0b4
Implement jukebox_playable component added with 24w21a
2024-06-16 04:45:21 +02:00
booky10
0c2e09bc7b
Implement wrappers for new packets added in 24w21a
...
Adds wrappers for minecraft:custom_report_details and minecraft:server_links
2024-06-16 04:32:16 +02:00
booky10
131a66220f
Add new packet types added with 24w21a
2024-06-16 04:19:16 +02:00
booky10
7e2c6726e0
Merge branch '2.0' into dev/1.21
2024-06-16 04:09:17 +02:00
LeeGodSRC
882e7b57f9
fix: Suggested changes for chunk packets
2024-06-15 21:00:54 +08:00
LeeGodSRC
990a19585f
Merge remote-tracking branch 'upstream/2.0' into feat/update-light
2024-06-15 21:00:49 +08:00
booky10
c2f7c92ed4
Fix ClientVersion#getById
2024-06-15 02:32:30 +02:00
booky10
08b420ffb4
Reverse iteration over velocity ProtocolVersion
...
Newest get chosen first now
2024-06-15 02:32:17 +02:00
booky10
d9a821e44e
Fix velocity version failing to detect
2024-06-14 14:17:16 +02:00
Bram
2e39d61d53
Bumped Travis to use Java 21
2024-06-12 09:37:15 +02:00
Bram
bb9bd91970
Fixed: Merge Conflicts
2024-06-12 09:30:25 +02:00
Bram
a789d9ec83
Merge branch 'refs/heads/2.0' into feat/NativeFoliaSupport
...
# Conflicts:
# velocity/build.gradle.kts
2024-06-12 09:28:28 +02:00
Bram
524cf896c3
Fixed: Breaking change by removing an old constructor method.
...
The method has been marked as deprecated.
2024-06-12 09:25:34 +02:00
Bram
5190d71bc8
Merge branch 'refs/heads/2.0' into feat/GlobalVersioning
2024-06-12 09:20:31 +02:00
retrooper
29dd1cdc03
Merge pull request #794 from IssueDescription/2.0
...
Add mojang mapped jar support
2024-06-11 23:04:24 +02:00
retrooper
cbe517e994
Add shadowJar block
2024-06-11 22:56:54 +02:00
retrooper
5175ed9733
Add mojang mapping attribute
2024-06-11 22:54:43 +02:00
retrooper
26ddcfde2a
Merge branch '2.0' of https://github.com/retrooper/packetevents into fork/IssueDescription/2.0
2024-06-11 22:39:35 +02:00
retrooper
e17eb7987f
Undo BuildScript changes to fix conflict
2024-06-11 22:38:35 +02:00
retrooper
6cc2ac81df
Fix package location of ServerPlayer on remapped paper
2024-06-11 19:20:32 +02:00
AbhigyaKrishna
12d16144c0
Merge remote-tracking branch 'pe/2.0' into 2.0-pe
2024-06-11 02:29:38 +05:30
AbhigyaKrishna
f4fc034d51
Publication group and artifact naming changes
2024-06-11 02:27:16 +05:30
booky10
42c6df480c
Fix block entity data packet wrapper
2024-06-10 20:38:20 +02:00
Jakub Zacek
c591335dd4
Fix missing Equipment body slot
2024-06-10 20:34:58 +02:00
retrooper
d93e01cca1
Update .travis.yml JDK to 17
2024-06-10 20:30:16 +02:00
retrooper
b666a1a62c
Update .travis.yml to JDK 17
2024-06-10 20:25:28 +02:00
retrooper
fcdac76ba9
Rename travis.yml to .travis.yml
2024-06-10 18:19:58 +02:00
retrooper
3e33d38518
Create travis.yml
2024-06-10 18:17:52 +02:00
AbhigyaKrishna
46dd4be1d3
Publishing group and module group are now consistent
...
We are probably going to change the naming convention of module and group in future update but this should work for now
2024-06-10 20:14:16 +05:30
AbhigyaKrishna
809517f04b
Maven publication pom now have better structure
2024-06-10 03:42:17 +05:30
AbhigyaKrishna
f53e73ed9a
Try fixing publication dependency resolution
2024-06-09 23:54:47 +05:30
AbhigyaKrishna
a7e1852af4
compileOnly -> shadow configuration for pom generation
2024-06-09 01:54:20 +05:30
AbhigyaKrishna
95ac9d8633
Maven Publication for shadow configuration
2024-06-09 01:45:14 +05:30
Bram
8034de3ec3
Improved: JavaDocs
2024-06-08 10:36:28 +02:00
Bram
ee6aac43d4
Added: Overload constructor which defaults snapshot to false
...
Removed: Cloneable interface, and simply returns a new object with the same values.
Added: Getters for the class field (Using Java record naming conventions)
2024-06-08 10:28:14 +02:00
Bram
2fef51f3d4
Rewrote: PEVersion, now implementing Comparable and Cloneable
2024-06-08 00:24:44 +02:00
Bram
f27ead56c7
Fixed: Making Gradle not use the cache when just changing version number.
2024-06-07 19:26:35 +02:00
Bram
317853fd8e
Merge branch 'refs/heads/2.0' into feat/GlobalVersioning
2024-06-07 19:14:15 +02:00
Bram
db8a4184f8
Merge branch 'refs/heads/2.0' into feat/NativeFoliaSupport
...
# Conflicts:
# spigot/build.gradle.kts
2024-06-07 19:12:43 +02:00
AbhigyaKrishna
95543c7033
Publication for patch module
2024-06-07 05:03:38 +05:30
AbhigyaKrishna
306f1598e0
Publish configuration
2024-06-07 04:30:02 +05:30
Abhigya
5a26451880
Merge pull request #823 from AbhigyaKrishna/2.0
...
Publication consistency
2024-06-07 02:50:21 +05:30
AbhigyaKrishna
9384187f06
Publication consistency for with older convention
2024-06-07 02:49:32 +05:30
AbhigyaKrishna
5e414bae58
Revert "Patch for group name"
...
This reverts commit 990dfc279f .
2024-06-07 02:48:55 +05:30
retrooper
990dfc279f
Patch for group name
2024-06-06 23:06:13 +02:00
retrooper
27ec0876cb
Publishing patch
2024-06-06 22:50:58 +02:00
retrooper
c3853614c5
Merge pull request #814 from AbhigyaKrishna/library-patching
...
Library patching
2024-06-06 22:36:05 +02:00
_ShadowOfHeaven_
67855eda8a
Merge pull request #1 from booky10/fix/map-data-wrapper-version-compat
...
Fix map data wrapper version compat
2024-06-06 21:57:17 +02:00
retrooper
e2ed78e81d
Merge pull request #822 from RaynLegends/2.0
...
Fix: WrapperPlayServerChunkDataBulk not initialized correctly when instantiated multiple times
2024-06-06 18:26:15 +02:00
RaynLegends
80ae2de524
Fix: WrapperPlayServerChunkDataBulk not initialized correctly when instantiated multiple times
...
Fixes retrooper/packetevents#821
2024-06-06 11:46:52 +02:00
AbhigyaKrishna
af3c440526
Backward compatibility to AdventureNBTSerializer
2024-06-06 10:23:42 +05:30
Bram
8bac60f2db
Fixed: Documentation typo
2024-06-05 11:17:48 +02:00
Bram
6d0d1df82e
Improved: Version parsing from the manifest implementation by moving it to its own method
2024-06-05 11:10:13 +02:00
Bram
44eba1fbdc
Fixed: Unit Tests failing because of not being able to access the jar manifest.
2024-06-05 09:44:10 +02:00
Bram
7ca7eaa346
Improved: Global Versioning
2024-06-05 09:30:44 +02:00
ytnoos
fb93dde220
upstream
2024-06-04 21:11:18 +02:00
Abhigya
4f9f58f76f
Merge pull request #811 from joshuaprince/fix-map-decoration
...
Fix map ItemStack decoding for rotation key
2024-06-04 21:00:20 +05:30
Abhigya
4c2ee57f8d
Merge pull request #817 from booky10/fix/joingame-respawn-screen
...
Fix enforcesSecureChat not being read on login packet
2024-06-04 20:52:46 +05:30
booky10
345db7d3f6
Add recipe serializer mappings compression to new mappings task
2024-06-04 14:25:12 +02:00
booky10
ab6df11274
Merge branch '2.0' into fix/recipe-packet
2024-06-04 14:21:45 +02:00
booky10
71ed30e2a9
Fix enforcesSecureChat not being read
2024-06-04 08:53:18 +02:00
AbhigyaKrishna
cbfccafce7
Unregister debug listener
2024-06-03 22:57:43 +05:30
AbhigyaKrishna
2888afa999
Update to publish configuration which now includes shadow publication
2024-06-03 22:56:57 +05:30
AbhigyaKrishna
9c4d7cb933
Adventure version resolution fix
2024-06-03 22:54:25 +05:30
AbhigyaKrishna
baec4bdd00
MIT Licence
2024-06-03 22:54:11 +05:30
AbhigyaKrishna
a00ae8f52c
Fix argument parsing
2024-06-03 21:31:36 +05:30
AbhigyaKrishna
b973820c59
Shadow configuration for patch module and gson inclusion
2024-06-03 21:08:42 +05:30
AbhigyaKrishna
5fbf597d20
Removed gradle daemon as we are having issues
2024-06-03 21:08:04 +05:30
AbhigyaKrishna
cc8bb89ee5
TranslatableArgument patch
2024-06-03 20:51:27 +05:30
AbhigyaKrishna
1f0792f854
Patch ShowItemSerializer and ShowEntitySerializer
2024-06-03 19:51:58 +05:30
AbhigyaKrishna
6b7ebc2162
adventure version bump
2024-06-03 19:47:47 +05:30
AbhigyaKrishna
596a961b05
Rollback constants
2024-06-03 19:30:52 +05:30
AbhigyaKrishna
9586d8da29
Changed adventure library configuration
2024-06-03 17:33:42 +05:30
AbhigyaKrishna
8391c11a7f
Parent build function to not include patch module jar
2024-06-03 17:32:52 +05:30
AbhigyaKrishna
51de60ab4f
Gradle script update
2024-06-03 16:46:48 +05:30
AbhigyaKrishna
5d14703492
Removed legacy fixes and updated Adventure serializer
2024-06-03 16:46:20 +05:30
AbhigyaKrishna
d3968b15db
Grouping change for adventure bundle
2024-06-03 16:45:48 +05:30
AbhigyaKrishna
990cc38b67
Configuration update to conventions
2024-06-03 16:45:12 +05:30
AbhigyaKrishna
df0d135a72
GsonComponentSerializer patch
2024-06-03 15:57:14 +05:30
AbhigyaKrishna
18ac4937b6
Adventure gson serializer patches
2024-06-03 15:35:43 +05:30
AbhigyaKrishna
531cef241a
Configuration changes
2024-06-03 15:35:18 +05:30
AbhigyaKrishna
e5353800e7
Patch module
2024-06-03 15:34:52 +05:30
AbhigyaKrishna
21dfaceb22
Custom library patching toolchain
2024-06-03 15:29:31 +05:30
Bram
c13454a255
Removed: Unnecessary null initializer
2024-06-02 19:21:50 +02:00
Bram
4f4f5f0578
Fixed: Build workflow by updating the Java version
2024-06-02 14:38:44 +02:00
Bram
02544cd0f5
Greatly improved the TaskWrapper readability
2024-06-02 13:38:27 +02:00
Bram
3ed09a3834
Updated the old FoliaCompatUtil to prevent reflections where possible
2024-06-02 13:08:56 +02:00
Bram
28749faa44
Renamed: serverInitEventClass -> regionizedServerInitEventClass
...
Added: Documentation on why we are still using reflections for the runTaskOnInit method
2024-06-02 12:59:17 +02:00
Bram
2dbbdcc5d4
Reworked: RegionScheduler to use the RegionScheduler class provided by Paper instead of using reflections
2024-06-02 12:56:44 +02:00
Bram
291266c4bd
Reworked: GlobalRegionScheduler to use the GlobalRegionScheduler class provided by Paper instead of using reflections
2024-06-02 12:54:14 +02:00
Bram
411693611a
Reworked: EntityScheduler to use the EntityScheduler class provided by Paper instead of using reflections
...
Fixed: Some AsyncScheduler methods still re-getting the bukkit scheduler
2024-06-02 12:51:17 +02:00
Bram
98c36ff39f
Reworked: AsyncScheduler to use the AsyncScheduler class provided by Paper instead of using reflections
2024-06-02 12:42:04 +02:00
Bram
1e69b33d4f
Reworked: TaskWrapper to use the ScheduledTask instead of using reflections to access the class
2024-06-02 12:38:58 +02:00
Bram
ae2c6cdc4b
Added: Proper run paper/velocity tasks
2024-06-02 12:08:14 +02:00
Bram
3104885fb5
Switched: spigot-api -> paper-api
2024-06-02 11:59:13 +02:00
Joshua Prince
081868571b
Fix map ItemStack decoding for rotation key
...
Fixes https://github.com/retrooper/packetevents/issues/810
2024-06-01 16:50:53 -07:00
retrooper
6a3b18aff9
Merge pull request #807 from Bram1903/patch/bStatsSettingRemoval
...
Removed: bStats Configuration Option
2024-06-01 23:53:03 +02:00
Bram
c4caba57bd
Merge branch 'refs/heads/2.0' into patch/bStatsSettingRemoval
2024-06-01 23:35:22 +02:00
retrooper
c9f3eb32aa
Merge pull request #790 from AbhigyaKrishna/gradle-kotlin-dsl
...
Gradle build chain rework with kotlin DSL
2024-06-01 23:32:55 +02:00
Bram
1dad678f98
Fixed: Saying "removing" instead of "disabling"
2024-05-31 14:11:05 +02:00
Bram
4f579f59c3
Removed: bStats Setting
...
Deprecated: PacketEventsSettings#bStats
Deprecated: PacketEventsSettings#isbStatsEnabled
2024-05-31 11:56:53 +02:00
retrooper
3352f25ede
Merge pull request #805 from booky10/fix/legacy-attributes
...
Add legacy names for armor and luck attribute
2024-05-30 19:51:06 +02:00
booky10
0378141ac4
Add legacy names for armor and luck attribute
...
Wasn't present previously because mojang doesn't include them in their attribute rename patch
2024-05-30 17:35:24 +02:00
booky10
9dbb877455
Fix sound effect packet wrapper for <1.9
2024-05-29 20:37:43 +02:00
booky10
ee382176c5
Add missing ResourceLocation#hashCode
2024-05-29 20:27:29 +02:00
booky10
b3d9c1f10f
Refactor tags packet wrapper
...
Also fix support for versions <1.17
2024-05-29 20:25:00 +02:00
booky10
a51ce059e5
Fix serialization of command argument nodes for <1.19
2024-05-29 19:03:53 +02:00
booky10
126bf406ce
Add legacy command argument type parsers
2024-05-29 19:02:54 +02:00
booky10
b476d51910
Fix missing seed in entity sound packet wrapper
2024-05-29 17:56:52 +02:00
booky10
02e9f7f901
Fix nbt_compound_tag command argument parser
2024-05-28 22:02:34 +02:00
booky10
0cf411c4de
Fix recipe packet writing/reading
2024-05-28 21:17:21 +02:00
booky10
37e2317a5f
Fix various packet wrapper constructors
2024-05-28 17:12:22 +02:00
retrooper
415550b354
Merge pull request #789 from MemencioPerez/2.0
...
Clear the buffer if the packet send event is canceled in Velocity and BungeeCord
2024-05-26 19:14:36 +02:00
retrooper
3b5099f940
NPC#changeSkin properly re-spawns the player on all versions
2024-05-26 14:58:12 +02:00
retrooper
34605f3d72
Fix NPC#despawnAll not emptying channels after usage.
2024-05-26 13:17:39 +02:00
retrooper
8e5eab8bd1
Addition to ByteBufAllocationOperator, new methods declared for further control
2024-05-25 18:19:15 +02:00
retrooper
8cde415712
Merge pull request #795 from booky10/fix/item-stack-enchantments
...
Fix more issues with ItemStack enchantment components
2024-05-21 20:19:20 +02:00
booky10
c5189d2788
Fix more issues with ItemStack enchantment components
...
Caused by every item having a default enchantments component set with an empty value
2024-05-21 20:18:01 +02:00
issueDescription
e550924b38
Add mojang mapped jar support
2024-05-21 16:48:51 +01:00
AbhigyaKrishna
27d7495f65
Spigot version bump
2024-05-21 01:22:01 +05:30
AbhigyaKrishna
7477483f15
Merge branch 'refs/heads/2.0' into gradle-kotlin-dsl
...
# Conflicts:
# spigot/build.gradle
2024-05-21 01:03:25 +05:30
Abhigya
7e064f453a
Merge pull request #783 from booky10/fix/spigot-particle-conversions
...
Fix spigot particle conversion
2024-05-21 00:56:33 +05:30
AbhigyaKrishna
f7e58de863
Revert "Update gradle publish github workflow"
...
This reverts commit 7a135fe0f5 .
2024-05-21 00:15:25 +05:30
AbhigyaKrishna
7a135fe0f5
Update gradle publish github workflow
...
Removed unwanted github workflow tasks
2024-05-21 00:05:24 +05:30
AbhigyaKrishna
8336f1c0ab
Misc changes
2024-05-21 00:01:23 +05:30
AbhigyaKrishna
2648f8538d
Mapping compression task in kotlin
...
Rewritten mapping compression task in kotlin
2024-05-20 22:36:26 +05:30
AbhigyaKrishna
6893216ed2
Root project build cycle and javadoc
...
* Added global jar out task to root project build
* Configured javadoc task to not log warnings
2024-05-19 14:41:22 +05:30
AbhigyaKrishna
b6f944ad57
Minor changes and patches to build cycle
2024-05-19 14:25:01 +05:30
Memencio
969f032607
Clear the buffer if the packet send event is canceled in BungeeCord
2024-05-18 19:26:12 -04:00
AbhigyaKrishna
daed712bf7
Version catalog for buildSrc
...
Included version catalog for buildSrc
2024-05-19 04:21:38 +05:30
AbhigyaKrishna
835952a7d2
Gradle convention plugin
...
Using gradle convention plugin strategy for managing common gradle scripts
2024-05-19 04:08:45 +05:30
AbhigyaKrishna
d272f8d19e
Gradle kotlin dsl migration
...
Migrated gradle dsl from groovy to kotlin for easier maintainability
2024-05-19 03:35:45 +05:30
Memencio
8cb8ad7388
Clear the buffer if the packet send event is canceled in Velocity
2024-05-18 16:47:59 -04:00
AbhigyaKrishna
6793fcb928
Versions Catalog
...
Implementation of version catalog for managing dependencies
2024-05-19 00:18:14 +05:30
retrooper
86ea24d3ee
Merge pull request #787 from booky10/fix/paper-1.8-cache-chunk-maps-unload-packet
...
Account for zero chunk data on unload chunk packet
2024-05-18 18:36:30 +02:00
booky10
69f9c4f500
Account for zero chunk data on unload chunk packet
...
Sent by Paper 1.8 if cache-chunk-maps is enabled in the paper config
2024-05-18 16:58:59 +02:00
retrooper
3d869f7dfc
Merge pull request #786 from booky10/feat/spawn-entity-head-yaw
...
Add head-yaw methods to spawn entity packet wrapper
2024-05-18 15:35:39 +02:00
booky10
92d716d78e
Add head-yaw methods to spawn entity packet wrapper
2024-05-18 15:22:21 +02:00
booky10
8a7f086fdf
Fix spigot particle conversion
...
Fixes #775
2024-05-17 15:23:10 +02:00
booky10
58f6a77287
Implement direct chattype reading
2024-05-15 17:31:46 +02:00
booky10
04110da6f1
Implement direct painting variant reading
2024-05-15 16:54:09 +02:00
booky10
81e5a50b8a
Add yaw and pitch to use item packet wrapper
2024-05-15 16:41:05 +02:00
retrooper
dfb6787322
Merge pull request #774 from booky10/fix/various-invalid-registry-id-getters
...
Fix invalid registry ids in various registries
2024-05-12 19:25:55 +02:00
booky10
6b03502307
Fix invalid registry id getting in various registries
2024-05-12 19:22:40 +02:00
retrooper
499d2eea6c
Fix CRAFT_PARTICLE_PARTICLES_FIELD being null exception
2024-05-12 17:02:50 +02:00
retrooper
fdf1942553
Merge pull request #761 from MemencioPerez/2.0
...
Fix Encryption Response packet wrapper write method for server versions between 1.19 and 1.19.2
2024-05-11 18:33:03 +02:00
retrooper
9e9b9abb14
Merge pull request #769 from booky10/fix/decorated-pots
...
Fix pot decorations causing NPEs
2024-05-11 17:08:44 +02:00
booky10
92397b2e4a
Fix pot decorations causing NPEs
...
Now wraps null values in optionals
2024-05-11 17:01:30 +02:00
retrooper
154b789b48
Merge pull request #767 from ItzZisker/2.0
...
fixed entity id assign bug
2024-05-11 12:01:31 +02:00
ItzZisker
0cee676a69
fixed entity id assign bug
2024-05-11 05:36:35 +03:30
retrooper
387f4661e8
Add ICHUNKPROVIDER class to spigot reflection util
2024-05-10 23:42:37 +02:00
retrooper
c261e1d467
Addition of some methods and classes and constructors in SpigotReflectionUtil
2024-05-10 22:32:21 +02:00
booky10
b43a76e682
Initial logic for reading CustomData from non-compounds, WIP
2024-05-10 18:15:49 +02:00
booky10
6efb6f59b1
Update FoodProperties for 1.21
2024-05-10 18:10:26 +02:00
booky10
9f27a49358
Fix flag parsing for <1.13
2024-05-10 18:00:09 +02:00
booky10
5001b21e7a
Fix version compatibility for map data packet wrapper
2024-05-10 18:00:07 +02:00
retrooper
24446c61e0
Merge pull request #765 from booky10/fix/particle-mappings-typo
...
Fix typo in particle mappings for 1.12.2
2024-05-10 17:35:52 +02:00
booky10
d03ed48409
Fix typo in particle mappings for 1.12.2
2024-05-10 17:28:01 +02:00
booky10
840153bc98
Update WrapperPlayServerProjectilePower for 1.21
2024-05-10 16:01:54 +02:00
booky10
f3ee112a4e
Merge branch '2.0' into dev/1.21
2024-05-10 15:52:41 +02:00
retrooper
1634eed6e7
Merge pull request #763 from AbhigyaKrishna/2.0
...
StateValue Map caching
2024-05-10 00:05:35 +02:00
retrooper
6e7dbf13e3
Typo fix
2024-05-10 00:04:09 +02:00
AbhigyaKrishna
d60c661d3d
StateValue Map caching
...
Caching and reusing StateValue data map for saving memory
2024-05-10 02:55:30 +05:30
Memencio
cd0f1bb241
Fix Encryption Response packet wrapper write method for server versions between 1.19 and 1.19.2
2024-05-09 16:36:04 -04:00
retrooper
dd46140147
Implement immutable views on the values within registries
2024-05-09 19:26:58 +02:00
retrooper
337d35f1d8
ReflectionObject#readObjectArray implemented
2024-05-09 18:38:32 +02:00
retrooper
6ad2d61dd3
WrapperPlayServerSoundEffect fixed for 1.8-1.9.4
2024-05-09 18:36:36 +02:00
retrooper
1d6e737611
Bump version up to 2.3.0-SNAPSHOT
2024-05-09 00:41:13 +02:00
retrooper
a3739319af
Release of PacketEvents 2.3.0
2024-05-08 23:35:28 +02:00
retrooper
5513c0f14b
Merge pull request #759 from booky10/fix/joingame-1.16.1
...
Fix reading/writing of JoinGame packet on 1.16/1.16.1
2024-05-08 23:26:01 +02:00
retrooper
6869ac594f
WrapperPlayServerSoundEffect fix attempt for 1.8
2024-05-08 23:24:50 +02:00
retrooper
1bad630ec1
Some fixes for block data conversions
2024-05-08 23:16:21 +02:00
AoElite
ba21fa9a8b
Merge pull request #756 from booky10/fix/spigot-dimension-conversion
...
Fix bukkit dimension conversion utility for 1.16 to 1.20.5
2024-05-07 19:35:25 -04:00
AoElite
7d01583cea
Merge pull request #755 from booky10/fix/merchant-offers
...
Fix merchant offers packet wrapper for 1.19 to 1.20.5
2024-05-07 19:35:15 -04:00
_ShadowOfHeaven_
01e161d37e
Added the missing WrapperPlayServerMapData
2024-05-07 23:47:00 +02:00
booky10
90968ca195
Fix reading of JoinGame packet on 1.16/1.16.1
2024-05-07 21:10:51 +02:00
Abhigya
3e1cffee7e
Merge pull request #758 from AbhigyaKrishna/2.0
...
fix: blockstate deserialization fix
2024-05-07 18:01:04 +05:30
AbhigyaKrishna
d6564e6263
fix: blockstate deserialization fix
2024-05-07 17:59:26 +05:30
booky10
24b7b97c09
Fully fix bukkit dimension conversion for 1.16 to 1.20.5
2024-05-06 23:30:54 +02:00
booky10
bf0448ab15
Fix merchant offer reading/writing for 1.19 to 1.20.5
2024-05-06 18:36:46 +02:00
AoElite
6c3b66ef84
Merge pull request #754 from booky10/fix/itemstack-damageable-components
...
Check for components in ItemStack#isDamageableItem
2024-05-05 22:07:58 -04:00
AoElite
507281fd18
Merge pull request #753 from BlueTree242/2.0
...
Fix incorrect writing of Server Data packet 1.20.5+
2024-05-05 22:06:18 -04:00
booky10
c46c536ea9
Check for components in ItemStack#isDamageableItem
2024-05-05 23:27:27 +02:00
BlueTree242
fb15ac5742
Fix incorrect writing of Server Data packet 1.20.5+
2024-05-05 22:28:03 +03:00
retrooper
427a305b61
Merge pull request #752 from booky10/fix/itemstack-enchanted
...
Fix ItemStack#isEnchanted check always returning true
2024-05-05 20:29:38 +02:00
retrooper
ded4f5103f
Prevent update checker from retrying.
2024-05-05 19:30:24 +02:00
booky10
004c1aadab
Fix ItemStack#isEnchanted check always returning true
2024-05-05 18:53:02 +02:00
retrooper
2f0ffb163c
Merge pull request #751 from booky10/feat/potion-definition-javadocs
...
Add definition javadocs to potions and potion types
2024-05-05 18:52:39 +02:00
booky10
be03ffe93f
Add definition javadocs to potions and potion types
2024-05-05 18:49:40 +02:00
retrooper
b943f195f3
Merge pull request #750 from booky10/fix/potion-types-pre1.20.5
...
Adjust potion type mappings so 1.20.1 and below works without manual adjustments
2024-05-05 18:45:22 +02:00
retrooper
31e7fba37d
Merge pull request #744 from booky10/fix/nbt-component-types
...
Implement nbt-serialized component types
2024-05-05 18:39:48 +02:00
retrooper
14c75f19fb
Merge pull request #749 from booky10/fix/1.20.5-particles
...
Update particle data to 1.20.5
2024-05-05 18:37:18 +02:00
booky10
3fef6fa51c
Adjust potion type mappings so 1.20.1 and below works without manual adjustments
2024-05-05 18:20:32 +02:00
booky10
b6c62bb055
Clean up particle reading/writing
2024-05-05 17:31:51 +02:00
retrooper
c3edd14b90
Fix ViaVersion errors when accessing protocol version.
2024-05-05 17:19:38 +02:00
booky10
7014999f65
Update particle data to 1.20.5
...
Also includes refactor to implement generics in particle type encoding/decoding
2024-05-05 16:41:46 +02:00
booky10
d3b32b4e22
Merge branch 'retrooper:2.0' into fix/nbt-component-types
2024-05-05 14:05:03 +02:00
retrooper
b94a86e5fa
PotionTypes mappings corrected on versions older than 1.20.2, and Bukkit potion type conversions fixed.
2024-05-05 08:12:31 +02:00
retrooper
9038fd149a
Fix gradle-publish.yml indentation
2024-05-05 06:33:09 +02:00
retrooper
65cf7c0b92
Call user connect event on fabric
2024-05-05 06:18:50 +02:00
AoElite
c1d2c6c049
Merge pull request #747 from booky10/workaround/known-world-heights
...
Work around 1.20.5 not sending known dimension types
2024-05-04 23:28:41 -04:00
booky10
b2a9b6a98c
Work around 1.20.5 not sending known dimension types
...
The server no longer sends known registries to the vanilla client
This causes packetevents to no longer receive dimension type information, so fallback to vanilla defaults as a workaround
2024-05-05 05:10:07 +02:00
AoElite
1cf80df77a
Merge pull request #746 from booky10/fix/state-type-mappings
...
Fix state type mappings
2024-05-04 22:42:28 -04:00
booky10
2606094a40
Also regenerate modern block mappings for 1.13
2024-05-05 04:41:28 +02:00
booky10
ddf014b852
Regenerate modern block mappings
...
All "false" boolean values were "true"
2024-05-05 04:35:44 +02:00
booky10
be2f392c91
Add state type id integrity tests
2024-05-05 04:35:43 +02:00
AoElite
91c370327b
Merge pull request #745 from booky10/feat/itemstack-components-api
...
Implement components in more ItemStack methods
2024-05-04 22:13:57 -04:00
booky10
6dfdfc8363
Fallback to legacy max durability in ItemStack#getMaxDamage
2024-05-05 04:11:04 +02:00
booky10
e09c596020
Implement components in ItemStack#getMaxStackSize
2024-05-05 04:10:49 +02:00
AoElite
5bf7dba140
Merge pull request #743 from booky10/feat/itemstack-components-api
...
Add support for components in existing ItemStack nbt utilities
2024-05-04 22:01:03 -04:00
booky10
7d74474fde
Limit damage to 0 in ItemStack#setDamageValue
2024-05-05 03:08:32 +02:00
booky10
14195de83e
Fix relative compression path
2024-05-05 02:56:58 +02:00
booky10
8e16c5564d
Implement nbt-serialized component types
...
Previously left unimplemented because I thought they weren't needed
Related to #741
2024-05-05 02:15:47 +02:00
booky10
803a50542c
Add support for components in existing ItemStack nbt utilities
...
Includes damage, max damage and nbt
Also fixes ItemStack match/equals methods
2024-05-05 01:11:17 +02:00
AoElite
150acb64c3
Merge pull request #742 from booky10/fix/particles-packet
...
Fix particle packet for 1.20.5+
2024-05-04 18:55:09 -04:00
booky10
009f0a7c13
Fix particle packet for 1.20.5+
...
Fixes #740
2024-05-05 00:14:28 +02:00
retrooper
db99d1f187
Update gradle publish
2024-05-04 00:56:25 +02:00
retrooper
6514b84adf
Fix to netty injection on fabric
2024-05-04 00:54:04 +02:00
retrooper
e40dfe35b8
Merge pull request #737 from booky10/fix/fabric-adventure-include
...
Include adventure dependency in fabric recursively
2024-05-04 00:31:30 +02:00
booky10
fee0ff6e26
Include adventure dependency in fabric recursively
2024-05-04 00:30:22 +02:00
retrooper
9ed447164a
SpigotConversionUtil for MainHand
2024-05-04 00:27:08 +02:00
retrooper
6102208f45
SpigotConversionUtil#toBukkitPose and fromBukkitPose added
2024-05-04 00:14:06 +02:00
retrooper
ec31fb0cbb
Merge branch '2.0' of https://github.com/retrooper/packetevents into 2.0
2024-05-03 23:59:45 +02:00
retrooper
c4660b4821
Remove random test code in fabric
2024-05-03 23:59:38 +02:00
retrooper
978be6bbcc
Merge pull request #736 from booky10/fix/armadillo-state-metadata
...
Fix armadillo state metadata enum
2024-05-03 23:58:24 +02:00
booky10
ee8b1e9458
Fix armadillo state metadata enum
...
Fixes #735
2024-05-03 23:54:51 +02:00
retrooper
4fdd047026
Add Fabric to PacketEvents repo
2024-05-03 23:53:53 +02:00
retrooper
5c22920393
Fixing build task order
2024-05-03 19:44:59 +02:00
retrooper
8a18947fd2
Merge pull request #733 from booky10/fix/block-state-properties
...
Fix block state properties being left unparsed
2024-05-03 19:29:33 +02:00
booky10
bbb3e47a50
Add new attributes for 1.21
2024-05-03 19:27:46 +02:00
AoElite
e903aa52e3
Merge pull request #734 from Bram1903/FoliaCompatUtilPatch
...
Fixed: Paper Schedulers 0 delay handling
2024-05-03 13:27:36 -04:00
Bram
9ff8cf30b4
Fixed: Some paper schedulers that do not allow a delay of 0 in either the initial or regular delay
2024-05-03 18:53:49 +02:00
retrooper
8092bbdb3b
Revert "Fix shadowJar build issues"
...
This reverts commit bff9ef2f6b .
2024-05-03 18:51:42 +02:00
retrooper
bff9ef2f6b
Fix shadowJar build issues
2024-05-03 18:42:29 +02:00
AoElite
cc1bd65841
fix runAtFixedRate tick conversion in AsyncScheduler
2024-05-03 11:54:06 -04:00
booky10
8a84b1fc15
Fix block state properties being left unparsed
...
Fixes #728
2024-05-03 17:50:45 +02:00
booky10
09ab2ff82b
Revert legacy itemtypes being changed
2024-05-03 16:24:55 +02:00
booky10
a59a8e116c
Update all itemtypes for 1.21
2024-05-03 16:17:47 +02:00
booky10
9adfa831bf
Update block and item tags for 1.21
2024-05-03 16:13:56 +02:00
booky10
3a4daec265
Add item type mappings for 1.21
2024-05-03 16:13:47 +02:00
booky10
de87ca203e
Implement painting variant registry
2024-05-03 16:07:04 +02:00
booky10
9957cb3de9
Add 1.21 banner patterns
2024-05-03 15:57:17 +02:00
booky10
2ac60d7055
Add 1.21 version constants
2024-05-03 15:55:07 +02:00
Abhigya
3015f40531
Merge pull request #731 from AbhigyaKrishna/2.0
...
Mapping generation fix and task upToDate check
2024-05-03 12:53:24 +05:30
AbhigyaKrishna
f4e5dab1d8
feat: mapping task upToDate check
2024-05-03 12:51:20 +05:30
AbhigyaKrishna
2792dd4c78
fix: mappings generation issue
2024-05-03 12:50:54 +05:30
AbhigyaKrishna
b4d45f0fba
Merge remote-tracking branch 'origin/2.0' into 2.0
2024-05-03 03:50:25 +05:30
AoElite
3443a482b3
async runAtFixedRate fix
2024-05-02 18:12:57 -04:00
AbhigyaKrishna
d89af56959
feat: mapping task upToDate check
2024-05-03 03:19:54 +05:30
AoElite
80d7c4a5a9
add runAtFixedRate specifically for ticks in AsyncScheduler
2024-05-02 17:36:36 -04:00
retrooper
810b205cfa
Merge pull request #709 from Bram1903/FoliaCompatUtilPatch
...
Folia Compatibility Utility Rewrite
2024-05-02 23:00:48 +02:00
Bram
0c452ab842
Merge branch 'refs/heads/2.0' into FoliaCompatUtilPatch
2024-05-02 18:16:45 +02:00
Abhigya
be414fceb6
Merge pull request #727 from AbhigyaKrishna/2.0
...
Added missing StateValue for 1.20.5
2024-05-02 21:10:27 +05:30
AbhigyaKrishna
95099e9763
feat: added missing StateValue
2024-05-02 21:09:27 +05:30
Bram
f806773cbe
Merge branch 'refs/heads/2.0' into FoliaCompatUtilPatch
2024-05-02 17:30:04 +02:00
retrooper
9af8bab57f
Merge pull request #724 from LeeGodSRC/fix/cb-relocation
...
fix: Fixed CB Relocation on Paper 1.20.5+
2024-05-02 17:05:27 +02:00
Bram
20c5d9f28a
Merge branch 'refs/heads/2.0' into FoliaCompatUtilPatch
2024-05-02 16:42:54 +02:00
Abhigya
cbe474dafa
Merge pull request #648 from AbhigyaKrishna/mapping-compression
...
Mapping compression
2024-05-02 19:21:18 +05:30
AbhigyaKrishna
af90c6534b
feat: updated license
2024-05-02 19:01:46 +05:30
AbhigyaKrishna
4130fcf172
fix: diff patching
2024-05-02 18:58:29 +05:30
AbhigyaKrishna
e321a169c2
test: created mapping test
2024-05-02 18:58:01 +05:30
AbhigyaKrishna
54d4614600
feat: diff interface
2024-05-02 16:52:07 +05:30
AbhigyaKrishna
8fc10e8f62
feat: implement new diff system
2024-05-02 16:45:35 +05:30
AbhigyaKrishna
e770a1c9ee
feat: robust diff system
2024-05-02 16:45:13 +05:30
AbhigyaKrishna
c999f3a810
feat: compression task update
2024-05-02 12:54:05 +05:30
leegod
8e070aac9a
fix: Fixed CB Relocation on Paper 1.20.5+
2024-05-02 13:50:30 +08:00
AbhigyaKrishna
faecd9dd9c
Updated all mapping to 1.20.5
2024-05-02 04:00:15 +05:30
AbhigyaKrishna
e40d8c875f
Updated code for new type builder system
2024-05-02 02:39:12 +05:30
Bram
10765058f8
Fixed: Another Return statement missing after scheduling a task on Bukkit rather than Folia
2024-05-01 22:42:44 +02:00
Bram
c71d6da310
Fixed: GlobalRegionScheduler#Execute being marked as private
...
Fixed: Return statement missing after scheduling a task on Bukkit rather than Folia
2024-05-01 22:39:54 +02:00
AbhigyaKrishna
4ec106e36f
Merge 2.0 into mapping-compression
2024-05-02 01:44:09 +05:30
Abhigya
66a7ef3ffa
Merge pull request #658 from booky10/dev/1.20.5
...
1.20.5 update
2024-05-02 01:23:56 +05:30
booky10
3d858013e6
Merge branch '2.0' into dev/1.20.5
2024-05-01 17:47:06 +02:00
booky10
3c15e5409f
Move general components to another package
...
Components could potentially be used for something other than items in the future
2024-04-29 18:27:44 +02:00
retrooper
206d484f27
Rename the new FoliaCompatUtil to FoliaScheduler
2024-04-28 23:36:56 +02:00
retrooper
e2949ade16
Update copyright years
2024-04-28 23:35:00 +02:00
retrooper
896ed7ff07
Optimizations in event system.
2024-04-28 18:10:22 +02:00
retrooper
4ca682704a
Fix finding minecraft server instance on 1.20.5 (atleast on paper)
2024-04-28 18:06:22 +02:00
booky10
2275091e76
Add 1.20.6 versions
2024-04-26 16:53:28 +02:00
booky10
dd71d9ae69
Fix SCUTE/GRASS item types being invalid
2024-04-25 18:21:30 +02:00
booky10
b2d3aee10e
Add constants for commonly used tool attribute uuids
2024-04-25 18:18:53 +02:00
booky10
1891307753
Fix GENERIC_GRAVITY attribute key
2024-04-24 20:48:21 +02:00
booky10
399d831d04
Fix reading entity effect for 1.20.5
2024-04-24 19:08:43 +02:00
booky10
29ad41f42f
Fix reading mapped entities being two ids offset
2024-04-24 18:55:26 +02:00
booky10
bab19e14bd
Merge branch '2.0' into dev/1.20.5
2024-04-24 18:48:09 +02:00
booky10
286ea801d8
Fix explosion sound in WrapperPlayServerExplosion
2024-04-24 18:43:06 +02:00
booky10
6320cc314e
Prevent NPE on missing world data
...
Caused by server not sending data the client already knows about
2024-04-24 18:33:42 +02:00
booky10
cb094f1af3
Fix WrapperConfigServerSelectKnownPacks constructor
2024-04-24 18:22:25 +02:00
booky10
d00d138a21
Fix User#getWorldNBT(Dimension)
2024-04-24 18:22:05 +02:00
booky10
8b86b3e48b
Read world nbt from restructured registry data packet
2024-04-24 18:05:46 +02:00
booky10
3232c69a5a
Implement dummy component type for components without content
2024-04-24 17:53:15 +02:00
retrooper
4ee24812f4
Merge remote-tracking branch 'origin/2.0' into 2.0
2024-04-24 17:38:07 +02:00
retrooper
a2139718a5
Properly cleanup user on proxy
2024-04-24 17:37:42 +02:00
booky10
57e536b8b2
Fix itemstack conversion between bukkit and nms
2024-04-24 17:33:38 +02:00
booky10
ab0e4030c3
Add sound mappings for <1.20.5
2024-04-23 21:32:07 +02:00
booky10
89fe7f43a7
Fix component value writing
2024-04-23 19:15:04 +02:00
booky10
fffb4e08b8
Add tostring handling for components
2024-04-23 19:14:56 +02:00
booky10
1b071e6564
Adjust for new handler names on channel init
2024-04-23 18:58:33 +02:00
booky10
efb1b1e1eb
Fix statetype registration
2024-04-19 22:11:31 +02:00
booky10
60421a6727
Fix serverbound configuration phase packets
2024-04-19 22:11:13 +02:00
booky10
7f7107a79a
Fix NPE in StateTypes#getByName
2024-04-19 21:12:03 +02:00
booky10
94827892cc
Fix attributes for <1.20.5
2024-04-19 16:03:08 +02:00
booky10
78d0d674b5
Implement 1.20.5-rc1 changes for WrapperLoginServerLoginSuccess
2024-04-18 23:25:41 +02:00
booky10
ed681fadd1
Fix sound packet wrappers for >= 1.19.3 when using unregistered sounds
2024-04-18 22:49:27 +02:00
booky10
35de72c331
Implement TrimMaterial and TrimPattern registries
...
Technically wrong as datapacks can add more stuff, but this works until packetevents actually tracks registry data sent on login
2024-04-18 22:35:19 +02:00
booky10
018d611b2b
Small cleanup to component types definition logic
2024-04-18 14:12:49 +02:00
booky10
852d34cdcf
Fix equality checks for all component values
2024-04-17 22:33:22 +02:00
booky10
d4fead85b8
Add all generated default components to items
2024-04-17 22:16:12 +02:00
Bram
a8bbc97d00
Fixed: Wrong message applied upon detecting an invalid packet
2024-04-17 21:55:34 +02:00
Bram
94d77e94da
Merge branch 'refs/heads/2.0' into FoliaCompatUtilPatch
2024-04-17 21:52:37 +02:00
booky10
b1e2a746e3
Implement directly encoded instruments
...
Also implements sound event registry which is required for this (currently only for 1.20.5)
2024-04-17 19:00:45 +02:00
booky10
1b8e23dcf5
Fix showintooltip empty state for ItemEnchantments component value
2024-04-16 23:35:25 +02:00
booky10
ecd87f2fc6
Finish support for setting components on item type definition
2024-04-16 22:33:35 +02:00
booky10
22453a2fac
Implement static component map builder and add shared item type components
2024-04-16 22:22:16 +02:00
booky10
80c1413811
Wrap lore component
2024-04-16 22:21:59 +02:00
booky10
0fcd8d57c0
Implement registry for state types
2024-04-16 22:06:35 +02:00
booky10
750d8813f3
Finish making all components mutable
2024-04-16 21:01:51 +02:00
booky10
ca546a9e59
Start making all components mutable
2024-04-16 19:15:41 +02:00
booky10
29fd80865c
Fix compile issues
2024-04-16 18:59:26 +02:00
booky10
ab253a0976
Add potion registry
2024-04-16 18:56:57 +02:00
booky10
5545de8886
Fix equality checks for newly added registries
2024-04-16 18:56:44 +02:00
booky10
637aecbf4b
Add armor material registry
2024-04-16 18:39:04 +02:00
booky10
aaf6d41766
Add instrument registry
2024-04-16 18:38:52 +02:00
booky10
f814d0ecf8
Finish implement component type serializers
2024-04-16 18:28:17 +02:00
booky10
f20e8432b1
Finish banner patterns registry
2024-04-16 18:07:56 +02:00
booky10
0e558e4baf
Implement even more component types
2024-04-16 17:44:15 +02:00
booky10
5eb7d5b3fc
Implement more component types
2024-04-16 13:28:28 +02:00
leegod
87c2ca3c07
feat: Added getter and setter for LightData in WrapperPlayServerChunkData
...
chore: Added packet transformation for pre 1.18 (where light data and chunk data are sent separately)
2024-04-16 16:39:26 +08:00
leegod
1f1b1aabd1
feat: Added WrapperPlayServerUpdateLight
...
chore: Moved away LightData values from WrapperPlayServerChunkData
2024-04-16 16:27:53 +08:00
booky10
4a5382b14c
Start implementing serializers for some component types
...
Mojang literally serializes half their entire codebase with these component types, this will take a while
2024-04-15 23:23:59 +02:00
booky10
c2b006ddab
Add default component definition support to ItemTypes
2024-04-15 22:42:08 +02:00
booky10
e4b60d55f3
Re-generate all ItemTypes
2024-04-15 22:15:41 +02:00
booky10
4521ce8037
Make all ItemTypes final
...
187/1344 weren't before, idk why
2024-04-15 21:49:36 +02:00
booky10
73490b8ff6
Implement serialization for new itemstack component patches
2024-04-15 21:36:05 +02:00
AoElite
0549c8e486
Merge pull request #713 from booky10/fix/tab-complete-packet
...
Fix WrapperPlayClientTabComplete discarding certain fields
2024-04-15 14:51:55 -04:00
booky10
af7c0d346f
Unload file mappings after PotionTypes creation
2024-04-15 20:26:25 +02:00
booky10
9a5da1bc9a
Implement mappings for potion types
2024-04-15 20:18:51 +02:00
booky10
96a601da74
Fix WrapperPlayClientTabComplete discarding certain fields
...
Transaction id and assume command flag are lost as these fields get set after the constructor reads from the event
2024-04-15 19:57:44 +02:00
booky10
f29626311c
Fix time argument parser for <1.19.4
2024-04-14 23:08:28 +02:00
booky10
ea0b9a497e
Implement mappings for command argument parsers
...
Should also resolve #700 , but needs testing
2024-04-14 22:51:31 +02:00
booky10
b11e76494e
Implement mappings for block entity types
2024-04-14 22:22:15 +02:00
booky10
cb3a62cf71
Add block entity type mappings data
2024-04-14 22:13:49 +02:00
booky10
992d4855e7
Read unsigned short in creative inventory action packet
2024-04-14 21:55:28 +02:00
booky10
a684b56dc3
Use varints for amplifiers in entity effect wrapper
2024-04-14 21:50:09 +02:00
booky10
e6c86a7e4f
Update dimension encoding/decoding
2024-04-14 21:49:58 +02:00
booky10
73e34d8f0b
Update WrapperConfigServerRegistryData to 1.20.5-pre1
2024-04-14 21:37:21 +02:00
booky10
d006974e7b
Add packet wrappers for all new packets
2024-04-14 21:22:27 +02:00
booky10
0742f24973
Add new potion types
2024-04-14 20:52:16 +02:00
booky10
76bde2568b
Add new command argument parsers
2024-04-14 20:52:12 +02:00
booky10
40bd7d60d4
Update packet type ids
2024-04-14 20:51:20 +02:00
booky10
6d7718428a
Fix BlockTags/ItemTags
2024-04-14 20:26:40 +02:00
booky10
92229a90e9
Fix WrapperCommonCookieResponse
2024-04-14 20:11:53 +02:00
booky10
7dd6fbd9af
Update entity types to 1.20.5-pre1
2024-04-14 20:09:43 +02:00
booky10
2fa285ddde
Update particle types to 1.20.5-pre1
2024-04-14 20:05:37 +02:00
booky10
8962c80495
Update some mappings and registries to 1.20.5-pre1
2024-04-14 19:17:46 +02:00
booky10
2dccce47bf
Merge branch '2.0' into dev/1.20.5
2024-04-14 03:34:39 +02:00
Bram
6231e8c7d4
Fixed: AsyncScheduler now converts back the delay to ticks using the convertTimeToTicks method when using the Bukkit scheduler
2024-04-09 19:38:57 +02:00
Bram
5ba3080d00
Improved: InternalBukkitListener no longer unnecessarily uses the entity scheduler, but the region scheduler instead
...
Added: Chunk coordinates to region scheduler world methods
2024-04-09 19:17:54 +02:00
Bram
a110c549be
Fixed: EntityScheduler being wrongly invoked
2024-04-09 18:57:24 +02:00
Bram
021460ba08
Removed: Unnecessary comments
2024-04-09 09:17:54 +02:00
Bram
74d14166d5
Added: Proper deprecation annotations and documentation
...
Added: Copyright Notice
2024-04-08 21:42:17 +02:00
Bram
f24add4246
Fixed: RegionScheduler being a protected class, instead of public (I only meant to make the constructor protected)
2024-04-08 19:09:03 +02:00
Bram
acf631a54f
Improved: Java docs
2024-04-06 19:30:48 +02:00
Bram
a6b4087454
Fixed: Reflection method name mismatch in the AsyncScheduler and the GlobalRegionScheduler
2024-04-06 18:44:30 +02:00
Bram
f392495474
Schedulers are now only able to be initialized from within the FoliaCompatUtil
2024-04-06 18:31:49 +02:00
Bram
b8fdd74f96
Added: Paper Schedulers
2024-04-06 16:40:03 +02:00
Bram
9dba5d40ca
Added: TaskWrapper
...
Improved: FoliaCompatUtil reflection caching
2024-04-05 21:30:08 +02:00
retrooper
78c7709add
Recognition of SpigotConversionUtil#getEntityById
2024-03-31 01:21:58 +01:00
retrooper
7a0908faaf
Fix SpigotConversionUtil#getEntityById for paper
2024-03-31 01:14:49 +01:00
retrooper
0624b1766f
On legacy minecraft versions (older than 1.16), the colors are already "down-sampled" so the setting is redundant. On 1.16+, the downsampled setting is set to false by default, and will allows costumization of hex colors.
2024-03-30 23:49:12 +01:00
retrooper
651de583b6
Fix SpigotReflectionUtil#getEntityById for 1.17+
2024-03-30 23:38:07 +01:00
retrooper
c29847af02
Final change in exception handling of readUTF
2024-03-29 21:47:18 +01:00
retrooper
87c8147514
Merge remote-tracking branch 'origin/2.0' into 2.0
2024-03-29 19:48:33 +01:00
retrooper
57778b5eb3
Minor change in exception handling of readUTF
2024-03-29 19:48:11 +01:00
retrooper
f2d136af0a
Removed unused variable in Location
2024-03-26 18:46:45 +01:00
retrooper
22d568f30e
Added direction functionality to location
2024-03-26 18:31:28 +01:00
retrooper
49a81fa4f7
Merge pull request #705 from Leymooo/2.0
...
Fix UUID serialization on < 1.20.3 servers with Adventure 4.15+
2024-03-24 16:45:27 +01:00
Leymooo
57f9a8fe3a
Fix UUID serialization on < 1.20.3 servers with Adventure 4.15+
2024-03-23 23:33:19 +02:00
retrooper
94c731afbf
Merge pull request #704 from z7087/patch-3
...
Fix BlockFace.getBlockFaceByValue may return OTHER
2024-03-23 01:06:49 +01:00
z7087
98304cb41e
Update BlockFace.java
2024-03-17 02:42:53 +08:00
AoElite
70d68d7860
Merge pull request #698 from Wekylend/fix/item-types-map
...
Fix ItemTypes ITEM_TYPE_MAP key loading
2024-03-16 01:55:30 -04:00
AoElite
5502c4a434
Merge pull request #692 from ytnoos/viaver-dev
...
Support for ViaVersion dev builds, Fixes #689
2024-03-16 01:45:59 -04:00
Wekylend
f424b9bd66
Fix ITEM_TYPE_MAP key loading
...
This subsequently should fix the getByName method always returning null.
2024-03-09 01:24:29 +01:00
Abhigya
c8d0733935
Merge pull request #697 from booky10/fix/missing-block-properties-api
...
Add missing blockstate property methods for dusted and flower_amount
2024-03-08 10:55:31 +05:30
Abhigya
c2ba3304f7
Merge pull request #694 from hypemc-pl/2.0
...
Correct NBT component style serialization
2024-03-08 10:51:23 +05:30
booky10
510bf9301c
Add missing blockstate property getters for dusted and flower_amount
2024-03-07 15:01:54 +01:00
Abhigya
8a64746b18
Merge pull request #695 from AbhigyaKrishna/2.0
...
Removed invalid function from NBTCodec
2024-03-04 13:45:27 +05:30
AbhigyaKrishna
feab6ba0bd
Removed invalid function from NBTCodec
2024-03-04 13:42:31 +05:30
Kamilkime
f11a5dd31c
Correct NBT component style serialization
2024-03-04 02:08:40 +01:00
ytnoos
5a3a4f6507
Support for ViaVersion dev builds
2024-03-02 11:11:11 +01:00
ytnoos
e2865ce4be
Fix re-encode for new bytebufs that were bigger than the received one
2024-03-02 10:47:52 +01:00
ytnoos
f53f182090
MessageSignature limits
2024-03-02 10:34:35 +01:00
ytnoos
2ec7771a8a
ByteBufInputStream limits
2024-03-02 10:32:17 +01:00
ytnoos
75320ef583
implemented NBT read limits following vanilla values
2024-03-02 10:29:02 +01:00
retrooper
40fa932d33
Merge pull request #683 from AbhigyaKrishna/2.0
...
AdventureNBTSerializer reworked
2024-03-01 21:33:57 +01:00
AbhigyaKrishna
1355ca6bdd
Optimised imports
2024-02-29 12:46:56 +05:30
AoElite
5639c2b85e
Merge pull request #687 from Syntellix/2.0
...
Implement settings for printing packet exception stacktraces and kicking the player for packet exceptions
2024-02-27 14:48:05 -05:00
AoElite
baa8837987
Merge pull request #686 from SamB440/feat/read-only-block-data
...
Add methods for getting WrappedBlockStates without cloning
2024-02-27 13:48:03 -05:00
MachineBreaker
38f2783149
Apply requested changes
2024-02-27 14:17:17 -04:00
MachineBreaker
43a5e2c590
Add settings for full stacktrace and player kicking
...
Idea from AoElite
2024-02-27 13:59:41 -04:00
MachineBreaker
9a124b8e68
Don't print full stacktrace if debug is not enabled
2024-02-27 13:27:32 -04:00
SamB440
02b9e9260f
Add methods for getting WrappedBlockStates without cloning
2024-02-27 16:29:57 +00:00
AbhigyaKrishna
d109e9dd54
Reading text field from number and boolean
2024-02-25 13:24:13 +05:30
AbhigyaKrishna
2ea24250a0
Component serialization for boolean and number
2024-02-25 13:06:45 +05:30
AbhigyaKrishna
39d555f3ec
Update license
2024-02-24 20:31:32 +05:30
AbhigyaKrishna
6e09ec2e2b
Simplified decoration reading
2024-02-24 17:37:18 +05:30
AbhigyaKrishna
f91de06044
AdventureNBTSerializer rework (minor patch)
2024-02-24 13:36:59 +05:30
AbhigyaKrishna
63e3563a1a
Merge remote-tracking branch 'origin/2.0' into 2.0
...
# Conflicts:
# api/src/main/java/com/github/retrooper/packetevents/util/adventure/AdventureNBTSerializer.java
2024-02-24 13:34:22 +05:30
AbhigyaKrishna
655d97c73a
AdventureNBTSerializer rework
2024-02-24 13:33:58 +05:30
AbhigyaKrishna
a7c8f21d31
AdventureNBTSerializer rework
2024-02-24 13:18:28 +05:30
AbhigyaKrishna
f23ff3d421
pattern matching for excluding gson
2024-02-24 13:17:44 +05:30
AbhigyaKrishna
766f0c0a32
NBT toString implementation
2024-02-24 13:15:45 +05:30
retrooper
e13d52a518
Attempted fixes at WrapperPlayServerDeclareCommands
2024-02-23 19:55:27 +01:00
AbhigyaKrishna
329b8adefa
Removed debug statements
2024-02-12 02:51:22 +05:30
retrooper
5bb90aa0de
Update PacketEvents version to 2.2.1
2024-02-11 22:20:55 +01:00
AbhigyaKrishna
a7949eb096
Merge remote-tracking branch 'origin/mapping-compression' into mapping-compression
2024-02-12 02:50:11 +05:30
AbhigyaKrishna
a4288ca29c
Fixed loading of Block states
2024-02-12 02:49:51 +05:30
retrooper
9b1e92b555
Increase DEPTH_LIMIT of components to 512
2024-02-11 22:10:39 +01:00
retrooper
104615edb5
Increase AdventureNBTSerialization#DEPTH_LIMIT to 13
2024-02-11 21:54:43 +01:00
retrooper
9f54ca6843
Fixing metrics on velocity module
2024-02-11 21:52:50 +01:00
retrooper
46919017e1
Merge remote-tracking branch 'origin/2.0' into 2.0
2024-02-11 21:27:19 +01:00
retrooper
0a1ce38c7e
Fix null player instance in event after reload.
2024-02-11 21:26:51 +01:00
retrooper
f60d5230c3
Merge pull request #668 from honkling/2.0
...
Request signatures from Mojang API
2024-02-11 21:19:18 +01:00
retrooper
8034f5dc89
Merge remote-tracking branch 'origin/2.0' into 2.0
2024-02-11 21:14:19 +01:00
retrooper
265ade55d0
Credit to vytskalt: Limit objective display name to 32 characters (new commit created due to PR conflicts)
2024-02-11 21:13:53 +01:00
retrooper
cffcbaf596
Merge pull request #655 from BlueTree242/2.0
...
Assume protocols higher or lower than the supported versions as closest protocol versions
2024-02-11 21:08:18 +01:00
retrooper
4dc90a2920
Deprecate ClientVersion#LOWER_THAN_SUPPORTED_VERSIONS
...
and ClientVersion#HIGHER_THAN_SUPPORTED_VERSIONS
2024-02-11 21:07:22 +01:00
retrooper
e5b5845ebf
Update copyright year on newly created files.
2024-02-11 19:56:36 +01:00
Abhigya
b5f6a7f6b8
Merge pull request #676 from AbhigyaKrishna/2.0
...
Fixed adventure version detection
2024-02-09 00:26:11 +05:30
AbhigyaKrishna
f916addda3
Fixed adventure version detection
2024-02-09 00:22:47 +05:30
retrooper
d275fb8d8b
Merge pull request #669 from booky10/fix/breeze-poses
...
Add missing entity poses for 1.20.4
2024-02-08 00:15:41 +01:00
retrooper
3ce8971215
Little comment on EntityPoses for clarity when looked at in the future
2024-02-08 00:15:25 +01:00
retrooper
5866e4ede1
Merge pull request #674 from gabber235/2.0
...
Added WrapperPlayServerSetActionBarText
2024-02-08 00:06:22 +01:00
retrooper
a47040e18a
Spacing change
2024-02-08 00:06:03 +01:00
retrooper
631b41d9d0
Some changes to WrapperPlayServerActionBar
...
Unfortunately we need to name it WrapperPlayServerActionBar, so that it aligns with the packet type enum constant. I like that you tried to use wiki.vg/Protocol naming, but packetevents needs to be consistent in its naming.
2024-02-08 00:05:28 +01:00
Gabber235
8b9cf0c283
Add Set Action Bar Text Wrapper
2024-02-07 18:52:21 +01:00
retrooper
e7afd771f8
Merge pull request #672 from AbhigyaKrishna/2.0
...
Updated AdventureSerializer for adventure 4.15.0
2024-02-06 22:01:34 +01:00
AbhigyaKrishna
98446b5afc
Changed improper variable name
2024-02-07 01:25:25 +05:30
AbhigyaKrishna
0fbfca81a1
Updated AdventureSerializer for adventure 4.15.0
2024-02-06 23:54:38 +05:30
booky10
33f1eab93b
Add missing entity poses for 1.20.4
2024-02-03 17:44:12 +01:00
retrooper
38fcccd7c9
Merge pull request #651 from cheaterSK/2.0
...
Fix packet encoding on Velocity
2024-02-02 21:57:43 +01:00
honkling
053768ccfa
Request signatures from Mojang API
2024-02-01 21:10:59 -06:00
AoElite
d11a0406cb
Merge pull request #661 from joshuaprince/vibration-particle-entity-height
...
Read and write entity eye height in Vibration particle wrapper
2024-02-01 15:13:52 -05:00
AoElite
5966ca1355
Merge pull request #660 from booky10/fix/scoreboard-packets
...
Fix scoreboard objective packet
2024-02-01 15:13:12 -05:00
AoElite
72944a00c0
add max durability to netherite armor itemtypes
2024-02-01 14:55:53 -05:00
retrooper
671c935134
Merge pull request #665 from booky10/fix/adventure-v4.15
...
Fix gson component serialization for adventure v4.15
2024-01-23 23:12:23 +01:00
booky10
c931974779
Fix gson component serialization for adventure v4.15
2024-01-23 19:52:18 +01:00
Joshua Prince
5e6d0bffde
Read and write entity eye height in Vibration particle wrapper
...
Fixes https://github.com/joshuaprince/CoordinateOffset/issues/9
Vibration particle data for vibrations emitted by entities contains
an "entity eye height" field. The ParticleVibrationData wrapper for
WrapperPlayServerParticle did not read or write this field, so any
usage of this wrapper would corrupt the packet and cause players to
be kicked when they moved near an entity that can receive vibrations
(i.e. Wardens).
Tested on 1.19.4 and 1.20.4. This field has been present and unchanged
since 1.19's changes to the Vibration particle (which is also the
first fully-released version to add Wardens):
https://wiki.vg/index.php?title=Data_types&oldid=17608#Particle
2024-01-22 23:19:28 -08:00
retrooper
c08719acc7
Merge pull request #663 from booky10/fix/villager-levels
...
Fix VillagerLevel being invalid
2024-01-22 18:22:07 +01:00
booky10
e76b00c880
Fix VillagerLevel being invalid
2024-01-22 13:38:38 +01:00
cheaterSK
b30d56ed0b
Merge branch 'retrooper:2.0' into 2.0
2024-01-20 22:43:44 +01:00
booky10
211b85a51b
Add missing constructor parameter for ScoreFormat in WrapperPlayServerScoreboardObjective
2024-01-20 19:02:31 +01:00
booky10
f895ff0e0a
Fix missing version check for scoreboard objective
2024-01-20 19:01:27 +01:00
booky10
3726f6629a
Add common packet implementation for cookie responses
2024-01-19 20:12:38 +01:00
booky10
33aae65e35
Update particle type mappings for 24w03b
2024-01-19 18:05:07 +01:00
AoElite
6f0f6eaa24
Merge pull request #601 from mpc19/2.0
...
Updater updates
2024-01-18 22:24:32 -05:00
AoElite
d6ee3b356e
Merge pull request #657 from joshuaprince/sign-editor
...
Properly read isFrontText in sign edit wrappers
2024-01-18 22:20:22 -05:00
booky10
2d495b7570
Add backwards compatibility for sweeping edge renaming
2024-01-17 23:09:27 +01:00
booky10
5a8acfdffd
Add packet wrapper for all new packets
2024-01-17 22:49:48 +01:00
booky10
1938f9f3bf
Fix missing play PacketType
2024-01-17 22:39:35 +01:00
booky10
672b8e47fd
Update login encryption request packet
2024-01-17 22:33:25 +01:00
booky10
846d0a893e
Update secure chat enforcement fields
2024-01-17 22:33:14 +01:00
booky10
fb45b5b35a
Update handshake packet for 24w03a
2024-01-17 22:27:31 +01:00
booky10
1205020451
Update block and item tags
2024-01-17 22:19:12 +01:00
booky10
3ed2735d0e
Rename enchantment "sweeping" to "sweeping_edge"
2024-01-17 22:11:53 +01:00
booky10
5b3d6ae7a2
Update attribute mappings for 24w03a
2024-01-17 22:09:11 +01:00
booky10
e3d9638b47
Update packet types and ids for 24w03a
2024-01-17 21:58:02 +01:00
booky10
9ec6118159
Merge branch '2.0' into dev/1.20.5
2024-01-17 21:43:47 +01:00
Joshua Prince
7b800a9015
Properly read isFrontText in sign edit wrappers
...
Fixes https://github.com/retrooper/packetevents/issues/656
WrapperPlayServerOpenSignEditor and WrapperPlayClientUpdateSign
break editing the back of signs by simply calling the wrapper. The
initializers for these isFrontText fields to "true" ran AFTER the
wrappers' superclass constructor, which means that the initializers
would overwrite the value set by the "read" method.
2024-01-16 23:48:56 -08:00
BlueTree242
ba0feb31f0
Assume protocol versions below lowest supported versions 1.7.2, and above highest supported version to be 1.20.4
2024-01-15 09:56:29 +02:00
AoElite
36b73752f7
Merge pull request #649 from SamB440/fix/pack-send-prompt
...
Fix WrapperPlayServerResourcePackSend in 1.16
2024-01-14 15:23:22 -05:00
cheaterSK
6f0586ce23
Fix memory leak
2024-01-13 15:28:46 +01:00
cheaterSK
59159d47a0
Fix packet encoding on Velocity
2024-01-13 13:36:35 +01:00
retrooper
23c0fc9bff
PacketWrapper#prepareForSend including proxy parameter created.
2024-01-12 23:05:12 +01:00
retrooper
c34690197d
Merge pull request #647 from Tofaa2/2.0
...
Implement misc missing protocol objects into packet events
2024-01-12 22:47:51 +01:00
Tofaa and Julian
c98425cb99
Update api/src/main/java/com/github/retrooper/packetevents/protocol/entity/villager/VillagerData.java
...
Co-authored-by: Julian <53055251+NoJokeFNA@users.noreply.github.com >
2024-01-11 13:03:09 +03:00
Tofaa and Julian
55f4280ccb
Update api/src/main/java/com/github/retrooper/packetevents/protocol/entity/villager/VillagerData.java
...
Co-authored-by: Julian <53055251+NoJokeFNA@users.noreply.github.com >
2024-01-11 13:01:36 +03:00
Tofaa and Julian
b9299dfa96
Update api/src/main/java/com/github/retrooper/packetevents/protocol/entity/villager/level/VillagerLevel.java
...
Co-authored-by: Julian <53055251+NoJokeFNA@users.noreply.github.com >
2024-01-11 13:01:23 +03:00
Tofaa and Julian
b1fb30163c
Update api/src/main/java/com/github/retrooper/packetevents/protocol/world/Rotation.java
...
Co-authored-by: Julian <53055251+NoJokeFNA@users.noreply.github.com >
2024-01-11 13:01:18 +03:00
Tofaa
50b8776aa9
fix retrooper nitpick
2024-01-11 13:01:48 +03:00
Tofaa
d47b450307
Add copyright headers
2024-01-09 05:32:58 +03:00
SamB440
1f41447a02
Fix WrapperPlayServerResourcePackSend in 1.16
2024-01-07 14:40:30 +00:00
AbhigyaKrishna
af251d03b8
Use new mappings scheme
2024-01-07 15:48:35 +05:30
AbhigyaKrishna
1445057145
Mapping Compression Task
2024-01-07 15:47:45 +05:30
Tofaa
a306ac26b9
add constructors to support the Color api
2024-01-06 03:24:32 +03:00
Tofaa
df6a334a00
implement color api
2024-01-06 03:20:32 +03:00
Tofaa
c43ea28f59
Create Rotation.java
2024-01-06 03:19:45 +03:00
Tofaa
596f1b57ce
add villager level api
2024-01-06 03:15:44 +03:00
retrooper
386238aae8
Fix Vector3i#subtract
2024-01-05 12:00:31 +01:00
retrooper
e7dcb4c96e
Merge pull request #643 from booky10/fix/scoreboard-wrappers
...
Fix scoreboard wrappers for 1.20.3/1.20.4
2024-01-04 12:09:32 +01:00
retrooper
6049e37d87
Minor change to ScoreFormatType
2024-01-04 12:09:07 +01:00
booky10
a41e747da7
Fix objective name and score owner character limitation
...
Was removed by mojang in 1.18
2024-01-03 22:47:14 +01:00
booky10
c4c61dff3c
Fix issues noticed while testing
2024-01-03 22:35:12 +01:00
booky10
84b85c8f00
Fix WrapperPlayServerScoreboardObjective and WrapperPlayServerUpdateScore on 1.20.3/1.20.4
2024-01-03 21:32:02 +01:00
AoElite
f9b3786c16
fix exception if lvl nbt is missing from enchanted items
2024-01-03 13:46:14 -05:00
retrooper
d2350ad383
Update README.md
2024-01-01 11:52:02 +01:00
MWHunter
f6c554da02
fix reflection after paper update
2023-12-31 09:57:39 -06:00
booky10
721532ee44
Merge branch '2.0' into dev/1.20.5
2023-12-30 05:10:54 +01:00
AoElite
7ff8c40402
add equals & hashcode to statetype
2023-12-27 17:48:05 -05:00
retrooper
df6d7fa741
Fix npc's not spawning on modern versions
2023-12-26 10:16:49 +01:00
booky10
c936c9da31
Merge branch '2.0' into dev/1.20.5
2023-12-26 03:56:11 +01:00
retrooper
3a5aa401f0
Merge pull request #634 from SamB440/fix/test-ci
...
v2: Fix tests for actions, bump gradle wrapper
2023-12-22 18:08:30 +01:00
SamB440
9c5263bf20
v2: Fix tests for actions, bump gradle wrapper
2023-12-22 15:00:13 +00:00
booky10
28cb480ac3
Merge branch '2.0' into dev/1.20.5
2023-12-22 02:49:37 +01:00
retrooper
838426e1bf
Merge pull request #633 from retrooper/revert-629-fix/test-ci
...
Revert "Fix tests for actions, bump gradle wrapper"
2023-12-21 18:49:21 +01:00
retrooper
d486863a64
Revert "Fix tests for actions, bump gradle wrapper"
2023-12-21 18:48:08 +01:00
retrooper
cd98e8488b
Merge pull request #629 from SamB440/fix/test-ci
...
Fix tests for actions, bump gradle wrapper
2023-12-21 18:44:34 +01:00
retrooper
a7c6f88a11
Merge pull request #630 from SamB440/feat/better-tests
...
Fix ItemTags, improve testing
2023-12-21 18:44:10 +01:00
retrooper
c15b88e77f
Merge pull request #632 from booky10/fix/bits-overflow-global-palette
...
Fix bits overflowing when using global palette with bit storage
2023-12-21 18:42:59 +01:00
booky10
1a2d39d68f
Fix bits overflowing when using global palette with bit storage
2023-12-21 01:53:11 +01:00
SamB440
fe8ca640cc
Test ItemTags like BlockTags, add dummy API instance in tests, fix REPLACEABLE_PLANTS
2023-12-20 14:34:29 +00:00
booky10
26eee81455
Also add validity check to ItemTags
2023-12-19 21:42:56 +01:00
booky10
8c63a7c7b6
Update item tags to 23w51b
2023-12-19 21:38:44 +01:00
booky10
d221869491
Re-generate block-/item-tags
...
But this time with correct ordering
2023-12-19 21:36:46 +01:00
booky10
539b814a5a
Update attributes update packet structure
...
Attributes are now encoded as id instead of writing their keys
2023-12-19 21:05:05 +01:00
booky10
d0da1d710b
Add attribute mappings
...
Attributes are now encoded with their id in packets
2023-12-19 20:56:17 +01:00
booky10
2771959dd8
Update effect packet structure
...
Removes factor data
2023-12-19 20:43:34 +01:00
booky10
aa17d098c4
Update entity data type mappings
2023-12-19 20:40:15 +01:00
booky10
7a1f432652
Update item type mappings
2023-12-19 20:35:22 +01:00
booky10
bca60bfa19
Update entity type mappings
2023-12-19 20:35:17 +01:00
booky10
94e2dc0378
Add 1.20.5 version constants
2023-12-19 20:35:09 +01:00
SamB440
e8bdd02838
Gradle 8.5
2023-12-19 18:26:20 +00:00
SamB440
b962876dfd
Use build task instead of shadowJar to support tests
2023-12-19 18:21:34 +00:00
retrooper
f0135204e3
Merge pull request #626 from SamB440/fix/twenty-three-tags-2
...
Ensure order of block tags is correct
2023-12-15 22:35:08 +01:00
SamB440
5bedb44e11
Ensure order of block tags is correct
2023-12-15 21:24:46 +00:00
retrooper
4e3ada1bd8
Merge pull request #625 from SamB440/fix/twenty-three-tags
...
Fix 1.20.3/4 experimental block and item tags
2023-12-15 21:55:41 +01:00
SamB440
38d68418dc
Fix 1.20.3/4 experimental block and item tags
2023-12-14 14:49:35 +00:00
retrooper
5f8efaaf0f
Correction in documentation
2023-12-13 21:34:05 +01:00
retrooper
9b8de173e4
EntityMetadataProvider backwards compatibility
2023-12-13 21:30:24 +01:00
retrooper
de4594fbdc
EntityMetadataProvider abstraction has been completed (now provides a protocol version)
2023-12-13 21:26:09 +01:00
retrooper
5eae00ef0b
Minor change to velocity module
2023-12-13 21:07:22 +01:00
retrooper
3c418473d8
Releasing 2.2.0
...
- Initialization Optimization on Spigot
- bStats support implemented for Velocity
- bStats support implemented for BungeeCord
2023-12-13 21:05:53 +01:00
retrooper
1e919053c6
Merge pull request #623 from booky10/dev/1.20.3
...
1.20.3/1.20.4 update
2023-12-12 22:39:15 +01:00
booky10
30ff648bad
Add handling for unnamed simple components as serialized compounds
2023-12-09 00:57:17 +01:00
booky10
6c5d9beb76
Rewrite adventure nbt serialization
...
This will now skip building nbt objects and will directly build adventure components
2023-12-09 00:10:46 +01:00
retrooper
3e828ea9ee
* Added 1.20.4 version constants
...
* GRASS -> SHORT_GRASS, but GRASS is deprecated.
* WrapperPlayServerTickingInfo -> WrapperPlayServerTickingState
* WrapperPlayServerTickingStep minor changes
2023-12-08 13:05:03 +01:00
booky10
4ef8b381d7
Fix NPE for adventure nbt deserialization if no translation args are present
2023-12-05 20:44:09 +01:00
booky10
24838cd7d9
Fix new particle type ids being ignored
2023-12-05 20:24:47 +01:00
booky10
e17b877b5f
Add crafting and trial_spawner_state state values
2023-12-05 20:11:50 +01:00
booky10
8b85bc8d4d
Some various fixes for packet wrappers
2023-12-05 20:03:35 +01:00
booky10
fca9ad22fe
Fix wrong config packet type registration
2023-12-05 20:03:17 +01:00
retrooper
8f7ec3d38a
PacketEvents 2.1.0 release
2023-11-27 19:18:01 +01:00
retrooper
41969994b2
EntityMetadataProvider has been added, to allow potential packetevents addons to add on to our metadata abstraction.
2023-11-27 19:01:12 +01:00
booky10
667652bfb8
Add new resourcepack status for 1.20.3-pre3
2023-11-27 17:29:40 +01:00
booky10
2da42185e8
Rename grass to short_grass for 1.20.3-pre1
2023-11-20 20:23:55 +01:00
booky10
fd1b918956
Update packet structures for 1.20.3-pre1
2023-11-20 20:22:53 +01:00
booky10
828013bf77
Update packet ids for 1.20.3-pre1
2023-11-20 20:22:37 +01:00
booky10
6e30fb393a
Move new entitytypes to bottom
2023-11-17 19:13:52 +01:00
booky10
cbfca6c5fa
Update block/item tags to 1.20.3
...
Also fixes incorrect ordering
2023-11-17 18:26:12 +01:00
booky10
945ca46491
Fix missing fields for state types
2023-11-17 16:47:26 +01:00
booky10
f7d5252bf0
WIP new state types
2023-11-16 23:24:07 +01:00
booky10
a624a76427
Add new item types
2023-11-16 22:57:27 +01:00
booky10
39f9ed008c
Add new particle types
2023-11-16 22:36:31 +01:00
booky10
a0096b3032
Add breeze and wind charge entity types
2023-11-16 22:31:23 +01:00
booky10
ae1a0258fe
Add new game state change "reasons"
2023-11-16 22:22:23 +01:00
booky10
f863ad026f
Update explosion packet
2023-11-16 22:17:07 +01:00
booky10
abea90564f
Update vibration particle data
2023-11-16 22:01:28 +01:00
booky10
3bdd110864
Fix blockstate registry index not being incremented
2023-11-16 21:47:00 +01:00
booky10
b2e47f48a5
Use nbt-based component read/write methods
2023-11-16 21:45:09 +01:00
booky10
513de88321
Update serverbound jigsaw block packet
2023-11-16 20:11:13 +01:00
retrooper
4a2146d16d
Merge pull request #622 from rexlManu/2.0
...
Relocate only the gson and legacy
2023-11-16 20:02:18 +01:00
booky10
5a49cf2687
Implement packet wrappers for new serverbound packets
2023-11-16 18:49:29 +01:00
booky10
65fba0b83d
Implement packet wrappers for new clientbound packets
2023-11-16 18:49:13 +01:00
booky10
5272557f58
Add dummy "style" command argument parser
2023-11-16 18:29:44 +01:00
booky10
51abf38d3f
Fix names of command argument parsers
2023-11-16 18:28:55 +01:00
booky10
33abe17a2b
Add block mappings for 1.20.3
2023-11-16 18:25:18 +01:00
booky10
593015dd0b
Add new packet types
2023-11-16 18:21:29 +01:00
Emmanuel Lampe
079a2fcc53
Relocate kyori legacy and gson separate for bungeecord
2023-11-15 03:17:02 +01:00
Emmanuel Lampe
b9d4ed6a60
Relocate kyori legacy and gson separate
2023-11-15 03:16:09 +01:00
retrooper
aec45f19e4
Merge pull request #619 from KaspianDev/fix-merchantoffers
...
Fix merchant offers always being empty
2023-11-10 17:17:31 +01:00
KaspianDev
0aaa4f42b1
Fix merchant offers always being empty
2023-11-10 16:52:49 +01:00
retrooper
75dfc63d3b
Merge pull request #618 from SoSeDiK/blockId
...
Expose block id to BaseChunk
2023-11-07 18:34:37 +01:00
retrooper
ac501a26b2
Fix the way we access NetworkManager (recent server builds have changed it)
2023-11-04 23:03:23 +01:00
SoSeDiK
3ebf39d3bd
Expose block id to BaseChunk
2023-11-03 21:17:20 +02:00
retrooper
363931875f
Stop depending on funkemunky jars.
2023-11-01 11:11:55 +01:00
retrooper
b1802fbc0c
Merge pull request #613 from 4drian3d/velocity-changes
...
Some Velocity module improvements
2023-11-01 10:30:18 +01:00
retrooper
9f9cdca53a
Fix connection state issues and casting issues with events
2023-11-01 10:29:27 +01:00
Adrian
00c85f3e41
Some Velocity module improvements
...
- Removed PostOrder LATE usage
- Use Injected PluginContainer
- Disabled debug mode by default
- Replace deprecated method
2023-10-17 10:36:18 -05:00
retrooper
b48a91bcee
PotionTypes.getById works now
2023-10-11 19:18:47 +02:00
retrooper
709edd8b21
Merge pull request #610 from AbhigyaKrishna/2.0
...
Retain backward compatibility with adventure 5.0.0
2023-10-11 18:57:45 +02:00
retrooper
90edf6002e
PotionTypes now requires a version to work correctly.
2023-10-11 18:04:30 +02:00
retrooper
4e151f8dfb
Pushing out 2.1.0 snapshot for 1.20.2 update
2023-10-07 17:14:07 +02:00
retrooper
0165e8a4ac
Merge pull request #607 from booky10/dev/1.20.2
...
1.20.2 update
2023-10-06 23:48:39 +02:00
retrooper
385000b608
* Add full support for PacketConfigReceive & SendEvent
...
* WrapperConfigClientClientSettings renamed to WrapperConfigClientSettings
2023-10-06 23:42:54 +02:00
booky10
a1b7c947a0
Use ServerVersion instead of ClientVersion for potion effects
2023-10-03 14:58:31 +02:00
Abhigya
ab5163bc66
Retain backward compatibility with adventure 5.0.0
2023-10-02 00:41:27 +05:30
booky10
38b25b6d48
Fix wrapper name for debug pong packet
...
It's not chunk related, just a copy-paste error
2023-09-27 22:42:25 +02:00
booky10
9d5d4858cf
Fix blockstate mappings index
2023-09-23 00:48:32 +02:00
booky10
2e6c43ba06
Extract dimension information from registry data packet instead of login packet
2023-09-22 20:32:30 +02:00
booky10
f180a4a172
Fix packet wrapper constructor parameter types
2023-09-22 20:31:56 +02:00
booky10
5ce6b8bf9e
Fix missing clientbound configuration packettype
2023-09-22 20:24:22 +02:00
booky10
b61602741b
Rebase on latest changes
2023-09-22 20:24:08 +02:00
booky10
13ba9e7b81
Switch protocol after receiving signaling packet
2023-09-22 20:18:00 +02:00
booky10
d4c9444fd5
Separate encoder and decoder protocol state
2023-09-22 20:17:11 +02:00
booky10
b6c079af66
Add packet wrappers for nearly all new packets in 1.20.2
...
Only one missing is tags update, which already didn't have a wrapper before
2023-09-22 20:17:11 +02:00
booky10
a18d288079
Update packet structures for 1.20.2
2023-09-22 20:17:09 +02:00
booky10
c3d8f91e85
Update all mappings for 1.20.2
2023-09-22 20:16:37 +02:00
retrooper
0ca2f5c50a
Minor tweaks to velocity (update api)
2023-09-22 15:21:47 +02:00
retrooper
cdc7ed36e0
PacketEvents 2.0.2 update
2023-09-13 16:01:41 +02:00
retrooper
5d63308a22
Delete WrapperPlayServerChunkData default values
2023-09-13 15:36:20 +02:00
retrooper
214706dbb6
Fix update checker colors
2023-09-12 00:59:18 +02:00
retrooper
fa3b563c70
2.0.1 release
2023-09-12 00:36:31 +02:00
retrooper
55e31483e7
Changes to naming of WrapperPlayServerHurtAnimation
2023-09-12 00:02:38 +02:00
retrooper
aa34910468
Update User#getWorldNBT usages to handle a nullable value.
2023-09-11 23:35:11 +02:00
retrooper
5e44913a5e
Sending packets on proxies is now supported!
...
* ChannelInjector#isProxy added to detect if our implementation is running on a proxy
2023-08-31 20:25:27 +02:00
retrooper
b8dc964112
Add jenkins builds on README
2023-08-31 10:40:57 +02:00
retrooper
890844fb60
Fix broken link in README
2023-08-31 10:40:08 +02:00
retrooper
fc57c9e077
Update README
2023-08-31 09:46:32 +02:00
retrooper
f12ef113aa
Fixed packet-modification on BungeeCord.
2023-08-26 22:35:29 +02:00
retrooper
e8144ece97
Minor fix to 1.12 item type mappings.
2023-08-24 18:42:48 +02:00
retrooper
b611ad5522
Update to 1.20 bungeecord API for packetevents 2.0.0
2023-08-22 19:47:15 +02:00
retrooper
53e1014c8d
Cleanup to build.gradle for 2.0.0 rollout
2023-08-22 19:15:43 +02:00
retrooper
69f992a984
PacketEvents 2.0.0 release rollout
2023-08-22 19:12:53 +02:00
retrooper
fde9db39b7
Update README
2023-08-22 18:19:26 +02:00
retrooper
6c6a2535c8
Don't think getEntityById is a function that can be fixed
2023-08-22 18:01:31 +02:00
retrooper
23d06075dd
Fix BungeeCord injector, you may now listen to packets on proxies.
2023-08-22 17:39:19 +02:00
retrooper
926fd1ae50
Set default values for data inside ChunkData wrapper
2023-08-22 15:04:12 +02:00
AoElite
756add003f
Catch exceptions not throwables for events
2023-08-17 18:48:14 -04:00
mpc19
aaf00bf167
Updater Update | Part 2
2023-08-05 12:25:28 +01:00
mpc19
d72c8df72c
Updating the Updater
...
- Reduced amount of times it checks for update
- Remove error trace logs from console to prevent spam if it can't connect to github (firewalls, offline, etc)
- Removed random bracket in a message while making another follow the standard format used in previous messages.
- Replace some system print methods with LogManager methods
2023-08-04 23:37:16 +01:00
retrooper
800ffafb96
Update README.md
2023-07-15 19:16:11 +02:00
AoElite
ba2d9ae9f0
Merge pull request #598 from clrxbl/fix/chest-block-attributes
...
Fix chest block attribute order
2023-07-04 18:20:33 -04:00
Michael
31d07e4a39
Fix chest block attribute order
2023-07-05 00:07:12 +02:00
retrooper
ec36a5d1d8
Set reEncodeByDefault to true by default
2023-06-29 11:53:04 +02:00
retrooper
08ba59e1d9
Merge pull request #596 from SamB440/fix/mosaic
...
More block tag fixes
2023-06-28 19:47:51 +02:00
retrooper
851c74e827
Merge pull request #597 from SamB440/feat/item-tags-one-twenty
...
Update ItemTags to 1.20
2023-06-28 19:47:05 +02:00
SamB440
b31893e035
Update ItemTags to 1.20
2023-06-27 13:51:35 +01:00
SamB440
4718fb985d
Might as well add all new 1.20 tags
2023-06-26 22:07:18 +01:00
SamB440
aed9bc14fa
Add SWORD_EFFICIENT block tag
2023-06-26 21:56:30 +01:00
SamB440
1daad13da3
Mosaic + step sound blocks
2023-06-26 21:43:58 +01:00
retrooper
65a984e805
Fix NPC#updateTabPing
2023-06-26 22:15:30 +02:00
retrooper
a923b950f6
Add getters for WrapperPlayServerBlockChange
2023-06-25 00:29:02 +02:00
retrooper
ac5790411f
MessageSignData is no longer an optional in chat message wrapper, but the signature bytes can be set to length 0, to indicate that it is not present, otherwise it is.
2023-06-25 00:25:07 +02:00
retrooper
cd3449ade2
Newer chat message wrappers extend chat message_v_16 to simplify usage for users aiming 1.16+
2023-06-23 20:27:25 +02:00
retrooper
75af221f77
Account for fake players that trigger onJoin event.
2023-06-19 17:48:36 +02:00
retrooper
6f9b2cf5e9
Deprecate ChatMessage_v1_19_3
2023-06-19 17:39:32 +02:00
retrooper
4b4dd492cf
Fix ChatMessage_v1_19_3#setChatContent
2023-06-19 17:35:35 +02:00
retrooper
68471d32c8
Fix ChatMessage_v1_19_3#setChatContent to update the plainContent
2023-06-18 08:50:33 +02:00
retrooper
b7d0ce9518
Make ChatMessage_v1_19_3#unsignedChatContent nullable, getter returns an optional
2023-06-17 23:35:46 +02:00
retrooper
58abfc0c1e
Merge pull request #594 from AbhigyaKrishna/2.0
...
1.19.3 ChatMessage fix
2023-06-17 23:31:48 +02:00
AbhigyaKrishna
a3f6adac2f
More effective case check for 1.19.1 chat component
2023-06-18 02:53:39 +05:30
AbhigyaKrishna
f0c9af4464
Revert "Fix ChatMessageProcessor_v1_19_3's unsignedChatContent being null"
...
This reverts commit f43fff899f .
2023-06-18 02:52:25 +05:30
retrooper
f43fff899f
Fix ChatMessageProcessor_v1_19_3's unsignedChatContent being null
2023-06-17 23:14:33 +02:00
AbhigyaKrishna
9291fd8953
1.19.3 ChatMessage fix
2023-06-18 02:34:48 +05:30
retrooper
feb975010e
Fix 1.19.3+ outgoing chat processing. LastSeenMessages -> LastSeenMessages.Packed
2023-06-16 22:47:15 +02:00
retrooper
5c34c8e6c3
Cleanup of Optional uses
2023-06-16 22:46:11 +02:00
retrooper
8aaf40fc74
Now able to detect 1.20.1 servers.
2023-06-14 23:21:10 +02:00
retrooper
c6fcab2923
Merge remote-tracking branch 'origin/2.0' into 2.0
2023-06-14 17:55:27 +02:00
retrooper
64006b91a4
Fix particle importing on 1.8
2023-06-14 17:55:09 +02:00
DefineOutside
625a66f45a
Merge pull request #592 from AoElite/2.0
...
Add cracked state value
2023-06-12 21:13:44 -05:00
AoElite
0c6208f931
add cracked state value
2023-06-12 22:11:37 -04:00
retrooper
be32f464c5
Merge pull request #591 from SamB440/fix/block-tags
...
Fix missing block tag states
2023-06-12 22:13:12 +02:00
SamB440
3389baf40e
More missing block tag states
2023-06-12 20:45:26 +01:00
retrooper
edc85e68e8
Update copyright year
2023-06-12 20:14:05 +02:00
SamB440
3f9f093934
Fix missing block tag states
2023-06-12 19:09:25 +01:00
retrooper
31426cc69c
Add WrapperPlayServerBundle wrapper.
2023-06-12 19:54:33 +02:00
retrooper
cec8c9789f
SHAPER_ARMOR_TRIM_SMITHING_TEMPLATE fixed
2023-06-12 17:30:38 +02:00
retrooper
f771e15ce0
* Added new StateTypes for 1.20 minecraft
...
* SUSPICIOUS_SAND now has an assigned tool(a shovel), and has been updated (since 1.20)
2023-06-12 17:04:28 +02:00
retrooper
68a3702cd6
ItemType key is always lowercased
2023-06-12 15:21:59 +02:00
retrooper
8f4f688fb8
Update WrappedBlockState mappings, still need to add new state types i believe
2023-06-12 00:35:54 +02:00
retrooper
0a380344c5
Updated particle type mappings to 1.20 minecraft
2023-06-11 23:16:46 +02:00
retrooper
ab458ded62
Rename "var_long" to "long" in EntityDataTypes
2023-06-11 22:50:12 +02:00
retrooper
3bc78c1aec
ItemType mappings updated, new item types added to API
2023-06-11 22:22:39 +02:00
retrooper
0feebb6819
Fix chat wrapper for 1.19.3+
2023-06-11 12:34:52 +02:00
retrooper
cdb48e0ab6
Fix chat & encryption wrapper (salt signature processing)
2023-06-11 12:20:41 +02:00
retrooper
85e819d72f
Fix AdventureReflectionUtil
2023-06-11 10:50:10 +02:00
retrooper
10d44fe3cb
Update adventure to 4.14.0
2023-06-11 10:31:34 +02:00
retrooper
6b5ada3c5d
Update all wrappers for 1.20 minecraft
2023-06-11 10:08:45 +02:00
retrooper
2f0861c7b7
Update build.gradle to spigot 1.20
2023-06-11 09:45:17 +02:00
DefineOutside
abc8695a29
Merge pull request #590 from AoElite/2.0
...
Add 1.20 protocol
2023-06-08 08:01:42 -05:00
AoElite
c6577646ce
remove _0
2023-06-08 07:50:12 -04:00
AoElite
a6c68b2d0e
minimal 1.20 update
2023-06-07 18:12:59 -04:00
DefineOutside
23e0861192
Merge pull request #585 from ammodev/2.0
...
fix: Block State 1.19.4
2023-06-01 08:49:51 -05:00
MWHunter
7539aa345c
add better debug to entity metadata
2023-05-29 18:52:30 -05:00
Simon
2a076a61a0
fix: Accidental code deletion
...
Due to me not wanting to push my own sorting for imports and stuff I accidentally deleted some lines of code. Now fixed.
2023-05-27 00:54:12 +02:00
Simon
bf0ec04cec
fix: Block State 1.19.4
...
Fixed a bug in which the block state could not be mapped. Used in the new BlockDisplays
2023-05-27 00:47:55 +02:00
DefineOutside
fea687bba9
Merge pull request #584 from Offenderify/fix/block_data_packet
...
Fix block entity data packet
2023-05-23 20:34:55 -05:00
DefineOutside
25e83d6181
Merge pull request #579 from minus1ms/2.0
...
Add WrapperPlayServerDeclareCommands
2023-05-23 20:32:53 -05:00
Offenderify
95a91bb1f2
fix: block entity data packet
2023-05-20 15:10:58 +03:00
MWHunter
e1e057eabb
fix some 1.8 errors and exceptions
2023-05-14 16:36:47 -05:00
retrooper
f81120f8ed
Merge pull request #575 from Aseeef/2.0
...
Added a Conversion Util to convert to/from PacketEvents to Bukkit Particles
2023-05-13 20:31:26 +02:00
minus1ms
e44ad5edc2
better name of method
...
read is more self-explaining than get
2023-05-01 18:10:06 +02:00
minus1ms
c35d0854bc
Added nullable annotation where it should be
2023-05-01 18:01:47 +02:00
minus1ms
47dbb5e9c0
Add WrapperPlayServerDeclareCommands
...
added WrapperPlayServerDeclareCommands
im not sure if i did Parsers and Node in good way and im not sure if these are in good packages, everything works as intended
2023-04-30 18:47:55 +02:00
Aseeef
702894dd07
Merge branch 'retrooper:2.0' into 2.0
2023-04-26 17:05:54 -04:00
MWHunter
4801196942
move adventure serializer to adventure util package
2023-04-24 10:24:47 -05:00
retrooper
c88a9c412c
Ignore modern spoofed players
2023-04-23 22:42:13 +02:00
retrooper
4012472404
Merge pull request #564 from cheaterSK/2.0
...
Fix WrapperPlayClientChatCommand and WrapperPlayClientChatMessage
2023-04-23 22:39:03 +02:00
retrooper
54f3f3c221
Minor fixes to WrapperPlayClientChatCommand
2023-04-23 22:37:55 +02:00
cheaterSK
873557151b
Merge branch 'retrooper:2.0' into 2.0
2023-04-23 17:34:10 +02:00
MWHunter
32e96f3f51
include other included non-latest gson versions
2023-04-22 18:09:41 -05:00
MWHunter
cdffd10999
Update adventure to support new chat components
2023-04-22 17:49:38 -05:00
aseef
1524a546d8
Merge remote-tracking branch 'origin/2.0' into 2.0
...
# Conflicts:
# spigot/src/main/java/io/github/retrooper/packetevents/util/SpigotReflectionUtil.java
2023-04-15 15:06:58 -04:00
aseef
40d7be6236
* added a conversion util to convert between bukkit and packet events particles
2023-04-15 15:03:08 -04:00
retrooper
98b2b7b631
Fix exceptions on Spigot
2023-04-09 07:21:49 +02:00
retrooper
54704811b3
Fix code duplication in spigot encoder
2023-04-07 20:02:53 +02:00
retrooper
54241497b5
fix imports
2023-04-07 19:41:27 +02:00
retrooper
99637743f5
I've made a severe and continuous lapse of my judgment. and I don't expect to be forgiven. I'm simply here to apologize. so what we came across that day in the woods was obviously unplanned.2 Jan 2018
2023-04-07 19:39:56 +02:00
retrooper
702452c3a1
Final fix for missing imports.
2023-04-07 19:38:11 +02:00
retrooper
7e424cd46b
Bruh
2023-04-07 19:36:01 +02:00
retrooper
58401fc18e
Fix import errors again..
2023-04-07 19:34:41 +02:00
retrooper
7285eeff5a
Fix missing import in PacketEventsImplHelper
...
Sorry, I'm editing this in GitHub website cause I'm working on different branches in parallel
2023-04-07 19:31:01 +02:00
retrooper
cfb57e7a99
Add handleClientBoundPacket to PacketEventsImplHelper
...
This helps reduce code duplication when implementing encoders and decoders that have similar functionality on other platforms.
2023-04-07 19:27:22 +02:00
MWHunter
93cd6f39f9
fix isReplaceable()
2023-04-04 20:26:42 -05:00
MWHunter
9975706ba8
update statetypes, itemtypes, block tags to experimental datapack
2023-04-02 13:13:23 -05:00
retrooper
9b88a9ef98
Minor correction to EntityDataTypes
2023-04-02 18:55:33 +02:00
retrooper
548c6183a4
Added the EntityDataType registries, added in 1.19.4
2023-04-02 18:50:12 +02:00
DefineOutside
19d271881c
Merge pull request #510 from UserNugget/1.20-experimental-features
...
'1.20 experimental features' support
2023-04-02 10:19:51 -05:00
MWHunter
a64978cb0a
delete unmaintained classes
2023-04-02 10:15:28 -05:00
MWHunter
527beda70f
allow users to flag events as needing re-encoding, for performance reasons
2023-04-02 10:14:07 -05:00
MWHunter
127421a1d2
add sniffer
2023-04-02 09:53:34 -05:00
MWHunter
4a188bd116
don't eat exceptions
2023-04-02 09:50:59 -05:00
MWHunter
cd6db40a0d
add runTask() functionality to folia compat utils
2023-04-01 15:16:11 -05:00
MWHunter
d050c10eab
make isFolia() public
2023-04-01 15:09:57 -05:00
MWHunter
82e5b68119
update folia compat utility
2023-04-01 15:03:40 -05:00
MWHunter
3f00e1d817
more folia support utils
2023-04-01 14:50:47 -05:00
MWHunter
7296072bcb
folia support
2023-04-01 14:41:39 -05:00
DefineOutside
132ae43496
Merge pull request #565 from LemonCaramel/fix/server-data
...
fix WrapperPlayServerData issue in 1.19.4
2023-03-28 08:38:49 -05:00
LemonCaramel
2465ba9306
fix WrapperPlayServerData issue in 1.19.4
2023-03-27 09:24:39 +09:00
cheaterSK
2e10b151c9
Fix WrapperPlayClientChatCommand and WrapperPlayClientChatMessage for 1.19
2023-03-26 17:12:22 +02:00
cheaterSK
9a338cd897
Fix WrapperPlayClientChatCommand
2023-03-26 16:32:12 +02:00
retrooper
7c0bac33df
Fix WrapperLoginClientLoginStart for 1.19.4
2023-03-21 22:56:50 +01:00
MWHunter
db8c4ce08d
register new entity mappings
2023-03-18 21:10:03 -04:00
MWHunter
af52640237
fix entity mappings
2023-03-18 20:59:42 -04:00
MWHunter
b6d71a79a1
mark default block states
2023-03-17 19:26:02 -05:00
DefineOutside
407257c2ce
Merge pull request #558 from MachineBreaker/pooled-bytebuffers
...
Use Pooled ByteBuffer in SpigotReflectionUtil for decoding/encoding ItemStacks
2023-03-17 17:44:30 -05:00
Alejandro Martinez
19e7bc6190
Use Pooled ByteBuffers in decodeBukkitItemStack & encodeBukkitItemStack
2023-03-17 16:15:23 -06:00
retrooper
e0beccff4d
Merge remote-tracking branch 'origin/2.0' into 2.0
2023-03-17 21:57:31 +01:00
retrooper
1728e667ea
Push
2023-03-17 21:57:03 +01:00
retrooper
c2cce6fac7
Merge pull request #550 from AbhigyaKrishna/2.0
...
Adventure Backward Compatibility (<4.9.0) support
2023-03-17 19:07:08 +01:00
retrooper
9cf38bc325
Merge pull request #556 from maximbreitman/2.0
...
Add accessors to WrapperPlayServerPlayerInfoUpdate.PlayerInfo
2023-03-17 19:06:00 +01:00
maximbreitman
c0522d7836
Add accessors to WrapperPlayServerPlayerInfoUpdate.PlayerInfo
2023-03-17 17:31:47 +03:00
DefineOutside
dc1ac3beb3
Merge pull request #555 from MachineBreaker/patch-2
...
Log getDefaultState in Config Level
2023-03-16 16:34:48 -05:00
MachineBreaker
d59a11a340
Log getDefaultState in Config Level
...
Prevent spamming the console with:
[ac.grim.grimac.shaded.com.github.retrooper.packetevents.PacketEventsAPI] Default state for lantern is null. Returning AIR
2023-03-16 15:29:36 -06:00
MWHunter
a8e95c23ac
initial 1.19.4 support
2023-03-15 22:31:29 -05:00
DefineOutside
607b8dde56
Update LegacyFlexibleStorage.java
2023-03-14 12:06:06 -05:00
Abhigya
a0ccfb4875
Legacy Adventure (<4.9.0) support
2023-03-13 16:02:35 +05:30
retrooper
afcf98e2c8
Merge pull request #549 from Aseeef/2.0
...
Fixed Adventure API & Build Issues
2023-03-12 18:41:25 +01:00
aseef
51d74ae7ea
* relocated adventure api
...
* fixed velocity repo url
2023-03-12 13:33:13 -04:00
retrooper
7b6308c4e0
Merge pull request #546 from jtJava/2.0
...
Expose NPC channels and remove unnecessary parameters
2023-03-09 22:14:50 +01:00
jtJava
cdbe0df0f3
Expose NPC channels and remove unnecessary parameters
2023-03-08 16:29:58 -06:00
DefineOutside
d799ba7190
Merge pull request #543 from Aseeef/2.0
...
Marker interfaces to packet types
2023-03-01 20:25:43 -06:00
aseef
8c03d2e3a0
Merge remote-tracking branch 'origin/2.0' into 2.0
2023-03-01 21:19:19 -05:00
aseef
7c2994e54d
PacketTypes now implement a marker interface indicating whether the packets are client bound or server bound
2023-03-01 21:19:03 -05:00
aseef
e1e61feebf
reverted an accidental change
2023-03-01 21:18:46 -05:00
aseef
e6fb117182
PacketTypes now implement a marker interface indicating whether the packets are client bound or server bound
2023-03-01 21:16:44 -05:00
retrooper
a7aa3eae68
Merge pull request #540 from cheaterSK/2.0
...
feat: Add option in settings to disable color downsampling + fix actions/upgrade gradle
2023-02-20 16:20:20 +01:00
cheaterSK
d38089a46a
Upgrade gradle to 8.0.1, fix issues that came with it + freeze the version with ./gradlew in actions to avoid issues in future
2023-02-19 11:06:25 +01:00
cheaterSK
e2a980adde
Fix backwards compatibility
2023-02-18 10:09:09 +01:00
cheaterSK
a4e116d34f
Merge remote-tracking branch 'origin/2.0' into 2.0
...
# Conflicts:
# api/src/main/java/com/github/retrooper/packetevents/wrapper/play/server/WrapperPlayServerPlayerInfo.java
2023-02-18 10:02:37 +01:00
retrooper
6b61682fe4
Merge pull request #538 from Aseeef/2.0
...
NPE + ConcurrentModification Exception Fix
2023-02-15 23:37:53 +01:00
MWHunter
0c4709ac57
fix exception when mojang sends DISCONNECT in STATUS state, for some reason
2023-02-13 12:09:23 -06:00
DefineOutside
c6a542d206
Merge pull request #529 from ammodev/2.0
...
Version not being chosen correctly
2023-02-13 11:58:48 -06:00
MWHunter
d67028f568
don't enable debug by default
2023-02-12 17:08:39 -06:00
aseef
af48ee3938
Now creating a set using concurrenthashmap
2023-02-12 13:00:48 -05:00
aseef
945919c1e0
Merge remote-tracking branch 'origin/2.0' into 2.0
2023-02-12 08:32:04 -05:00
aseef
38de7a4b94
should fix concurrent modification exception
2023-02-12 08:30:32 -05:00
Aseeef
419232a075
Merge branch 'retrooper:2.0' into 2.0
2023-02-12 07:47:12 -05:00
aseef
e705b2725d
fixed a npe
2023-02-12 07:46:10 -05:00
MWHunter
004702f642
remove more unused internal methods
2023-02-11 16:24:13 -06:00
MWHunter
4c29d39292
clean up unused internal methods
2023-02-11 16:11:46 -06:00
MWHunter
24e8ff4fb4
fix fix setting components in EntityDataProvider
2023-02-03 12:59:05 -06:00
MWHunter
cf61f74ade
fix setting components in EntityDataProvider
2023-02-03 09:13:19 -06:00
MWHunter
72ab24b419
disable debug listener and reset the class
2023-02-02 22:11:14 -06:00
MWHunter
8c8357bfbc
avoid modifying backing array
2023-02-02 16:53:16 -06:00
MWHunter
59d36b6e55
Revert "ensure we have recovery logic for missing transition to PLAY state"
...
This reverts commit 647c05fe98 .
2023-02-02 13:25:09 -06:00
MWHunter
decf5579a3
reverse lists sanely
2023-02-01 21:18:22 -06:00
MWHunter
187f5a54c6
Why do we not set protocol to GAME state if client version is unknown???
2023-02-01 20:54:46 -06:00
MWHunter
647c05fe98
ensure we have recovery logic for missing transition to PLAY state
2023-02-01 20:50:46 -06:00
MWHunter
a089b98f6d
warn instead of debug on late injection
2023-02-01 20:45:43 -06:00
MWHunter
9d21b834cc
reverting bc356c6d - not setting to GAME state if client version unknown? what is retrooper doing?
2023-02-01 20:43:38 -06:00
MWHunter
069e872204
print more exceptions?
2023-02-01 20:39:02 -06:00
Simon
e945c9c56f
Update build.gradle
...
Revert the changes on the version to fit current standards
2023-01-31 22:09:12 +01:00
Simon and Julian
b8058b57d8
Update bungeecord/src/main/java/io/github/retrooper/packetevents/bungee/factory/BungeePacketEventsBuilder.java
...
Updated code style
Co-authored-by: Julian <53055251+NoJokeFNA@users.noreply.github.com >
2023-01-31 09:33:17 +01:00
retrooper
7ce167157a
Merge pull request #442 from NoJokeFNA/feat/bungeecord
...
Cleaned up BungeeCord module
2023-01-30 19:47:05 +01:00
DefineOutside
0503e99c50
Merge pull request #530 from DietrichPaul/patch-1
...
fixed 1.7 block placement
2023-01-30 12:04:17 -06:00
MWHunter
413d5e1eb5
add toString for StateType
2023-01-29 17:47:55 -06:00
MWHunter
51ebbb7914
ignore more types of invalid handshakes with the server
2023-01-29 12:36:47 -06:00
Paul Dietrich
2b98d5c90b
fixed 1.7 block placement
2023-01-29 11:05:28 +01:00
MWHunter
099ea9b7e9
fix race condition when sending packets to multiple people
2023-01-28 17:53:05 -06:00
Simon
ce703febc3
Fixed a bug where the version would not be chosen correctly
2023-01-29 00:16:00 +01:00
Simon
dce59f99fd
Changed git ignore to include vscode files
2023-01-29 00:09:03 +01:00
UserNugget
5ff498b6f0
1.20 experimental blocks/items/tags
2023-01-28 11:21:07 +03:00
MWHunter
32b85dce18
add more methods to avoid forcing people to use clientVersion
2023-01-27 23:13:57 -06:00
MWHunter
89b8d823c4
avoid forcing people to specify clientversions for block data
2023-01-27 23:11:53 -06:00
MWHunter
fc0f1eec68
default block state to server version
2023-01-27 22:36:05 -06:00
MWHunter
765fb79321
add modern conversions for WrappedBlockState
2023-01-27 22:34:55 -06:00
MWHunter
eb42c1b473
warn instead of error if someone else removes our handlers on reloads/shutdowns
2023-01-27 20:58:02 -06:00
MWHunter
ce484ecac5
support reloads
2023-01-27 20:20:44 -06:00
MWHunter
cb3e4d33a7
properly handle sending -1 (survival) gamemode in player info
2023-01-27 19:43:34 -06:00
MWHunter
12c01eb2fa
update chat wrappers to 1.19.3
2023-01-27 19:25:31 -06:00
MWHunter
c4b8a17437
fix project setup by not setting java source and target compat in the base build.gradle
2023-01-27 17:13:24 -06:00
MWHunter
5dde544e07
correct gradle specifying submodules
2023-01-27 16:19:39 -06:00
MWHunter
d16ad2154d
hack around bungeecord's inability to process empty buffers
2023-01-27 13:31:01 -06:00
MWHunter
245da7a870
ignore handshaking exceptions
2023-01-27 12:55:08 -06:00
MWHunter
2a0b217718
revert last change
2023-01-27 12:23:17 -06:00
MWHunter
582cfa7b57
fix cancelling outbound packet kicking people on bungeecord
2023-01-27 12:18:11 -06:00
retrooper
1b295dc827
Merge pull request #486 from vytskalt/2.0
...
Safely limit team display name, prefix and suffix to appropriate lengths
2023-01-11 19:31:42 +01:00
retrooper
a83248f70d
Correctly limit all data in the wrapper differently depending on the protocol version.
2023-01-11 19:29:28 +01:00
retrooper
42a1375c00
Merge pull request #516 from RotMC/2.0
...
Fix NPE caused by attempting to initialize user before channel
2023-01-11 18:32:30 +01:00
Ryan Jones
fbe89306f5
Merge branch 'retrooper:2.0' into 2.0
2023-01-09 11:40:31 -05:00
retrooper
faeb2f55d3
* Update NPC API for 1.19.3
...
* Improve WrapperPlayServerPlayerInfoUpdate & WrapperPlayServerPlayerInfoRemove for easier use
2023-01-08 00:27:58 +01:00
DefineOutside
239cc09c9f
fix headYaw not being sent
2023-01-05 16:41:28 -06:00
retrooper
6aac1faac4
Merge pull request #517 from iTzLucky28/2.0
...
Add Itemstack to WrapperPlayClientPlayerBlockPlacement constructor and replace Optional by regular objects
2023-01-03 22:54:20 +01:00
iTz_Lucky
ea4ab05bff
Add Itemstack to constructor and replace Optional by regular objects
...
Also less error prone, especially if they send null as Optional instead of Optional containing null
2023-01-02 08:13:29 +01:00
wordandahalf
d53f39bbc7
Fix NPE caused by attempting to initialize user before channel
2023-01-01 16:50:55 -05:00
cheaterSK
8f28b71ee2
Merge branch 'retrooper:2.0' into 2.0
2022-12-31 17:28:36 +01:00
DefineOutside
58df1fcc91
Merge pull request #512 from epserv/2.0
...
Add SITTING pose to EntityPose
2022-12-29 20:39:32 -06:00
l_MrBoom_l
060b919fa3
Add SITTING pose to EntityPose
2022-12-24 23:07:33 +05:00
MWHunter
7d0d4aa672
fix weird spigot 1.8 bug
2022-12-21 16:57:49 -06:00
MWHunter
e3cde54ab2
Simplify encoder/decoder, avoid bytebuf allocations
2022-12-21 16:20:59 -06:00
MWHunter
d681345e41
Fix optional component serializers
2022-12-15 14:54:08 -06:00
MWHunter
3939b534ad
make entity json data lazy
2022-12-15 13:53:57 -06:00
MWHunter
a8afbd2a0b
pool bytebufs
2022-12-15 13:34:41 -06:00
MWHunter
7d7cbb4445
Don't annotate non-sharable encoders/decoders as sharable
2022-12-14 17:54:58 -06:00
MWHunter
1c5dceb47d
Update explosion packet to 1.19.3
2022-12-14 14:59:58 -06:00
MWHunter
876fbf6fbf
Fix creating a new NBT tag which can desync inventory
2022-12-13 14:00:23 -06:00
MWHunter
b469ce2a69
fix compilation
2022-12-13 00:31:14 -06:00
MWHunter
6f7823e8cb
Use pipeline instead of address for tracking connections
2022-12-13 00:21:00 -06:00
MWHunter
2619a4398d
Clean up previous attempts to try to fix race condition
2022-12-12 20:23:27 -06:00
MWHunter
d411fe44fe
Fix race condition due to ProtocolLib wrapping a Channel screwing with our hashmaps
2022-12-12 20:19:07 -06:00
MWHunter
67af517510
Try synchronization to fix weird race condition
2022-12-12 19:41:39 -06:00
MWHunter
cce862bc57
Refactor methods dealing with Bukkit and Users
2022-12-12 18:20:48 -06:00
MWHunter
319750e3f9
Fix tag matches for empty tags
2022-12-12 16:42:20 -06:00
MWHunter
78ccd8b2d5
fix last commit
2022-12-12 14:07:11 -06:00
MWHunter
50ef62f4fb
Fix some reflection methods on some shitty MCM jar
2022-12-12 14:06:42 -06:00
MWHunter
05a5b5284b
More debug
2022-12-12 12:41:48 -06:00
MWHunter
8c6865405d
actually fix bad ordering (not race condition!) of post send tasks
2022-12-11 19:29:14 -06:00
retrooper
a204b5d521
Merge remote-tracking branch 'origin/2.0' into 2.0
2022-12-11 09:10:47 +01:00
retrooper
da0128b330
Fixed user state transitioning to remain in sync with minecraft which should fix a bunch of errors where we do not recognize the packet id or properly read data of a packet, because our connection state is behind. We need to update the state as soon as we get the packet.
2022-12-11 09:10:15 +01:00
MWHunter
84b005a3b0
Handle vanilla now reading a fixed amount of bytes
2022-12-11 00:15:06 -06:00
MWHunter
38fd7eae6d
Fix 1.19.3 chat messages not reading/writing chat type
2022-12-11 00:02:19 -06:00
MWHunter
e3d08fa0de
Try adding partial 1.19.3 chat packet support
2022-12-10 23:49:13 -06:00
retrooper
0da59c3585
Merge pull request #494 from iTzLucky28/2.0
...
Add getter/setter for WrapperPlayClientClickWindow
2022-12-11 00:31:35 +01:00
retrooper
b4145fda44
Remove ClassUtil's unnecessary class simple name caching
2022-12-11 00:29:02 +01:00
retrooper
5df58a116d
Fix race-condition in transitioning to PLAY state.
...
Post-tasks now run right after all listeners have processed the packet.
Tasks-after-send (only for outgoing packets) run after a packet has been sent
There's a difference so please make sure you're using the right one.
2022-12-10 21:21:22 +01:00
retrooper
7899d8cb46
Fix NBTCodec#nbtToJson
2022-12-10 21:03:51 +01:00
MWHunter
b47e0f20ef
More gracefully handle unknown block types
2022-12-09 18:16:28 -06:00
MWHunter
63a7121653
Update some mappings to 1.19.3 (Not everything is complete!)
2022-12-09 18:03:15 -06:00
MWHunter
7927c89ba2
Create a new bytebuf due to weird 1.8 bytebuf behavior
2022-12-09 15:10:08 -06:00
MWHunter
db5c97a324
Protect against empty bytebuffers, remove large amount of decoder code
2022-12-09 00:35:44 -06:00
MWHunter
d4b919430f
Ignore via API if it returns -1 as player version
2022-12-08 19:16:39 -06:00
MWHunter
d52df749fa
Prevent bots scraping the internet from causing PE 2.0 error
2022-12-08 16:54:59 -06:00
MWHunter
63eac8f0f6
Prevent failed injection with multiple PacketEvents 2.0 plugins
2022-12-08 16:21:17 -06:00
cheaterSK
0d7a618d87
Merge branch 'retrooper:2.0' into 2.0
2022-12-08 22:38:15 +01:00
retrooper
7a8d440475
* Added WrapperPlayServerPlayerInfoUpdate (for minecraft 1.19.3+ versions)
...
* Minor optimization to WrapperPlayServerPlayerInfo (minecraft 1.19.2 and older can use this wrapper)
2022-12-08 19:27:41 +01:00
retrooper
89b63802ac
Add WrapperPlayClientChatSessionUpdate
2022-12-08 18:24:27 +01:00
retrooper
17e8b51205
Add WrapperPlayServerUpdateEnabledFeatures
2022-12-08 17:11:51 +01:00
retrooper
8bb12b6913
Add WrapperPlayServerPlayerInfoRemove
2022-12-08 17:07:18 +01:00
retrooper
8a194d1ff6
Add WrapperPlayServerDisguisedChat (1.19.3 packet)
2022-12-08 17:01:31 +01:00
retrooper
45bc1e3d80
Map global 1.19.3 packet types
2022-12-08 16:54:10 +01:00
retrooper
a812e22312
Map 1.19.3 packet types
2022-12-08 16:37:20 +01:00
DefineOutside
b7c9015b39
Merge pull request #496 from ytnoos/2.0
...
Fix ViaVersion version check
2022-12-08 09:06:08 -06:00
Ytnoos
98c7c0d49c
Fix ViaVersion version check
2022-12-08 11:35:56 +01:00
MWHunter
dc10e3cca6
Support ViaBackwards on Paper servers
2022-12-07 17:01:48 -06:00
retrooper
54ae21fd5d
Set autoProtocolTranslation to true
2022-12-07 23:45:21 +01:00
retrooper
5d851e849a
Merge remote-tracking branch 'origin/2.0' into 2.0
2022-12-07 23:44:42 +01:00
retrooper
09ef7c2e80
Fix server-version detection issues & compression handling
2022-12-07 23:44:14 +01:00
MWHunter
e8d7fc30a5
Don't try auto translating spigot protocol
2022-12-07 16:06:25 -06:00
MWHunter
5fbb6d7349
Refactor post tasks
2022-12-07 14:59:41 -06:00
MWHunter
28b67601c1
Fix concurrent modification exception
2022-12-07 14:47:26 -06:00
MWHunter
ba02780727
Fix receive packet methods
2022-12-07 14:16:32 -06:00
MWHunter
2c756925a1
Injector rewrite for ViaVersion 4.5.0
2022-12-07 13:56:21 -06:00
iTz_Lucky
ac37b708c0
Update WrapperPlayClientClickWindow
...
Getter and Setter for actionNumber in WrapperPlayClientClickWindow
2022-12-03 04:03:25 +01:00
retrooper
6b92403dea
Optimize ProtocolSupportUtil
2022-12-01 20:05:21 +01:00
cheaterSK
f63da3d3d2
Fix Teams packet gamemode sometimes resulting in -1
2022-11-26 11:41:30 +01:00
cheaterSK
de763c948c
Fix legacy component parser
2022-11-26 10:52:55 +01:00
cheaterSK
4469b93ed9
feat: Add option in settings to disable color downsampling
2022-11-26 10:19:36 +01:00
DefineOutside
873c09d224
Merge pull request #474 from caoli5288/patch/user-dimension
...
Use User.dimension to improve ChunkReader_v1_9
2022-11-16 12:20:08 -06:00
DefineOutside
646b0a1050
Merge pull request #488 from AoElite/2.0
...
Allow NPC gamemode to be changable
2022-11-16 12:19:38 -06:00
AoElite
470975ca77
add method to update gamemode
2022-11-15 22:24:28 -05:00
AoElite
2005daa11f
allow the gamemode of the npc to be changeable
2022-11-15 22:17:30 -05:00
VytskaLT
e28f4e3993
Limit team display name, prefix and suffix to 16 characters
2022-11-06 18:11:19 +02:00
MWHunter
7509ecb971
Fix legacy blocks mappings
2022-10-27 15:03:17 -05:00
retrooper
738309506d
Merge pull request #484 from wordandahalf/2.0
...
Ensure dimension's attributes is initialized to a non-null value
2022-10-09 11:04:41 +02:00
wordandahalf
5243d9f17d
Initialize attributes in constructors
2022-10-06 17:43:31 -04:00
wordandahalf
bd91ef1be1
Ensure dimension's attributes is initialized to a non-null value
2022-10-06 16:39:49 -04:00
retrooper
8a9338ae46
Merge pull request #482 from LeeGodSRC/bugfix/packet-teams
...
Fixed WrapperPlayServerTeams send incorrect color post 1.17
2022-10-05 21:43:32 +02:00
retrooper
9aa27103a0
Fix WrapperPlayServerBlockEntityData constructor
2022-10-05 21:41:13 +02:00
leegod
af105f4add
Fixed WrapperPlayServerTeams send incorrect color post 1.17
2022-10-05 11:22:37 +08:00
retrooper
d2d3d84cbf
Merge remote-tracking branch 'origin/2.0' into 2.0
2022-10-03 20:29:06 +02:00
retrooper
e9a5c9315c
receivePacket works fully with ViaVersion;
...
receivePacketSilently works with ViaVersion if there is only one packetevents instance (until ViaVersion fixes their injector)
2022-10-03 20:22:09 +02:00
Souvlakis
3a93098804
Forcibly close unhandled connections
...
* Forcibly close unhandled connections
2022-09-29 15:01:56 +02:00
Julian
0b404d04cd
Added all combat wrapper classes ( #379 )
...
* feat: added WrapperPlayServerEndCombatEvent, WrapperPlayServerEnterCombatEvent, WrapperPlayServerDeathCombatEvent, WrapperPlayServerCombatEvent
Co-authored-by: retrooper <retrooperdev@gmail.com >
2022-09-11 22:04:43 +02:00
retrooper
f7b6fc476f
When server sends chat messages to large, it used to kick players instead of just throwing an error. We fixed that.
2022-09-11 20:23:54 +02:00
Souvlakis
0bcf58cf80
Added the ability to set a custom resourceProvider, which is used to retrieve files such as block mappings. ( #477 )
2022-09-11 19:02:13 +02:00
caoli5288
f9390aa69d
fix #472
2022-08-26 20:27:26 +08:00
caoli5288
3f6bb1a03d
Merge remote-tracking branch 'upstream/2.0' into patch/user-dimension
2022-08-26 20:26:23 +08:00
caoli5288
67eaa91252
Fix 1.12.2 chunk issues
...
* fix #472
2022-08-26 10:36:16 +02:00
caoli5288
911dffccc2
fix #472
2022-08-24 13:51:54 +08:00
caoli5288
3368b7fcc5
fix #472
2022-08-24 13:33:34 +08:00
Abhigya
1ad7cae303
Added WrapperPlayServerBlockEntityData, Dimension conversion fixes, Particle data fixes, EntityDataTypes fix
...
* Added WrapperPlayServerBlockEntityData and Dimension conversion
* Fixed serialization for Scoreboard Objective
* Updated Particle data system
* Updated EntityDataTypes for Particle and GlobalPos
Co-authored-by: retrooper
2022-08-23 18:36:57 +02:00
hinoobers
b7d04384fb
Fix for JSON -> NBT
...
Handle LazilyParsedNumber
2022-08-23 18:16:06 +02:00
retrooper
ea32d28d0b
Allow broken spigot forks not allowing us to detect server versions to load packetevents and assume server version is 1.8.8 (more common on older forks)
2022-08-23 18:10:32 +02:00
retrooper
ad70e4b996
Correct WrapperStatusClientRequest constructor
2022-08-17 21:25:17 +02:00
retrooper
c320ebce86
Update usage of blockface in digging wrapper
2022-08-17 21:24:43 +02:00
retrooper
01c81f5a0b
Remove duplicate getter and setter in WrapperPlayClientPlayerDigging
2022-08-17 21:19:18 +02:00
retrooper
66c722ec00
We correctly handle users trying to run packetevents on server versions not yet supported. Sort of a hotfix for now
2022-08-17 18:08:25 +02:00
retrooper
af38857d07
Correct link in error when loading with outdated ProtocolSupport
2022-08-17 17:53:14 +02:00
retrooper
5a1a02d212
Attempted to implement a NBTCodec.nbtToJson & NBTCodec.jsonToNBT
2022-08-17 10:41:41 +02:00
retrooper
bc96b5cd3e
remove
2022-08-16 21:19:30 +02:00
retrooper
c44e834c01
WrapperPlayServerEntityProperties -> WrapperPlayServerUpdateAttributes
...
ENTITY_PROPERTIES -> UPDATE_ATTRIBUTES
Attempted to fix issues on legacy versions where keys are too long for some reason
2022-08-16 21:05:00 +02:00
retrooper
4273bf6587
Fix WrapperPlayClientTabComplete for 1.9->1.12.2
2022-08-16 20:30:20 +02:00
retrooper
3329a544a4
WrapperPlayServerTradeList -> WrapperPlayServerMerchantOffers
...
TRADE_LIST -> MERCHANT_OFFERS
Breaking changes to merchant offers wrapper and fixed bugs on 1.19+
2022-08-16 18:56:29 +02:00
retrooper
075784498c
Update copyright year in files.
2022-08-16 17:48:35 +02:00
MWHunter
03b68a7f6f
Fix 1.7 BlockFace exception
2022-08-07 17:36:17 -05:00
MWHunter
dc614c96c3
Partially revert eae3d091f8
2022-08-07 16:16:10 -05:00
MWHunter
f77f705942
Refactor ServerVersion
2022-08-06 18:13:26 -05:00
retrooper
aa9cc58b49
1.19.2 support is ready.
2022-08-05 17:05:23 +02:00
retrooper
9de4dcf4b1
Fixed EntityMetadata
2022-08-05 15:24:49 +02:00
retrooper
eae3d091f8
More optimizations to entitydatatypes
2022-08-05 13:24:26 +02:00
retrooper
5f499123df
Some optimizing to EntityDataTypes
2022-08-05 13:04:18 +02:00
retrooper
a6c16ab45a
Preparing for 1.19.2 update.
2022-08-04 18:28:11 +02:00
retrooper
c060a55740
Removed debugs.
2022-08-03 23:54:09 +02:00
retrooper
8447998ce6
Transformed ChatType from an enum to a registry. Use ChatTypes.CHAT for example;
...
Removed weird exception supression, working on seperating user exceptions and internal packet api exceptions.
2022-08-03 23:53:20 +02:00
retrooper
99bc0ffcb6
Hopefully fixed some decoder issues?
2022-08-03 20:23:05 +02:00
retrooper
dea5feaa1e
Added proper exceptions again, still looking for a better way to handle exceptions.
2022-08-03 20:19:07 +02:00
DefineOutside
ebea88f60f
Update entity_data_type_mappings.json
2022-08-03 09:51:23 -05:00
retrooper
5717b6050e
User#sendPacketSilently added
2022-08-01 21:19:30 +02:00
retrooper
8eb60e9398
Exclude GSON from being shaded when shading adventure on the spigot module.
2022-08-01 20:33:05 +02:00
retrooper
4db2dc0592
SELECT_ADVANCEMENT_TAB renamed to SELECT_ADVANCEMENTS_TAB;
...
ADVANCEMENTS renamed to UPDATE_ADVANCEMENTS;
2022-08-01 20:32:24 +02:00
retrooper
ba1daa4b17
Micro optimization to EntityDataTypes and its mappings.
2022-08-01 20:30:49 +02:00
retrooper
69700bce2a
Fixed exception handling entirely.
2022-07-30 19:09:54 +02:00
retrooper
9dc0db4eae
Minor fix attempt to exception handling.
2022-07-30 16:20:18 +02:00
retrooper
8aeef01bd4
Fixed packet type mappings for 1.19.1;
...
Fixed constructor event for WrapperPlayServerCustomChatCompletions & WrapperPlayServerPlayerChatHeader
2022-07-29 20:51:41 +02:00
retrooper
3fff3925b2
Remove debugs.
2022-07-28 19:18:54 +02:00
retrooper
72c0ecbc5d
WrapperPlayClientPlayerDigging reads readByte() instead of readUnsignedByte()
2022-07-28 19:11:11 +02:00
retrooper
785c8056f9
WrapperPlayClientEntityAction now has 1.7.10 support
2022-07-28 18:50:02 +02:00
retrooper
48ef856d02
Fixed BlockFace index out of bounds
2022-07-28 18:35:44 +02:00
Julian and retrooper
c052ecf8c0
1.19.1 Update ( #448 )
...
* feat: updated ClientVersion and ServerVersion
* feat updated WrapperPlayServerSystemChatMessage
* feat: WrapperLoginClientLoginStart
* feat: use our new methods
* WrapperPlayServerSystemChatMessage completed & fixed.
ClientVersion fixed HIGHER_THAN_SUPPORTED_VERSIONS field.
* change: fixed code-style
* fix: fixed `overlay` getter as it doesn't match its default getter
* * Updated ChatType as some constants were removed on 1.19.1
* Updated ChatMessage and SystemChatMessage again
* Updated User#sendMessage to work on 1.19.1
* feat: updated ChatType to 1.19.1-pre3
-> `MSG_COMMAND` got replaced by `MSG_COMMAND_INCOMING` and `MSG_COMMAND_OUTGOING`
feat: added `CUSTOM_CHAT_COMPLETIONS` enum to new `ClientboundPacketType_1_19_1` class
feat: added WrapperPlayClientCustomChatCompletions & ChatCompletionAction classes
* feat: added `DELETE_CHAT` and `PLAYER_CHAT_HEADER` enums to `ClientboundPacketType_1_19_1` class
feat: added WrapperPlayClientDeleteChat & WrapperPlayClientPlayerChatHeader classes
change:
remove: removed unused import in WrapperPlayServerChatMessage
* change: change String[] to List<>
* remove: removed @Experimental annotation from readList and writeList method
change: renamed readVarIntList to readList and writeVarIntList to writeList
change: used our readList and writeList methods in WrapperPlayClientCustomChatCompletions
* feat: use our Writer and Reader functions instead of plain generic types
* Removed blanked line
* Update ChatType.java
* feat: improved readMap (especially for modern versions currently)
* Add ClientVersion.V_1_19_1 as a version map to allow it to use 1.19.1 clientbound packet mappings
* change: changed some naming stuff
* Fixed WrapperLoginClientLoginStart's SignatureData encoding.
* Fixed DeleteChat wrapper and mappings.
* Fixed WrapperPlayServerPlayerChatHeader for 1.19.1
* Fix WrapperPlayServerCustomChatCompletions
* Update api/src/main/java/com/github/retrooper/packetevents/protocol/packettype/PacketType.java
* feat: added `$readSignatureData` and `$writeSignatureData`
* fix: fix `$writeOptional` usage
* feat: first pre-5 update
* feat: some more progress
* feat: even more progress (might break some wrappers ATM)
* fix: fixed errors
* feat: pre-5 changes for ChatType
* change: changed `query` to `queryId`
* feat: *optimized* ChatType handling for modern versions (HashMap)
* * Removed write methods in LastSeenMessages and its inner classes.
* PacketWrapper#readLastSeenMessages and PacketWrapper#writeLastSeenMessages created.
WrapperPlayClientChatAck & WrapperPlayClientChatCommand & WrapperPlayClientChatMessage now use last seen messages.
Removed LastSeenMessagesTracker & LastSeenMessagesValidator, I don't see the need for it and we don't use it anywhere. Maybe later we might implement it ourself with inspiration from mojang but not just copy paste.
* remove: removed useless whitespace
* feat: improved docs in WrapperPlayServerChatMessage for `$getChatContent` and `$setChatContent`
* feat: added `EQUALS` to MultiVersion enum
affected classes due to import changes:
- PacketWrapper, ServerVersion, WrapperPlayWorldBorderWarningDelay
* change: changed copy order in WrapperPlayServerSystemChatMessage, it's not big of a deal, just looks cleaner this way
* feat: added rc-2 change; `boolean enforceSecureChat` has been added to WrapperPlayServerServerData
feat: created constructor for legacy versions in WrapperPlayServerServerData
* feat: added missing copyright text to WrapperPlayServerServerData
* feat: rc-2 -> added missing `enforceSecureChat` field to WrapperStatusServerResponse - thanks @derklaro
* remove: reverted WrapperStatusServerResponse as it just got added into the JSON message and not as a separate parameter
* feat: added pre6 change; the `chatContent` itself got changed from Component to a plain String, though we still provide the Component usage and just migrate it automatically to a String depends on the server version
* remove: removed TODO comment from WrapperPlayClientChatCommand and fixed `@Nullable` usage
* fix: fixed `@Nullable` usage in WrapperPlayClientChatMessage
* fix: fixed raw generic usage
* feat: added ClientVersion$is(MultiVersion version, ClientVersion target)
* fix: fixed JavaDocs for ServerVersion$is and ClientVersion$is
* feat: fixed code-style in ServerVersion
* feat: added missing DARKNESS PotionType
* feat: added missing EARTH, WIND, WATER and FIRE enums in PaintingType class
feat: added width and height values to PaintingType class
* feat: DARKNESS PotionType should use id 33 and not 32
* feat: renamed `MultiVersion` to `VersionComparison` as it's easier to understand this way
* feat: added missing JavaDoc to `setPreviousSignature` in `WrapperPlayServerPlayerChatHeader`
* WrapperPlayServerChatMessage had a lot of changes in 1.19.1 that we missed. Considering another way as it won't be too easy to abstract this all. Considering a similar approach to our chunk readers.
* To summarize this push, we rewrote the outgoing chat wrapper.
PacketWrapper appropriately named methods that have to do with readLastSeenMessages and added the true readLastSeenMessages;
WrapperPlayServerChatMessage had many changes in 1.19.1 so we decided to go with a different approach of implementing it and decided to go with a recode.
We have chat processors (readers & writers) which implement readers and writers for various versions. We have a chatmessage class which contains fields available on every single version and has subclasses which contain fields for their own version. Cast the chat message to get fields for specific versions. (Kinda like how BaseChunks are implemented)
* getMotd() -> getMOTD(), its sort of a convention to capitalize abbreviations here. Same we do for getUUID() and other stuff.
Also why not make the motd getter nullable, atleast as a response to the issue that complained about optionals?
* Little comment added to chat message, just to remind myself if I look back at it.
* Comment added to PaintingType to change it to a registry in the future.
* feat: cleaned up ChatMessage and its classes + ChatMessageProcessor and its implemented classes
* feat: added `getType` and `setType` and just removed the `@Deprecated` annotation
* Added missing FilterMask in 1.19.1 chat processor
* Minor additions to FilterMask
Co-authored-by: retrooper <retrooperdev@gmail.com >
2022-07-28 01:35:55 +02:00
retrooper
64ae9bfe27
Merge pull request #375 from NoJokeFNA/feat/update-jigsaw-block-wrapper
...
Added WrapperPlayClientUpdateJigsawBlock
2022-07-28 00:39:40 +02:00
retrooper
7b028f61d6
Optimized WrapperPlayClientUpdateJigsawBlock. It was added in 1.14, no point accounting for 1.7 protocol specialities?
2022-07-28 00:37:30 +02:00
retrooper
5d3f2105f0
Remove small debug
2022-07-27 16:13:05 +02:00
retrooper
a4c57cf41c
Made packetevents a snapshot version on nexus
2022-07-27 08:56:28 +02:00
retrooper
e8fa6d793f
Minor fix
2022-07-26 22:36:10 +02:00
retrooper
8fa6c3ad1e
Don't use nexus snapshot repo I guess?
2022-07-26 22:30:34 +02:00
retrooper
2044657fb6
Last nexus fix xd
2022-07-26 22:25:37 +02:00
retrooper
8c216d0aa6
Apparently we cannot publish twice.
2022-07-26 22:24:06 +02:00
retrooper
b80f22bf08
Another nexus fix
2022-07-26 22:22:09 +02:00
retrooper
4b0414c61b
Fixes for nexus repo
2022-07-26 22:18:42 +02:00
retrooper
3c43382148
Attempting rebuild for Nexus repository
2022-07-26 22:03:55 +02:00
retrooper
00e081fcad
ProtocolPacketEvent#getFullBufferClone to assist users attempting to delay packets.
2022-07-26 18:13:24 +02:00
retrooper
8cc8e5f171
Minor change to terminate.
2022-07-26 16:51:23 +02:00
retrooper
b449205b6f
Unregister listeners on termination to avoid duplicate packet listeners.
2022-07-26 16:32:09 +02:00
retrooper
bbe88eba3d
Attempting nexus repo fixes.
2022-07-25 19:33:56 +02:00
retrooper
f271778905
Properly publish dependencies to Nexus repository.
2022-07-25 19:25:04 +02:00
retrooper
fdefa91208
Minor changes
2022-07-25 19:09:44 +02:00
retrooper
909eb7cde3
Don't minimize jar to allow jenkins builds to contain all wrappers(even unused ones).
2022-07-25 19:08:30 +02:00
retrooper
1b3598182b
Fix WrapperPlayServerChatMessage for versions below 1.16.
2022-07-25 18:45:38 +02:00
MWHunter
031d190da2
Make shulker boxes exceed full cube
2022-07-24 18:47:53 -05:00
MWHunter
744cb05253
Follow vanilla restrictions on plugin messages
2022-07-22 17:45:21 -05:00
MWHunter
b1b2b10ee5
Try fixing edge case of velocity being off by 1
2022-07-21 18:30:46 -05:00
MWHunter
6efb6aebdf
Set mud brick wall as exceeding cube
2022-07-20 18:25:09 -05:00
MWHunter
a633c2558a
Fix mapping inconsistencies in 1.12
2022-07-20 18:22:14 -05:00
retrooper
88cd3bea89
Remove PublicKey from being stored in User.
2022-07-18 11:57:57 +02:00
retrooper
1ec83d1398
Optimize WrapperLoginServerLoginSuccess
2022-07-18 11:14:08 +02:00
retrooper
adf46aaeca
I think this should fix SpoofMC bots?
2022-07-18 08:26:40 +02:00
retrooper
43669d3652
Support connections that aren't necessarily Epoll or Nio. (there is your IO_URING fix)
2022-07-18 08:23:23 +02:00
retrooper
bc356c6daf
Improved exception handling.
2022-07-14 10:51:06 +02:00
MWHunter
b090424510
Fix explosion packet being off by one in negative coordinates pre-1.14
2022-07-11 21:33:05 -05:00
MWHunter
3fd2b883de
Fix ItemTypes capitalization
2022-07-10 12:54:09 -05:00
retrooper
e3e29ed79b
Deprecate legacy Dimension constructor.
2022-07-06 22:38:53 +02:00
retrooper
be4e820c0a
Fixes to WrapperPlayServerRespawn for 1.15-1.16?
2022-07-06 22:36:37 +02:00
retrooper
d7e1aa2161
Hopefully this breaks nothing but we need to load packet type mappings before the injector injects. As a rare scenario where the main-thread (when the plugin enables) and the netty threads both notice the mappings aren't loaded, they load them simultaneously which isn't handled well.
2022-07-06 21:29:13 +02:00
retrooper
f214cc54c6
Fix WrapperPlayServerParticle for 1.19
2022-07-06 15:22:24 +02:00
MWHunter
31157da8bb
Add hashcode functions to Vector3
2022-07-05 19:44:56 -05:00
retrooper
d54baa4293
Hopefully all works now.
2022-07-03 06:49:58 +02:00
retrooper
e3e4ac027f
Merge pull request #446 from retrooper/revert-439-feat/improvements
...
Revert "Cleaned up and improved some wrappers"
2022-07-03 06:48:38 +02:00
retrooper
c8023cd828
Revert "Cleaned up and improved some wrappers"
2022-07-03 06:47:53 +02:00
retrooper
9770948c45
Fixed PacketTransformationUtil
2022-07-01 22:10:35 +02:00
retrooper
6b62e2152f
EquipmentSlot renamed some enum constats to make more sense.
2022-07-01 22:05:27 +02:00
retrooper
88a223e2d9
Merge pull request #439 from NoJokeFNA/feat/improvements
...
Cleaned up and improved some wrappers
2022-07-01 22:02:33 +02:00
Julian
74f28ad610
feat: improved EquipmentSlot
2022-07-01 11:00:56 +02:00
Julian
085b37b2ed
remove: removed debug
2022-06-30 22:51:12 +02:00
NoJokeFNA
ea273ba4b6
feat: some more cleanup
2022-06-29 13:07:32 +02:00
NoJokeFNA
f3b14030b1
feat: some cleanup
2022-06-28 11:33:04 +02:00
Julian
c565d94d41
Merge branch '2.0' into feat/improvements
2022-06-27 21:58:10 +02:00
retrooper
d054164a4b
User#sendMessage doesn't look awkward on 1.19 anymore and few minor optimizations or fixes?
2022-06-27 19:44:16 +02:00
Julian
cd0679c3b2
Merge remote-tracking branch 'origin/feat/improvements' into feat/improvements
2022-06-27 19:18:59 +02:00
Julian
1be60149f9
feat: added missing data
2022-06-27 19:18:52 +02:00
Julian
b48e271ced
Merge branch '2.0' into feat/improvements
2022-06-27 19:15:21 +02:00
retrooper
2bcb1dcb90
Fix WrapperPlayClientPluginMessage
2022-06-27 18:55:12 +02:00
retrooper
c8d472beb7
Removed WrapperPlayClientPluginMessage generics, channel name always string.
2022-06-27 18:22:11 +02:00
retrooper
18689e4f00
Fixed WrapperPlayServerJoinGame
2022-06-27 18:09:20 +02:00
retrooper
440c73431e
Fixed WrapperPlayServerRespawn for 1.19, my bad but i wonder why it doesn't work?
2022-06-27 17:59:21 +02:00
retrooper
de634687fa
Fixed WrapperPlayServerRespawn for 1.19.
2022-06-27 17:52:02 +02:00
retrooper
6d0a753d2d
Remove debugs.
2022-06-27 17:45:10 +02:00
retrooper
c43b24c0db
Attach public key to user handle for us to verify chat messages. (I hope this is the right key as our message verifier doesn't work rn)
2022-06-27 17:42:00 +02:00
retrooper
7df7ffcc69
Some cleanup to the component wrappers, use the abstraction we have to avoid code duplication.
2022-06-27 17:27:55 +02:00
MWHunter
cca73eabe0
Don't do synchronous web requests on join event
2022-06-26 23:14:28 -05:00
MWHunter
db7f8d9cbd
allow plugins to exceed server address max length
2022-06-25 19:14:32 -05:00
Julian
a53ff85a66
change: cleaned up a little more
2022-06-23 19:20:32 +02:00
NoJokeFNA
46a7f39be6
change: improved JavaDocs a bit
2022-06-23 14:24:25 +02:00
NoJokeFNA
89801adc76
fix: fixed compilation errors
2022-06-23 11:06:30 +02:00
Julian
a405880a89
feat: cleaned up WrapperPlayClientEntityAction and WrapperPlayClientInteractEntity
2022-06-23 09:04:56 +02:00
Julian
bd5c4207bc
feat: cleaned up WrapperPlayClientAnimation
2022-06-23 09:02:12 +02:00
Julian
3564bc56e4
fix: fixed WrapperPlayServerParticle on higher server versions
2022-06-22 21:47:54 +02:00
Julian
6f18f867c0
feat: cleaned up and improved wrappers
2022-06-22 18:42:19 +02:00
retrooper
1ae1b5abf1
Merge pull request #353 from NoJokeFNA/feat/recipe-wrappers
...
Added WrapperPlayClientCraftRecipeRequest & WrapperPlayServerCraftRecipeResponse created
2022-06-22 14:59:27 +02:00
MWHunter
f8a920a2cb
Fix compilation
2022-06-21 20:31:12 -05:00
Julian
b497efc0c1
Merge branch '2.0' into feat/improvements
2022-06-21 22:37:12 +02:00
Julian
dfb36a48f9
feat: cleaned up WrapperPlayServerTabComplete
2022-06-21 22:33:34 +02:00
retrooper
0e471c665d
Merge pull request #428 from NoJokeFNA/fix/sound-wrappers
...
[1.19] Fix sound wrappers
2022-06-21 22:23:16 +02:00
Julian
f76b2f7c72
Merge branch '2.0' into fix/sound-wrappers
2022-06-21 22:18:20 +02:00
retrooper
4915d7d4a3
Merge pull request #433 from NoJokeFNA/change/cleanup
...
Refactored WrapperPlayServerChatMessage and cleaned up some classes
2022-06-21 22:12:27 +02:00
Julian
16e3861b41
change: changed signedChatContent to chatContent
2022-06-21 21:51:19 +02:00
NoJokeFNA
b57855b6ba
remove: removed $multiOptional as it was useless
2022-06-21 20:19:03 +02:00
MWHunter
6edd19e416
Mark mangrove fences as exceeds full cube
2022-06-20 18:43:16 -05:00
Julian
4ef61c71bf
Merge remote-tracking branch 'origin/feat/recipe-wrappers' into feat/recipe-wrappers
2022-06-19 19:44:41 +02:00
Julian
6a5f0d3e50
change: cleaned up code
2022-06-19 19:44:34 +02:00
Julian
9b20221587
Merge branch '2.0' into feat/recipe-wrappers
2022-06-19 19:36:40 +02:00
NoJokeFNA
70b540e67f
feat: added WrapperPlayClientUpdateJigsawBlock
2022-06-19 18:24:32 +02:00
Julian
f76b26e5d7
remove: removed OptionalLong usage
2022-06-19 18:04:48 +02:00
DefineOutside
19b6d3c999
Update BlockTags.java
2022-06-18 16:24:05 -05:00
Julian
49955e2dc8
Merge remote-tracking branch 'origin/change/cleanup' into change/cleanup
2022-06-16 18:22:23 +02:00
Julian
cd6a4d0cd2
feat: cleaned up a little more
2022-06-16 18:22:00 +02:00
Julian
4f1cd6c8bc
Merge branch '2.0' into change/cleanup
2022-06-16 14:06:01 +02:00
retrooper
29fe12ef57
Merge pull request #427 from NoJokeFNA/fix/set-breacon-effect-wrapper
...
[1.19] Fixed WrapperPlayClientSetBeaconEffect
2022-06-16 07:48:53 +02:00
retrooper
5116d62488
Merge pull request #359 from NoJokeFNA/feat/set-recipe-book-state-wrapper
...
Added WrapperPlayClientSetRecipeBookState
2022-06-16 07:47:30 +02:00
retrooper
6387309f01
WrapperPlayClientChatMessage fix message data optional being null.
2022-06-16 07:41:06 +02:00
MWHunter
bb27307e25
Fix via mappings weirdness for modern block mappings
2022-06-15 21:01:37 -05:00
MWHunter
0ad3baeea4
Add mangrove logs to block tags
2022-06-14 23:22:41 -05:00
MWHunter
635d0f2a7c
comment out debug listener
2022-06-14 23:03:20 -05:00
Julian
5f49f63e8f
feat: refactored all Wrappers
...
feat: recoded WrapperPlayServerScoreboardObjective
feat: added little TODO
2022-06-14 03:34:10 +02:00
Julian
45dd54dfb3
change: changed read-/writeEffect to read-/writeOptionalEffect
2022-06-14 03:23:49 +02:00
Julian
bcf35813d8
fixed: fixed WrapperPlayServerEntitySoundEffect and WrapperPlayServerSoundEffect
2022-06-12 04:18:14 +02:00
DefineOutside
327b514216
Merge pull request #431 from NoJokeFNA/feat/new-wrappers
...
[1.19] Added new Chat Preview-/, Server Data-/ and Chat Command Wrappers
2022-06-11 18:24:57 -05:00
Julian
96f67109fe
feat: added new Chat Preview-/, Server Data-/ and Chat Command Wrappers
...
feat: added `$readOptional(S value, Consumer<S> writeValue)` and `$writeOptional(S value, Consumer<S> writeValue)`
2022-06-12 01:19:15 +02:00
terrarier2111
50d42f9fc9
Merge pull request #387 from NoJokeFNA/feat/spawn-weather-entity
...
Added WrapperPlayServerSpawnWeatherEntity
2022-06-11 23:37:45 +02:00
NoJokeFNA
e248a47a1f
feat: added WrapperPlayServerSpawnWeatherEntity
...
feat: added WrapperPlayServerSpawnWeatherEntity
2022-06-11 23:36:18 +02:00
MWHunter
5d3e4bd0f8
Refactor dimension code
2022-06-11 16:14:43 -05:00
MWHunter
3b3f0a84be
Track world height because it is required for world reader
2022-06-11 15:24:26 -05:00
Julian
9b55e982b3
change: improved readability
2022-06-11 21:42:11 +02:00
MWHunter
712f1013f4
mangrove doors are not stairs
2022-06-11 14:41:56 -05:00
Julian
eb4bab70d1
fix: fixed WrapperPlayClientSetBeaconEffect for 1.19
2022-06-11 20:38:46 +02:00
MWHunter
d970c4e020
Fix error writing bytes
2022-06-11 12:07:38 -05:00
MWHunter
825157f998
Fix 1.19 entity effect and player info packet
2022-06-11 11:49:04 -05:00
MWHunter
c41f1797e8
join game readability improvements
2022-06-10 20:38:06 -05:00
MWHunter
f871e71823
Fix respawn packet
2022-06-10 20:36:08 -05:00
MWHunter
a270b515d2
Fix player digging packet on 1.19
2022-06-10 19:38:05 -05:00
MWHunter
b90920e63a
Fix 1.13 entity metadata mappings
2022-06-10 19:22:50 -05:00
retrooper
4def9c7ab1
Fix user sendmessage on 1.19 (use system chat message wrapper packet)
...
Fix WrapperPlayServerRespawn for 1.19.
2022-06-10 21:04:12 +02:00
retrooper
79f102ecc5
Compilation error fix
2022-06-10 20:10:32 +02:00
retrooper
1bdc56d251
Fix WrapperLoginClientLoginStart on 1.19.
2022-06-10 20:07:55 +02:00
retrooper
d1d793f9e7
SpigotDataHelper -> SpigotConversionUtil
...
WrapperPlayServerChatMessage completed,
WrapperPlayServerSystemChatMessage created,
Minor bug fixes to other component wrappers.
2022-06-10 20:00:08 +02:00
MWHunter
1c661f0a5d
Merge remote-tracking branch 'origin/dev/1.19' into 2.0
2022-06-10 00:40:14 -05:00
MWHunter
9db70222c0
Merge branch 'dev/1.19' into 2.0
...
# Conflicts:
# api/src/main/java/com/github/retrooper/packetevents/wrapper/play/server/WrapperPlayServerJoinGame.java
2022-06-10 00:14:39 -05:00
MWHunter
42b16f1fbd
Don't write empty buffers
2022-06-09 21:33:30 -05:00
MWHunter
34d4fac6e8
actually fix 1.19 item type mappings
2022-06-09 20:39:42 -05:00
MWHunter
f63a290d34
minor optimization
2022-06-09 20:38:34 -05:00
MWHunter
68867c135d
Fix item types for 1.19
2022-06-09 20:09:58 -05:00
retrooper
7ae55731fb
Minor changes, but still cant verify messages :c
2022-06-09 20:20:55 +02:00
retrooper
cd24067ce7
Added 1.19 entity poses.
2022-06-09 19:13:58 +02:00
retrooper
3f1f65e4a3
Merge remote-tracking branch 'origin/2.0' into dev/1.19
...
# Conflicts:
# api/src/main/java/com/github/retrooper/packetevents/wrapper/play/server/WrapperPlayServerJoinGame.java
2022-06-09 19:08:45 +02:00
MWHunter
0095487773
Fix swapped blocking and solid on 1.19 blocks
2022-06-08 22:11:54 -05:00
MWHunter
7d2e67b95d
Fix 1.19 entity type mappings
2022-06-08 22:00:54 -05:00
MWHunter
b0db7045f4
Data is a varint in 1.19
2022-06-08 21:47:10 -05:00
MWHunter
bfdab3a518
1.19 spawn entity packet support
2022-06-08 21:10:18 -05:00
MWHunter
fc49c374bf
1.19 join game packet support
2022-06-08 20:58:58 -05:00
MWHunter
4b776ca7bf
Register 1.19 entity data types
2022-06-08 20:38:41 -05:00
MWHunter
0f58efa3cc
Support for 1.19 block data type values
2022-06-08 20:37:21 -05:00
MWHunter
0d3a8e5410
1.19 entity data types
2022-06-08 19:53:54 -05:00
MWHunter
c6d3d72ce9
Add missing MANGROVE_STAIRS state
2022-06-08 19:39:26 -05:00
MWHunter
fc651c65ad
Add support for sequences in existing wrappers, add WrapperPlayServerAcknowledgeBlockChanges
2022-06-08 19:12:51 -05:00
MWHunter
9b86427884
1.19 SpigotReflectionUtil support
2022-06-08 19:03:29 -05:00
retrooper
849713eaea
Unable to verify messages?
2022-06-08 23:54:06 +02:00
retrooper
52db6d7b6a
Working on cryptography additions in 1.19 update for the secure chat system.
...
Debugs enabled and join game needs to be updated for 1.19 support so some parts are commented out.
Chat messages cause problems.
2022-06-08 22:52:39 +02:00
retrooper
0434cd6bf8
Fix packet type mappings for CHAT_MESSAGE.
2022-06-08 17:57:36 +02:00
MWHunter
dbab8591bf
Add bloom to block data types
2022-06-07 21:52:32 -05:00
MWHunter
065649d1df
Try fixing trying to log in
2022-06-07 21:49:31 -05:00
MWHunter
2d2e0cdfeb
Add swift sneak enchantment
2022-06-07 21:46:33 -05:00
MWHunter
c3e8f307b7
Fix 1.19 block mappings
2022-06-07 21:33:15 -05:00
MWHunter
e03f1ef713
Update BlockTags and add a few missing StateTypes
2022-06-07 21:10:31 -05:00
MWHunter
eb4f73b582
ItemTypes and StateTypes variables and data
2022-06-07 20:48:53 -05:00
MWHunter
1609d1c2b0
1.19 entity types mappings
2022-06-07 19:53:45 -05:00
MWHunter
3480620eca
1.19 particle type mappings
2022-06-07 19:42:05 -05:00
MWHunter
e694af304e
Fix enchantment type mappings on 1.19
2022-06-07 19:33:39 -05:00
MWHunter
581c04e66e
1.19 enchantment types
2022-06-07 19:30:51 -05:00
MWHunter
2e737288ef
1.19 wrapped block state
2022-06-07 19:27:55 -05:00
retrooper
18a1d51c19
Fix number format exception when parsing very outdated protocolsupport build versions.
2022-06-07 23:14:45 +02:00
retrooper
db7ec7fe95
Fixed compilation errors.
2022-06-07 23:10:26 +02:00
retrooper
d619546735
Reverting the rename of WrapperPlayServerChatMessage. Fixes for some packet type mappings. CHAT_MESSAGE changed and SYSTEM_MESSAGE is a new packet.
2022-06-07 23:09:08 +02:00
retrooper
b78b449895
1.19 packet id mappings fixed/complete and now used.
2022-06-07 22:59:41 +02:00
retrooper
f53198aec5
Remove duplicate license notice.
2022-06-07 22:46:44 +02:00
retrooper
fa1728210a
Correct packet ids mappings.
2022-06-07 22:44:27 +02:00
retrooper
90674cefc4
Ordinary CHAT_MESSAGE -> SYSTEM_CHAT_MESSAGE. Please use that if you want the ordinary messages that don't have any cryptography. On new versions those are the system message only but they still have no cryptography.
2022-06-07 19:01:48 +02:00
retrooper
24d4a21007
Working on 1.19 support, need to work on wrappers.
2022-06-07 18:30:42 +02:00
retrooper
b4ad4e831d
Minor changes.
2022-06-06 11:49:55 +02:00
retrooper
886d872241
Some cleanup in ProtocolManager
2022-06-06 11:44:46 +02:00
retrooper
0ef01b868e
Allow packet wrappers to truly be reused.
2022-06-06 11:36:24 +02:00
retrooper
46f89771a5
Remove unnecessary async send/receive methods in our API.
2022-06-06 11:34:09 +02:00
MWHunter
055f473964
expose getEnchantmentsTagName
2022-06-05 19:26:30 -05:00
MWHunter
f3850dab24
Fix incomplete client settings copy method
2022-06-05 11:23:10 -05:00
MWHunter
86870c40a5
Fix 1.8 chunk reader exception
2022-06-05 10:58:40 -05:00
MWHunter
dbc33f9fe4
Fix leak with multiple packetevents 2.0 instances
2022-06-05 10:47:52 -05:00
threadexception
1f95fda03c
Cleanup many enums
2022-06-04 11:18:06 +02:00
MWHunter
1724f54b12
Fix https://github.com/retrooper/packetevents/issues/416
2022-06-03 11:43:55 -05:00
threadexception
4b0132ed90
Rewrite SkinSection
2022-06-02 18:19:42 +02:00
retrooper
d219faafd0
Enforce ProtocolSupport 1.18.1-1 or newer.
2022-06-01 21:25:24 +02:00
retrooper
6d19f60049
Add little comment.
2022-06-01 20:38:23 +02:00
retrooper
a8f1b23769
Merge remote-tracking branch 'origin/2.0' into 2.0
2022-06-01 20:33:53 +02:00
retrooper
89cb93be67
Remove paper injector. (Not needed anymore)
...
Injector changes depending on netty version instead of server version.
2022-06-01 20:33:31 +02:00
MWHunter
bfe9aba3a8
PacketEncoder/Decoder -> PacketEventsEncoder/Decoder
2022-05-31 15:52:13 -05:00
MWHunter
5265ddd27c
Remove duplicate Vector3i code
2022-05-31 15:46:39 -05:00
retrooper
5e118f5e17
Remove debugs?
2022-05-31 21:36:19 +02:00
Julian
a522e8262a
Fixed code-style
2022-05-31 21:30:54 +02:00
retrooper
028bfd8ada
Merge pull request #400 from NoJokeFNA/fix/code-style
...
Fixed code-style
2022-05-31 21:16:50 +02:00
NoJokeFNA
d1ba1b8831
remove: removed @Nullable from UUID as it can't be null any longer
2022-05-31 09:18:52 +02:00
NoJokeFNA
2a7c79235d
feat: applied retrooper changes
2022-05-31 09:14:47 +02:00
MWHunter
ebaf94a5ec
expose internal fields in DataPalette
2022-05-30 18:08:44 -05:00
retrooper
5c9b930737
Merge pull request #368 from NoJokeFNA/feat/spawn-experience-orb-wrapper
...
Added WrapperPlayServerSpawnExperienceOrb
2022-05-29 14:10:05 +02:00
retrooper
9483582479
Merge pull request #360 from NoJokeFNA/feat/set-displayed-recipe-wrapper
...
Added WrapperPlayClientSetDisplayedRecipe
2022-05-29 14:08:01 +02:00
retrooper
cd7b23a537
Merge pull request #392 from NoJokeFNA/feat/update-entity-nbt
...
Added WrapperPlayServerUpdateEntityNBT
2022-05-29 14:04:39 +02:00
retrooper
97609976e4
Update README.md
2022-05-29 13:51:03 +02:00
retrooper
4262f1f9cd
More changes to README.
2022-05-29 13:45:18 +02:00
retrooper
eb6237d913
Minor changes to README.
2022-05-29 13:35:12 +02:00
retrooper
fcf2edefe8
Merge pull request #409 from AbhigyaKrishna/2.0
...
Adventure legacy serialization patches
2022-05-29 13:18:20 +02:00
Abhigya
a7a9ef52f0
Adventure Legacy serialization patches
2022-05-29 14:47:23 +05:30
retrooper
d8ad50fcf8
Progress on bungee support.
2022-05-26 14:42:12 +02:00
retrooper
3a974ab51f
Merge pull request #372 from NoJokeFNA/feat/entity-sound-effect-wrapper
...
Added WrapperPlayServerEntitySoundEffect
2022-05-26 11:12:33 +02:00
retrooper
9834830bda
Remove redundant bytebuf import.
2022-05-25 22:18:26 +02:00
retrooper
e673558179
ByteBufHelper.capacity methods added. So people using netty directly just for that can use our api.
2022-05-25 22:16:01 +02:00
retrooper
bd17353576
Merge pull request #401 from NoJokeFNA/feat/select-advancement-tab-wrapper
...
Added WrapperPlayServerSelectAdvancementTab
2022-05-24 21:40:42 +02:00
NoJokeFNA
4f0403d315
remove: removed hasId getter and setter
2022-05-24 19:15:06 +02:00
MWHunter
0232e7b212
Automatically replace minecraft: in getByString
2022-05-24 10:36:15 -05:00
retrooper
68655dd92b
Merge pull request #385 from NoJokeFNA/feat/set-compression-wrapper
...
Added WrapperPlayServerSetCompression
2022-05-24 17:33:25 +02:00
retrooper
28ffd08fbd
Merge pull request #369 from NoJokeFNA/feat/update-view-position-wrapper
...
Added WrapperPlayServerUpdateViewPosition
2022-05-24 17:31:09 +02:00
MWHunter
4b92eb7912
init internal bukkit listener
2022-05-22 22:54:29 -05:00
MWHunter
6f76822785
InternalBukkitListener
2022-05-22 22:54:11 -05:00
MWHunter
165bc85dfa
Revert "Fix memory leak"
...
This reverts commit fdcb42caf2 .
2022-05-22 22:25:46 -05:00
MWHunter
fdcb42caf2
Fix memory leak
2022-05-22 22:09:53 -05:00
NoJokeFNA
7d5fcb22a8
change: changed String to ResourceLocation (identifier)
2022-05-22 14:41:25 +02:00
NoJokeFNA
c2beac9bfa
remove: removed useless version check as it got introduced in 1.14
2022-05-22 14:40:20 +02:00
MWHunter
49344d0f3c
Revert "Make PacketEvents 2.0 see its own existing decoder"
...
This reverts commit 18b6ddca70 .
2022-05-22 05:37:08 -05:00
MWHunter
18b6ddca70
Make PacketEvents 2.0 see its own existing decoder
2022-05-21 20:21:25 -05:00
MWHunter
e901b5dd64
Fix 1.8 chunk reader
2022-05-21 19:49:55 -05:00
MWHunter
bf11a02d44
Remove unnecessary code dealing with removing players
2022-05-21 19:19:06 -05:00
MWHunter
15f0295142
Revert 5bf2daa7
2022-05-21 19:13:43 -05:00
MWHunter
5c665053d2
100 MB -> 1 MB idle memory usage in WrappedBlockState
2022-05-21 18:56:07 -05:00
MWHunter
cddf378b51
Unload file mappings when done initializing classes
2022-05-21 17:14:47 -05:00
DefineOutside
96bfb98c87
Merge pull request #389 from NoJokeFNA/feat/nbt-query-response-wrapper
...
Added WrapperPlayServerNBTQueryResponse
2022-05-21 16:35:52 -05:00
DefineOutside
d0f85d69ab
Merge pull request #363 from NoJokeFNA/feat/update-command-block-wrapper
...
Added WrapperPlayClientUpdateCommandBlock and WrapperPlayClientUpdateCommandBlockMinecart
2022-05-21 16:29:53 -05:00
MWHunter
3374827e66
Fix createUniversalPacketWrapper
2022-05-21 16:08:37 -05:00
MWHunter
96d8fc6d21
Fix rare race condition memory leak
2022-05-21 12:39:40 -05:00
MWHunter
1fd19db0f2
289 KB jar reduction
2022-05-21 10:43:20 -05:00
MWHunter
2ef717cd72
Unflip logic in PlayerManager
2022-05-20 23:10:26 -05:00
MWHunter
1868cee073
Fix memory leak with storing channels
2022-05-20 23:04:29 -05:00
MWHunter
351742e88e
Clean up PlayerManagerImpl, fix memory leak
2022-05-20 22:55:06 -05:00
MWHunter
bd67caaeb8
Prevent memory leak when sending packet to a closed channel
2022-05-20 22:33:06 -05:00
MWHunter
0f39521750
Prevent sending packets that don't exist in a version
2022-05-20 22:32:32 -05:00
MWHunter
7fde4a379a
Vector3d, f, i utility method to add BlockFace
2022-05-20 22:18:47 -05:00
MWHunter
5cc7e6f2bc
Improve WrapperPlayClientClickWindow naming
2022-05-20 22:06:01 -05:00
MWHunter
f2f4a8d62b
Convert ProtocolManager to using UUID's
2022-05-20 21:50:35 -05:00
MWHunter
16f9eb32c9
Lazily allocate packet wrapper buffers, reusable wrappers
2022-05-20 21:38:15 -05:00
NoJokeFNA
3567b7d735
feat: added WrapperPlayServerSelectAdvancementTab
2022-05-20 17:39:39 +02:00
NoJokeFNA
23a181c33a
fix: code-style... gosh
2022-05-20 14:56:39 +02:00
NoJokeFNA
74b6bfca28
fix: fixed WrapperPlayServerSpawnPainting
2022-05-20 14:55:54 +02:00
NoJokeFNA
ef1074e7ba
fix: fixed PaintingType class
2022-05-20 14:53:37 +02:00
NoJokeFNA
b02d7a3df2
Merge branch '2.0' into fix/code-style
...
# Conflicts:
# api/src/main/java/com/github/retrooper/packetevents/protocol/world/PaintingType.java
# api/src/main/java/com/github/retrooper/packetevents/wrapper/play/server/WrapperPlayServerSpawnPainting.java
2022-05-20 14:50:18 +02:00
NoJokeFNA
6c3d6f25ac
fix: code-style
2022-05-20 14:48:32 +02:00
Julian
de4b9887b7
Update WrapperPlayServerUpdateEntityNBT.java
2022-05-20 12:02:53 +02:00
retrooper
b7c9eabf8f
Merge pull request #396 from NoJokeFNA/feat/time-update-wrapper
...
Fixed code-style
2022-05-19 23:00:03 +02:00
NoJokeFNA
ed43c51428
fix: fixed code-style
2022-05-19 19:10:32 +02:00
NoJokeFNA
69bc454cc0
fix: fixed code-style
2022-05-19 19:02:00 +02:00
NoJokeFNA
83b87cf9cb
fix: fixed code-style
2022-05-19 18:59:33 +02:00
MWHunter
0f061764e6
Fix another memory leak
2022-05-19 11:19:26 -05:00
NoJokeFNA
77a6b8152e
fix: fixed code-style
2022-05-19 18:17:39 +02:00
NoJokeFNA
6a5e76512f
fix: fixed code-style
2022-05-19 18:17:06 +02:00
NoJokeFNA
24bad668bd
fix: fixed code-style
2022-05-19 18:11:56 +02:00
MWHunter
a670961b99
Reliably call disconnect event using netty API
2022-05-19 00:14:05 -05:00
retrooper
f3896d3c78
Merge remote-tracking branch 'origin/2.0' into 2.0
2022-05-18 19:45:29 +02:00
retrooper
04e9e57dad
Fixed WrapperPlayServerJoinGame for 1.14.4
2022-05-18 19:45:09 +02:00
MWHunter
2bccff6ae6
Fix player info wrapper
2022-05-15 22:50:53 -05:00
NoJokeFNA
3afa857965
change: correct Optional usage (for now) -> reduce overhead for plain fields
2022-05-15 18:00:05 +02:00
NoJokeFNA
3441da2bd5
change: reformatted code with current code-style
2022-05-15 17:56:23 +02:00
NoJokeFNA
898972d040
change: use MathUtils#floor instead of Math#floor
2022-05-15 17:55:46 +02:00
NoJokeFNA
b0d0f18da2
change: reformatted code with current code-style
2022-05-15 17:54:24 +02:00
NoJokeFNA
1d3a828f55
feat: added WrapperPlayServerUpdateEntityNBT
2022-05-15 16:24:24 +02:00
NoJokeFNA
310bb1ea10
remove: removed $toString as it was only used for debugging
2022-05-15 15:48:09 +02:00
NoJokeFNA
7f8deb280a
feat: added WrapperPlayServerNBTQueryResponse
2022-05-15 15:47:17 +02:00
retrooper
3204527b6f
Paper injector won't be used if ProtocolSupport is on the server.
2022-05-15 13:11:38 +02:00
NoJokeFNA
0354e2b5fc
change: use MathUtils class instead of creating own methods
2022-05-13 20:31:51 +02:00
NoJokeFNA
07dac7c20e
change: code-style
2022-05-13 20:30:07 +02:00
NoJokeFNA
bf09ad27b9
feat: added WrapperPlayServerSetCompression
2022-05-13 20:29:19 +02:00
NoJokeFNA
af3bbb3db8
change: cleaned up WrapperLoginServerSetCompression
2022-05-13 20:29:02 +02:00
retrooper
f520af9250
Few comments.
2022-05-13 17:39:53 +02:00
Julian
df590b7083
Merge branch '2.0' into feat/recipe-wrappers
2022-05-13 17:36:06 +02:00
retrooper
9ec7b8d776
Merge pull request #381 from NoJokeFNA/feat/entity-movement-wrapper
...
Added WrapperPlayServerEntityMovement
2022-05-13 17:34:07 +02:00
retrooper
18580ced5a
Check for updates by default.
2022-05-13 17:32:47 +02:00
retrooper
8dc6b1be29
Add more license notices wherever missing.
2022-05-13 16:36:22 +02:00
retrooper
649839c539
Improve WrapperPlayServerSpawnPainting and bring the type into one form. the old string form is not necessary and complicates the usage of the wrapper.
2022-05-13 16:35:24 +02:00
retrooper
7401b9bbb0
Merge pull request #357 from NoJokeFNA/feat/open-sign-editor-wrapper
...
Added WrapperPlayServerOpenSignEditor
2022-05-12 22:12:10 +02:00
retrooper
068967fd74
Merge pull request #356 from NoJokeFNA/fix/entity-patch
...
Fix SpigotDataHelper#fromBukkitEntityType returning null on modern versions
2022-05-12 22:11:41 +02:00
retrooper
20c07143aa
Merge pull request #366 from NoJokeFNA/feat/camera-wrapper
...
Added WrapperPlayServerCamera
2022-05-12 22:11:16 +02:00
retrooper
fafa6e5191
Merge pull request #367 from NoJokeFNA/feat/spawn-painting-wrapper
...
Added WrapperPlayServerSpawnPainting
2022-05-12 22:10:02 +02:00
retrooper
327a986944
Merge pull request #371 from NoJokeFNA/feat/spawn-position
...
Added WrapperPlayServerSpawnPosition
2022-05-12 22:07:25 +02:00
NoJokeFNA
666cc8f81b
change: hopefully resolve soon merge-conflict
2022-05-12 15:11:46 +02:00
NoJokeFNA
7c81ae2fa4
fix: fixed 1.7.x support
2022-05-12 12:44:45 +02:00
NoJokeFNA
8224019e23
change: code-style
2022-05-12 12:42:01 +02:00
NoJokeFNA
b334d82e76
remove: removed legacy code
2022-05-12 12:24:32 +02:00
NoJokeFNA
e28f416746
fix: fixed 1.7.x support (again)
2022-05-12 12:21:32 +02:00
NoJokeFNA
cd821c3d86
fix: fixed 1.7.x support
2022-05-12 12:19:39 +02:00
NoJokeFNA
42fd096ac3
fix: fixed 1.7.x support
2022-05-12 12:10:46 +02:00
NoJokeFNA
bff4a10355
change: replaced nullabilities with Optionals
2022-05-11 20:57:03 +02:00
NoJokeFNA
bd52a7856d
change: replaced nullabilities with Optionals
2022-05-11 20:54:45 +02:00
NoJokeFNA
01fb89f378
change: changed possible nullabilities to Optionals
2022-05-11 20:40:18 +02:00
NoJokeFNA
4abe76816d
feat: added WrapperPlayServerEntityMovement
2022-05-11 17:06:46 +02:00
NoJokeFNA
e19283e387
remove: removed $toString method as it was only used for debug purposes
2022-05-11 13:42:42 +02:00
NoJokeFNA
03286746a0
remove: removed $toString method as it was only used for debug purposes
2022-05-11 13:42:18 +02:00
NoJokeFNA
e7ce4dddec
feat: added WrapperPlayServerEntitySoundEffect
...
change: improved code by a bit
2022-05-11 02:53:10 +02:00
NoJokeFNA
cd9829bcae
feat: added WrapperPlayServerSpawnPosition
2022-05-11 02:36:50 +02:00
NoJokeFNA
132f8d53a9
remove: removed $toString method as it was only used for debug purposes
2022-05-11 02:05:46 +02:00
NoJokeFNA
abb74ab2cf
feat: added WrapperPlayServerUpdateViewPosition
2022-05-11 02:04:43 +02:00
NoJokeFNA
3d97cd1aa0
feat: added WrapperPlayServerSpawnExperienceOrb
2022-05-11 01:54:27 +02:00
NoJokeFNA
809f712e80
feat: added WrapperPlayServerSpawnPainting, as well as two other classes which might be helpful for the future for other classes
2022-05-11 01:25:12 +02:00
NoJokeFNA
88877c7874
feat: added WrapperPlayServerCamera
2022-05-11 00:44:10 +02:00
DefineOutside
749f17efbe
Merge pull request #362 from NoJokeFNA/fix/missing-constructor-edit-book
...
Missing constructor in WrapperPlayClientEditBook
2022-05-10 17:39:09 -05:00
DefineOutside
3ef1b424b1
Merge pull request #365 from NoJokeFNA/feat/time-update-wrapper
...
Added WrapperPlayServerTimeUpdate
2022-05-10 17:38:40 -05:00
NoJokeFNA
bd0185f825
feat: added WrapperPlayServerTimeUpdate
2022-05-11 00:36:15 +02:00
NoJokeFNA
f86ed401b2
fix: added WrapperPlayClientUpdateCommandBlock and WrapperPlayClientUpdateCommandBlockMinecart
2022-05-10 23:45:55 +02:00
NoJokeFNA
b9d01eb9d8
fix: added missing constructor as it was missing
2022-05-10 22:57:54 +02:00
NoJokeFNA
08a0d108b0
feat: added WrapperPlayClientSetDisplayedRecipe wrapper class
2022-05-10 01:21:52 +02:00
NoJokeFNA
30b3c20c80
feat: added WrapperPlayClientSetRecipeBookState wrapper class
2022-05-10 01:13:16 +02:00
NoJokeFNA
d56885c3f9
feat: added WrapperPlayServerOpenSignEditor wrapper class
2022-05-09 23:47:35 +02:00
NoJokeFNA
822a52b5b8
fix: fixed e.g. SpigotDataHelper.fromBukkitEntityType(EntityType.ZOMBIE) always returning null on modern (1.13.x) server versions
...
Tested Server-Versions: 1.8.8, 1.13, 1.13.2, 1.14, 1.14.4, 1.15.2, 1.18.2
2022-05-09 23:25:48 +02:00
NoJokeFNA
d8eb1d07f2
change: finished changes
2022-05-09 22:38:51 +02:00
NoJokeFNA
34956af6a2
change: removed the listener registration
2022-05-09 22:01:19 +02:00
NoJokeFNA
1f15d0ba20
feat: added WrapperPlayClientCraftRecipeRequest and WrapperPlayServerCraftRecipeResponse wrapper classes
...
With this pull request users can use two new wrappers that work fine - I think there is nothing more to explain.
It was tested with the server versions: 1.8.8, 1.12.2, 1.13, 1.13.2, 1.14.4, 1.15.2, 1.16.5 and 1.18.2
Client-Versions: 1.18.2, 1.16.5, 1.13
2022-05-09 21:54:10 +02:00
MWHunter
c4798df9dc
Fix WrappedBlockState on 1.16.3-1.16.5
2022-05-08 20:47:04 -05:00
retrooper
a1fdc00a01
Remove further debug.
2022-05-08 23:04:37 +02:00
retrooper
d85e7a2b0f
Removed bad compression util (recreating minecraft compression).
...
Removed debugs.
2022-05-08 23:04:00 +02:00
MWHunter
c78727f15f
Heavily optimize WrappedBlockState air
2022-05-08 10:29:45 -05:00
MWHunter
dd1d85e3e4
WrappedBlockState performance improvements
2022-05-08 10:14:49 -05:00
retrooper
e29c907188
Fixed WrapperStatusServerResponse constructor.
2022-05-08 11:45:32 +02:00
retrooper
450aec3191
Add license notice to all wrappers missing it.
2022-05-08 10:40:29 +02:00
MWHunter
c672086b8f
Add getters and setters to the two new wrappers
2022-05-07 11:23:28 -05:00
MWHunter
ae3a3a795d
WrapperPlayClientEditBook
2022-05-07 11:14:02 -05:00
MWHunter
2fa200b347
WrapperPlayServerOpenBook
2022-05-07 11:00:24 -05:00
MWHunter
7d750a42ab
Fix copying over WrapperPlayClientBlockPlacement itemstack
2022-05-05 22:12:35 -05:00
retrooper
f61f93a85d
gramr
2022-04-27 19:50:06 +02:00
retrooper
e0c38b59c1
Little documenting.
2022-04-27 19:19:27 +02:00
retrooper
198034ae67
Fixed post tasks for outgoing packets. They are now executed once the outgoing packet is successfully sent.
2022-04-27 19:17:48 +02:00
MWHunter
10107a14fc
Fix last used wrapper breaking when wrappers are used more than 2 times
2022-04-24 17:27:15 -05:00
retrooper
0e18040bee
Fixed sending packets while ProtocolSupport is present.
2022-04-24 23:19:29 +02:00
retrooper
ab92d8bdd3
Fixed ProtocolSupport support
2022-04-24 23:00:22 +02:00
retrooper
6bf70f5b47
Fixed reloads on modern paper versions.
2022-04-24 22:56:16 +02:00
MWHunter
59dfa9fabb
world border centerY -> centerZ
2022-04-22 20:07:49 -05:00
MWHunter
f4a48d5326
Let world border packet be read
2022-04-22 20:02:41 -05:00
MWHunter
af5f0d9f85
add getDiameter() and setDiameter() to world border size packet
2022-04-22 20:00:45 -05:00
retrooper
ab6fa602cc
Update README.md
2022-04-22 22:24:44 +02:00
retrooper
a15b0c7cc8
Updated licensing logo
2022-04-22 22:24:20 +02:00
MWHunter
86bffa503c
remove debug
2022-04-20 18:15:13 -05:00
MWHunter
511b331735
Play with the injector
2022-04-20 18:03:51 -05:00
MWHunter
78d101dd80
Fix ViaVersionUtil exception
2022-04-20 17:35:23 -05:00
MWHunter
70dc93cd09
Add PacketHandshakeSendEvent to fix null event
2022-04-19 21:44:23 -05:00
MWHunter
fed8b95199
Fix early injection on 1.8, fix ViaVersionUtil returning wrong value
2022-04-19 18:43:51 -05:00
retrooper
e8d8fb5af8
Merge remote-tracking branch 'origin/2.0' into 2.0
2022-04-19 22:56:34 +02:00
retrooper
d98038ecf7
Renamings in AdventureSerializer and PacketWrapper#readComponent works properly again.
2022-04-19 22:54:43 +02:00
MWHunter
5ea3713a22
Revert component change
2022-04-19 15:26:06 -05:00
retrooper
0d4cc8a505
Attempt to bug fix REMOVE_LISTENER_METHOD in paper injector (when cleaning up)
2022-04-19 21:03:59 +02:00
MWHunter
9d0dc9f06d
Fix leash always being true
2022-04-18 13:45:23 -05:00
retrooper
261b89792b
Confirmed that NPC api works on 1.8.
2022-04-18 20:08:26 +02:00
retrooper
089f0b0e18
Improved error message when using 4.8.0 ProtocolLib
2022-04-18 19:45:50 +02:00
retrooper
53e7fbed0e
User#getName & User#getUUID methods, which internally access the profile. It just makes things easier.
2022-04-18 19:34:19 +02:00
retrooper
988d118478
Throw an exception when you try to load PacketEvents with a ProtocolLib version older than 5.0.0
2022-04-18 19:28:05 +02:00
MWHunter
df7be9b51f
Parse adventure, not component.
2022-04-17 22:56:29 -05:00
MWHunter
dead95adad
Fix netherite pickaxe not being considered a pickaxe
2022-04-17 21:30:00 -05:00
MWHunter
d69ad9ef9a
Include mappingsIndex in WrappedBlockState constructor
2022-04-17 20:58:10 -05:00
retrooper
b65bbb03a8
Some more changes.
2022-04-17 22:40:38 +02:00
retrooper
83d3ca01fe
Removed some non-existing pages and shifted some things around.
2022-04-17 22:39:35 +02:00
retrooper
e7732b03f8
Redundant changes
2022-04-17 22:38:04 +02:00
retrooper
b742335ffb
Little PacketWrapper code optimization
2022-04-17 16:12:38 +02:00
retrooper
262a17659b
Merge pull request #331 from AbhigyaKrishna/2.0
...
Title fix for Open Window Packet
2022-04-17 11:24:53 +02:00
DefineOutside
191e24398a
Merge pull request #332 from Jaren8r/2.0
...
Add .with[XYZ] to vectors
2022-04-17 00:29:01 -05:00
Jaren Knodel
ae2a23f0aa
Add .with[XYZ] to vectors
2022-04-16 11:32:08 -04:00
Abhigya
59944eadf4
Title fix for Open Window Packet
2022-04-16 12:36:28 +05:30
retrooper
5208b090dd
Merge pull request #329 from Jaren8r/2.0
...
Make vectors immutable
2022-04-15 17:26:55 +02:00
Jaren Knodel
c14b18d24e
Fix build
2022-04-15 10:52:58 -04:00
Jaren Knodel
01e2e6a19d
Make vectors immutable
2022-04-15 10:45:31 -04:00
retrooper
71ca117931
Completing the vector change
...
Improve vectors (pt. 2)
2022-04-15 14:36:00 +02:00
Jaren Knodel
bee7fef71a
dot
2022-04-15 03:50:57 -04:00
Jaren Knodel
24b8105dcb
crossProduct
2022-04-15 03:44:55 -04:00
retrooper
a01e066dae
Merge pull request #327 from Jaren8r/2.0
...
Multiply function to vectors
2022-04-15 09:43:19 +02:00
Jaren Knodel
e93f94f87c
Add multiple(value) to multiple everything by it
2022-04-15 03:35:43 -04:00
Jaren Knodel
eb052cca32
Make setXYZ return itself to remain consistant with add/subtract/multiply
2022-04-15 03:28:49 -04:00
Jaren Knodel
b4c1b8c954
Add multiply to vectors
2022-04-15 03:17:03 -04:00
MWHunter
5d1b6a7d2a
Cache toClientVersion() and toServerVersion()
2022-04-14 22:02:21 -05:00
MWHunter
12bd685fe7
Rework ItemStack constructor and fix enchantment tags for books
2022-04-14 21:45:54 -05:00
retrooper
3616a18286
Minor change
2022-04-14 23:30:07 +02:00
retrooper
db6b3489de
Merge pull request #319 from Jaren8r/2.0
...
Don't clone on vector add/subtract (Changed usage of vectors)
2022-04-14 21:06:03 +02:00
MWHunter
049f5f4123
Fix enchantments on pre-1.13
2022-04-14 00:05:22 -05:00
MWHunter
b553f29b71
IdentityHashMap -> HashMap
2022-04-13 18:08:08 -05:00
MWHunter
ea6e8ee74e
Remove client version cache temporarily due to a memory leak
2022-04-13 13:32:30 -05:00
MWHunter
6559603147
Server response is Json not component
2022-04-12 16:04:35 -05:00
MWHunter
ab8839c07f
WrapperPlayServerOpenWindow optimization and WrapperStatusServerResponse refactor
2022-04-12 16:01:52 -05:00
MWHunter
2c83f6e5a5
Fix spawn player packet attempt 2
2022-04-11 23:37:33 -05:00
MWHunter
fa4a4a0ca0
Revert previous commit
2022-04-11 23:35:52 -05:00
MWHunter
e9f0e1d7af
Fix WrapperPlayServerSpawnPlayer
2022-04-11 23:26:29 -05:00
Jaren Knodel
c9cf4f8c9b
Don't clone on vector add/subtract
2022-04-11 19:28:12 -04:00
DefineOutside
89e20ef82a
Merge pull request #315 from FairyProject/2.0
...
Fixed WrapperPlayServerScoreboardObjective again
2022-04-11 13:28:45 -05:00
MWHunter
bab579f6f9
Convert item type mappings to be more consistent with other mappings
2022-04-11 12:40:15 -05:00
MWHunter
e26b1dac22
Try fixing writing air itemstacks on 1.13.2+
2022-04-11 12:08:16 -05:00
LeeGod
23d9c77305
Fixed WrapperPlayServerScoreboardObjective again
2022-04-11 19:17:55 +07:00
retrooper
8e49b4b400
Minor change.
2022-04-11 12:15:04 +02:00
retrooper
e434e5df76
Little comment added.
2022-04-08 23:29:48 +02:00
retrooper
f9136dbf42
All 1.7.10 injector/nms code removed.
...
PacketEventsSettings#fallbackVersion removed
Added an injector specific for paper, which should be more efficient on their platform and adds NachoSpigot support.
Some refactoring/renaming in our spigot injector
2022-04-08 23:28:35 +02:00
retrooper
f144f66e88
Merge branch 'version-dynamic' into 2.0
...
# Conflicts:
# api/src/main/java/com/github/retrooper/packetevents/protocol/item/ItemStack.java
# api/src/main/java/com/github/retrooper/packetevents/protocol/item/type/ItemTypes.java
# api/src/main/java/com/github/retrooper/packetevents/wrapper/play/server/WrapperPlayServerScoreboardObjective.java
2022-04-07 23:00:53 +02:00
DefineOutside
ab37570e9b
Merge pull request #311 from FairyProject/bugfix/teams
...
Teams packet wrapper team name read/write with 16 max characters
2022-04-07 11:39:48 -05:00
LeeGod
7a61bb6cdc
Teams packet wrapper team name read/write with 16 max characters
2022-04-07 23:08:48 +07:00
DefineOutside
5cf920c78e
Merge pull request #310 from FairyProject/bugfix/objective
...
Fixed incorrect HealthDisplay data in ScoreboardObjective wrapper
2022-04-07 10:45:23 -05:00
LeeGod
f1a5ca14bc
Fixed incorrect HealthDisplay data in ScoreboardObjective wrapper
2022-04-07 20:07:27 +07:00
MWHunter
e08e4645b1
Fix 1.8-1.12 entity type mappings
2022-04-03 19:15:21 -05:00
MWHunter
1452b65879
Fix PacketEvents adding NBT to items, causing desync
2022-04-03 18:45:03 -05:00
MWHunter
85cb8a72ca
Fix using 1.16 instead of 1.16.2 item type mappings
2022-04-03 11:00:34 -05:00