0
0
mirror of https://github.com/pmmp/BedrockProtocol.git synced 2025-07-24 21:42:37 +00:00

Commit Graph

  • 5f600ce446 Fix disconnect messages not showing to the client (#19) 5.1.2+bedrock-1.17.40 Dries C 2021-11-10 14:53:03 +01:00
  • 5abbe5bc21 Make PhpStorm styles consistent with php-cs-fixer 5.1.1+bedrock-1.17.40 5.1.0+bedrock-1.17.40 Dylan K. Taylor 2021-11-08 16:26:25 +00:00
  • 7f533e3702 Private fields with getters Dylan K. Taylor 2021-11-08 16:25:00 +00:00
  • b4cb0a07e8 Avoid conditionally useless fields in PlayerBlockActions Dylan K. Taylor 2021-11-08 16:21:04 +00:00
  • 4ac51e1e0e ayyy, the build actually failed this time Dylan K. Taylor 2021-11-08 16:20:18 +00:00
  • 98246c3b55 blockPos -> blockPosition Dylan K. Taylor 2021-11-08 16:01:09 +00:00
  • e2111f8a38 Merge branch 'master' of github.com:pmmp/BedrockProtocol Dylan K. Taylor 2021-11-08 16:00:12 +00:00
  • a29a809d50 Fixed inconsistent mess in new PlayerAuthInput classes Dylan K. Taylor 2021-11-08 16:00:00 +00:00
  • bd084d9eda Fixed PHP-CS-Fixer build step being useless Dylan T 2021-11-08 15:23:03 +00:00
  • 7a0f54c147 fixed missing headers from #13 Dylan K. Taylor 2021-11-08 15:21:16 +00:00
  • e777b5f199 Change header comment style so we can use PHP-CS-Fixer to enforce its consistency Dylan K. Taylor 2021-11-08 15:20:06 +00:00
  • 5c549dbdb2 Merge branch 'master' of github.com:pmmp/BedrockProtocol Dylan K. Taylor 2021-11-08 15:01:35 +00:00
  • 8d82e311e8 PacketSerializer: workaround stupid protocol bug for NetworkBlockPosition they use a non-zigzag varint for Y, but it needs to be signed in 1.18. So, it wastes 5 bytes in negative coordinates, and we need to manually put the sign bit back on it. Dylan K. Taylor 2021-11-08 14:59:53 +00:00
  • cd9092ba21 Update phpstan/phpstan requirement from 1.0.2 to 1.1.1 (#16) dependabot[bot] 2021-11-08 13:36:29 +00:00
  • 0d8773100c and three more Dylan K. Taylor 2021-11-07 23:30:00 +00:00
  • 7afb8ac471 Merge branch 'master' of github.com:pmmp/BedrockProtocol Dylan K. Taylor 2021-11-07 23:29:36 +00:00
  • 5cb9b06362 fixing EOF newlines Dylan K. Taylor 2021-11-07 23:29:23 +00:00
  • 514dfc3363 PlayerAuthInput protocol updates (#13) Hashim 2021-11-07 18:19:44 -05:00
  • a81ff4df40 Update phpstan/phpstan requirement from 1.0.1 to 1.0.2 (#15) dependabot[bot] 2021-11-04 13:41:35 +00:00
  • 05c026e2d4 Update phpstan/phpstan requirement from 1.0.0 to 1.0.1 (#14) dependabot[bot] 2021-11-03 11:27:30 +00:00
  • 67c0c15b40 Use CacheableNbt everywhere we deal with CompoundTags 5.0.0+bedrock-1.17.40 Dylan K. Taylor 2021-11-02 01:27:05 +00:00
  • 711248d33a Consistently use CacheableNbt in packets Dylan K. Taylor 2021-11-02 01:17:21 +00:00
  • 91c18742c2 NetworkStackLatencyPacket: added ::create() Dylan K. Taylor 2021-11-02 00:58:37 +00:00
  • 754648e7e1 Added ::create() to legacy LevelSoundEventPackets, for the sake of completeness Dylan K. Taylor 2021-11-02 00:58:20 +00:00
  • 6e278852af MobEffectPacket: added ::create() Dylan K. Taylor 2021-11-02 00:57:57 +00:00
  • 1b3ac4c204 DisconnectPacket: use nullable message field to signal hideDisconnectionScreen, instead of conditionally useless field Dylan K. Taylor 2021-11-02 00:55:21 +00:00
  • b21aff01ce LevelSoundEvent: assign NULL to usedBlobHashes if cache is not used this avoids conditionally useless fields and allows to standardise the named constructor. Dylan K. Taylor 2021-11-02 00:49:55 +00:00
  • a3c38377bd UpdateTradePacket: change incorrect field name Dylan K. Taylor 2021-11-02 00:35:12 +00:00
  • a94860e627 UpdateTradePacket: remove useless TODO comment Dylan K. Taylor 2021-11-02 00:32:58 +00:00
  • 1e57eb6a7b added .php-cs-fixer.cache to gitignore Dylan K. Taylor 2021-11-01 23:23:42 +00:00
  • 0e2a97cc4b Check CS Dylan K. Taylor 2021-11-01 23:22:43 +00:00
  • a8145dc2f0 ClientboundMapItemDataPacket: clean up preprocessor leftover Dylan K. Taylor 2021-11-01 23:19:20 +00:00
  • c76e31fc94 PHPStan 1.0, green on level 9 with no changes!? Dylan K. Taylor 2021-11-01 18:59:33 +00:00
  • 146498c279 Get rid of UnknownPacket Dylan K. Taylor 2021-11-01 15:46:55 +00:00
  • c8d891b4df Accept pocketmine/math 0.4.0 remains compatible without changes Dylan K. Taylor 2021-10-29 21:54:42 +01:00
  • 49e929d3a7 ContainerOpenPacket: fixed entityInv() passing windowType instead of windowId fixes pmmp/PocketMine-MP#4521 Dylan K. Taylor 2021-10-29 00:13:59 +01:00
  • 58c53a259e MovePlayerPacket: added create() and simple() Dylan K. Taylor 2021-10-27 20:49:20 +01:00
  • ebc70ff975 AddPlayerPacket::headYaw no longer accepts null Dylan K. Taylor 2021-10-27 20:27:04 +01:00
  • 35814082cb Add(Actor|ItemActor|Painting|Player)Packets no longer accept null for actorUniqueId Dylan K. Taylor 2021-10-27 17:40:35 +01:00
  • 1412c14826 added some more ::create() Dylan K. Taylor 2021-10-27 17:01:49 +01:00
  • a3c8a845c9 ContainerOpenPacket: added private ::create() Dylan K. Taylor 2021-10-27 15:48:44 +01:00
  • 5285dde125 PlayerActionPacket: move action constants to their own class Dylan K. Taylor 2021-10-23 16:18:49 +01:00
  • 34474d7213 LevelEventPacket: Move EVENT constants to their own class Dylan K. Taylor 2021-10-23 16:16:08 +01:00
  • c9edf8f3a5 ActorEventPacket: move type constants to their own class for easier generation Dylan K. Taylor 2021-10-23 16:15:06 +01:00
  • ffbdd35852 Move LevelSoundEvent ID constants to their own class this makes it easier to generate, as well as allowing a shorter syntax for creating packets. Dylan K. Taylor 2021-10-23 15:33:55 +01:00
  • 83a3db0289 LevelSoundEvent::position is no longer nullable Dylan K. Taylor 2021-10-23 02:03:32 +01:00
  • 97fa88e9ef LevelSoundEvent: added nonActorSound() static method Dylan K. Taylor 2021-10-23 01:06:46 +01:00
  • 2a8a4f9f28 Generate ::create() functions for (almost) all packets some packets can't be generated this way (e.g. TextPacket, BossEventPacket) due to fields being conditionally required/not required depending on other fields. However, the vast majority of packets are straightforward, simple animals (although some are very large, like StartGamePacket). Dylan K. Taylor 2021-10-22 23:24:28 +01:00
  • 67ca08e9a7 LevelSoundEventPacket: use the standard method for nullable vector3 Dylan K. Taylor 2021-10-22 22:57:19 +01:00
  • d66f2ea889 LevelSoundEventPacket: move field declarations Dylan K. Taylor 2021-10-22 22:55:58 +01:00
  • bb6c9a4d9c More field renames pt.2 Dylan K. Taylor 2021-10-22 22:44:52 +01:00
  • c1c4d1ef4e More field renames Dylan K. Taylor 2021-10-22 22:40:06 +01:00
  • 2b6c0bcd47 ContainerOpenPacket: rename field Dylan K. Taylor 2021-10-22 22:33:51 +01:00
  • 60e99a6620 CameraPacket: rename fields Dylan K. Taylor 2021-10-22 22:30:31 +01:00
  • 71196dd116 BlockActorDataPacket: rename field Dylan K. Taylor 2021-10-22 22:29:45 +01:00
  • 085b83b6b0 BiomeDefinitionListPacket: rename field Dylan K. Taylor 2021-10-22 22:28:53 +01:00
  • e8ca9649a1 AdventureSettingsPacket: rename field Dylan K. Taylor 2021-10-22 22:26:16 +01:00
  • 05f197fb3b ActorEventPacket: rename fields Dylan K. Taylor 2021-10-22 22:24:51 +01:00
  • 99cf1095f5 LevelSettings: fixed NPE Dylan K. Taylor 2021-10-22 21:45:55 +01:00
  • 68ffdec514 Extract LevelSettings from StartGamePacket this makes StartGame much less of a monstrosity - now LevelSettings is the monstrosity instead :D Dylan K. Taylor 2021-10-22 21:40:53 +01:00
  • 23c63f7598 AdventureSettingsPacket: added ::create() Dylan K. Taylor 2021-10-22 14:47:53 +01:00
  • ffe3787cb5 Properly deal with AdventureSettingsPacket stuff in AddPlayerPacket Dylan K. Taylor 2021-10-22 13:51:10 +01:00
  • 74f7f75dd5 Rename field of SetSpawnPositionPacket Dylan K. Taylor 2021-10-22 13:05:49 +01:00
  • 0a248d4b0f Fixed merge error introduced by fbd701bae8 Dylan K. Taylor 2021-10-22 02:25:59 +01:00
  • e619069af4 MoveActorAbsolute/Delta: give rotation fields more appropriate and consistent names Dylan K. Taylor 2021-10-22 02:22:51 +01:00
  • 7beb3e3f25 Consistently use ActorUniqueID/ActorRuntimeID terminology in some places we had 'eid' (legacy from pre-0.16) and in other places we had stuff like playerEid, bossEid (legacy from my very early days developing PM). This whole thing is one gigantic inconsistent mess. Especially when considering that we already did the whole entity -> actor rename for packets years ago, this refactor was long overdue. Dylan K. Taylor 2021-10-22 01:42:17 +01:00
  • c2766246f1 ClientboundMapItemDataPacket: rename previously-unknown field Dylan K. Taylor 2021-10-22 01:07:15 +01:00
  • e0334e10a7 ClientboundMapItemDataPacket: added BITFLAG_MAP_CREATION Dylan K. Taylor 2021-10-22 01:02:48 +01:00
  • 5476b698be Resolve some leftover TODOs from PM3 Dylan K. Taylor 2021-10-22 00:39:37 +01:00
  • f9f270bb1c PacketSerializer: rename get/putByteRotation() to get/putRotationByte() this is less annoying in auto complete. Dylan K. Taylor 2021-10-22 00:38:21 +01:00
  • 93466762a6 Consistently use 'position' and not 'pos' for naming Dylan K. Taylor 2021-10-22 00:28:31 +01:00
  • 26f6db0b73 Replace x/y/z integer fields with BlockPosition this is long overdue, and also the reference stuff broke with typed properties, so this was less work than duct taping all that shit back together. This is obviously massively BC breaking, but I don't really care. Dylan K. Taylor 2021-10-22 00:17:07 +01:00
  • e584b0a7c4 Fixed some unspecified null defaults 4.0.1+bedrock-1.17.40 Dylan K. Taylor 2021-10-21 22:46:31 +01:00
  • 7d7e536bc6 Rename unknown field in MineBlockStackRequestAction 4.0.0+bedrock-1.17.40 Dylan K. Taylor 2021-10-21 17:23:53 +01:00
  • 8d8426af12 Second pass adding typed properties Dylan K. Taylor 2021-10-21 17:13:44 +01:00
  • 6ab04c0ddd First pass mass adding typed properties to packets we really need this to make sure plugins get correctly blamed for putting incorrect stuff in packets. Dylan K. Taylor 2021-10-21 16:27:59 +01:00
  • 3edb21da78 Fixed missing repetitions field of CraftRecipeAuto closes #11 3.0.2+bedrock-1.17.40 Dylan K. Taylor 2021-10-20 19:52:14 +01:00
  • 1add11e063 Remove unused PHPStan type aliases these were left over after the separation from PM core. 3.0.1+bedrock-1.17.40 Dylan K. Taylor 2021-10-20 15:00:00 +01:00
  • 86fac22c27 DataPacket: throw PacketDecodeException on bad IDs this only happens if the packet was explicitly constructed instead of using PacketPool. Dylan K. Taylor 2021-10-20 14:52:45 +01:00
  • 31bf6bc0e6 ClientboundDebugRendererPacket: throw the correct exception type during decoding Dylan K. Taylor 2021-10-20 14:52:09 +01:00
  • 0c3cfdc949 AvailableCommandsPacket: removed dead code Dylan K. Taylor 2021-10-20 14:51:20 +01:00
  • 9301de3f3c ItemStackRequest: throw the proper exception type for unknown action type IDs Dylan K. Taylor 2021-10-20 14:13:01 +01:00
  • ea9e22563b Protocol changes for 1.17.40 bedrock-1.17.40 3.0.0+bedrock-1.17.40 Dylan K. Taylor 2021-10-19 18:28:41 +01:00
  • 3574df56b3 Drop PHP 7.4 support Dylan K. Taylor 2021-10-18 17:12:06 +01:00
  • faff7da904 Protocol changes for 1.17.30 bedrock-1.17.30 2.0.0+bedrock-1.17.30 Dylan K. Taylor 2021-09-22 00:25:51 +01:00
  • 5f76011363 Update phpstan/phpstan requirement from 0.12.96 to 0.12.99 (#10) dependabot[bot] 2021-09-20 20:51:43 +01:00
  • 9250ef96eb Added auto-generated default packet handler implementations trait bedrock-1.17.10 1.1.0+bedrock-1.17.10 Dylan K. Taylor 2021-09-15 22:19:15 +01:00
  • 2e3bba545d Update phpstan/phpstan requirement from 0.12.94 to 0.12.96 (#6) 1.0.0+bedrock1.17.10 1.0.0+bedrock-1.17.10 dependabot[bot] 2021-08-23 15:30:22 +01:00
  • 92a50e865d Added constants for recipe block type tags Dylan K. Taylor 2021-08-11 17:11:04 +01:00
  • 0eb300c249 Update phpstan/phpstan requirement from 0.12.93 to 0.12.94 (#5) dependabot[bot] 2021-07-30 17:12:27 +01:00
  • ceb4cc3635 Fix #3 (Remove COLOUR alias) (#4) XenialDan 2021-07-24 00:10:41 +02:00
  • e798fd828a Replicate pmmp/PocketMine-MP@5844b59b12 Dylan K. Taylor 2021-07-23 12:56:38 +01:00
  • e603daeaf8 Update phpstan/phpstan requirement from 0.12.92 to 0.12.93 (#2) dependabot[bot] 2021-07-21 17:32:42 +01:00
  • ce37ab6dc7 ClientboundMapItemDataPacket: remove useless fields Dylan K. Taylor 2021-07-15 19:54:46 +01:00
  • c096a5ac59 Added MapImage type to allow caching and reusing byte buffers for colour encoding Dylan K. Taylor 2021-07-15 19:50:21 +01:00
  • 6d898412f7 Remove unnecessary subdirectories Dylan K. Taylor 2021-07-14 21:11:15 +01:00
  • 4c01f8e883 Replicate pmmp/PocketMine-MP@68699dbff9 Dylan K. Taylor 2021-07-14 21:09:27 +01:00
  • 88ae308a03 Drop pocketmine/spl dependency Dylan K. Taylor 2021-07-14 20:29:34 +01:00
  • 6b198316ba Require the correct version of pocketmine/math Dylan K. Taylor 2021-07-14 20:15:18 +01:00
  • c1494e791a include phpstorm code style settings Dylan K. Taylor 2021-07-14 16:15:32 +01:00