0
0
mirror of https://github.com/pmmp/BedrockProtocol.git synced 2025-02-22 16:56:22 +00:00

Commit Graph

  • 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 fbd701bae86eded8a9953118c425e1777220a53b 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
  • 1b03a12bad Update phpstan/phpstan requirement from 0.12.96 to 0.12.99 dependabot[bot] 2021-09-13 10:19:09 +00:00
  • 1821b0b9e9 Update phpstan/phpstan requirement from 0.12.96 to 0.12.98 dependabot[bot] 2021-09-03 10:18:28 +00:00
  • cbefc8b5bb Update phpstan/phpstan requirement from 0.12.96 to 0.12.97 dependabot[bot] 2021-09-02 10:17:12 +00:00
  • fefb16d4d4 Update ClientData.php Sensei Tarzan 2021-08-28 20:24:17 +02:00
  • 4c456d171f oops Sensei Tarzan 2021-08-28 20:19:23 +02:00
  • fb1232b0bb Add Support WaterdogPE Sensei Tarzan 2021-08-28 19:56:16 +02: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
  • 0a0fa022dd Update phpstan/phpstan requirement from 0.12.94 to 0.12.96 dependabot[bot] 2021-08-23 10:16:27 +00: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
  • 88bc3557ea Update phpstan/phpstan requirement from 0.12.93 to 0.12.94 dependabot[bot] 2021-07-30 10:19:48 +00: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
  • 3def6238a8 Fix #3 (Remove COLOUR alias) XenialDan 2021-07-22 15:19:46 +02: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
  • 0cff11ca9d Update phpstan/phpstan requirement from 0.12.92 to 0.12.93 dependabot[bot] 2021-07-21 10:20:47 +00: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
  • 2b674fbb03 Merge branch 'master' of github.com:pmmp/BedrockProtocol Dylan K. Taylor 2021-07-14 16:09:51 +01:00
  • a4c0050927 Fixup PHPUnit tests to run without PM Dylan K. Taylor 2021-07-14 16:08:44 +01:00
  • 8af5274e88 Merge remote-tracking branch 'local-tests/master' Dylan K. Taylor 2021-07-14 16:00:59 +01:00
  • 1544abc263 Update phpstan/phpstan requirement from 0.12.91 to 0.12.92 (#1) dependabot[bot] 2021-07-14 15:54:58 +01:00
  • 106efc7e06 Update phpstan/phpstan requirement from 0.12.91 to 0.12.92 dependabot[bot] 2021-07-14 14:52:59 +00:00
  • 04bbe060fb Added dependabot configuration Dylan K. Taylor 2021-07-14 15:52:09 +01:00
  • 85e9fccca5 Update README.md Dylan T 2021-07-14 15:50:51 +01:00
  • 314aa0ce72 make phpstan green Dylan K. Taylor 2021-07-14 15:49:27 +01:00
  • 908b28fd53 Merge branch 'master' of github.com:pmmp/BedrockProtocol Dylan K. Taylor 2021-07-14 15:40:36 +01:00
  • c7dbbb6c60 require php ^7.4 || ^8.0 Dylan K. Taylor 2021-07-14 15:40:25 +01:00
  • 7b4d37b40e remove composer.lock Dylan K. Taylor 2021-07-14 15:40:06 +01:00
  • 859aeb7656 Added GitHub Actions configuration Dylan K. Taylor 2021-07-14 15:38:23 +01:00
  • 210d29e78c Create README.md Dylan T 2021-07-14 15:34:15 +01:00
  • 1d45da5ba4 Reflect pmmp/PocketMine-MP@9f11be25cb Dylan K. Taylor 2021-07-14 15:24:50 +01:00
  • eed9432aed new repo who dis Dylan K. Taylor 2021-07-14 15:23:03 +01:00
  • 8c72b49dfd ClientDataToSkinDataHelper: Remove SingletonTrait SingletonTrait is pointless here for multiple reasons: 1) the class is final 2) this is protocol-specific translation of types, no loss of data or alternative mutation of it needs to occur Dylan K. Taylor 2021-07-14 14:50:59 +01:00
  • 3324268ad8 Deglobalize ItemTypeDictionary usage, at least for the protocol while this is a bit hacky outside of the protocol namespace, it makes it much easier to use the protocol library for alternative purposes, such as for a client or MITM proxy. It also removes all but one remaining core dependency of the protocol library, making it very close to being able to be separated from the server core entirely. Dylan K. Taylor 2021-07-14 14:26:32 +01:00
  • b48e2fd4bc Deglobalize ItemTypeDictionary usage, at least for the protocol while this is a bit hacky outside of the protocol namespace, it makes it much easier to use the protocol library for alternative purposes, such as for a client or MITM proxy. It also removes all but one remaining core dependency of the protocol library, making it very close to being able to be separated from the server core entirely. Dylan K. Taylor 2021-07-14 14:26:32 +01:00
  • c4578f210a Fixed CS Dylan K. Taylor 2021-07-13 18:16:25 +01:00
  • b2b7db8f04 Merge branch 'pm3-bedrock-1.17.10' into pm4-bedrock-1.17.10 Dylan K. Taylor 2021-07-13 18:02:29 +01:00
  • 36ff140589 Merge branch 'pm3-bedrock-1.17.10' into pm4-bedrock-1.17.10 Dylan K. Taylor 2021-07-09 20:02:30 +01:00
  • 1eb2619d7e Merge branch 'stable' bedrock-1.17.0 Dylan K. Taylor 2021-06-08 20:00:08 +01:00
  • f5aa53117f Merge remote-tracking branch 'origin/stable' bedrock-1.16.220 Dylan K. Taylor 2021-06-04 18:03:32 +01:00
  • 98ad367d5d PacketSerializer: fix unnecessary FQN Dylan K. Taylor 2021-05-29 14:24:48 +01:00
  • 44e4570183 Separate ItemTypeDictionary implementation from initialization we're not going to want implementation details like how it's setup getting in the way when we separate protocol from the core. Dylan K. Taylor 2021-05-29 14:24:05 +01:00
  • fae59aa56b Merge remote-tracking branch 'origin/stable' Dylan K. Taylor 2021-05-05 11:14:01 +01:00
  • 6be170e913 Remove GarbageServerboundPacket it's not the protocol implementation's job to decide what's garbage. It should only indicate that a packet MAY be sent by the client. It should then be up to the handler to decide what to do with it. Dylan K. Taylor 2021-04-19 01:07:21 +01:00
  • 6924f5da53 Silence LevelSoundEventPacket noise Dylan K. Taylor 2021-04-19 01:02:22 +01:00
  • 6233e7634f Merge branch 'stable' Dylan K. Taylor 2021-04-16 18:26:33 +01:00
  • debd302817 PacketSerializer: fix merge error Dylan K. Taylor 2021-04-11 16:49:57 +01:00