0
0
mirror of https://github.com/pmmp/BedrockProtocol.git synced 2025-07-22 09:09:23 +00:00

Commit Graph

  • 3795b9e8a7 Eliminate usages of BinaryStream->setBuffer() and BinaryStream->reset() Dylan K. Taylor 2020-06-17 13:49:43 +01:00
  • 25554bc76c Rename Packet->getBinaryStream() -> Packet->getSerializer() Dylan K. Taylor 2020-06-17 11:33:59 +01:00
  • 782390d15d Rename Packet->getBinaryStream() -> Packet->getSerializer() Dylan K. Taylor 2020-06-17 11:33:59 +01:00
  • 95931a9b38 Rename NetworkBinaryStream -> PacketSerializer Dylan K. Taylor 2020-06-17 11:31:13 +01:00
  • b0ac6e0a09 Rename NetworkBinaryStream -> PacketSerializer Dylan K. Taylor 2020-06-17 11:31:13 +01:00
  • 6138617575 protocol: added a FixedItemIds class (this is fully auto-generated, unlike the one provided by the API) this may be different from the IDs exposed on the API and shouldn't be used for anything outside the protocol. Dylan K. Taylor 2020-06-17 11:06:26 +01:00
  • 32082298ad Merge commit 'fcc9e62c6' Dylan K. Taylor 2020-06-13 11:49:52 +01:00
  • 6d3da0643b Merge commit '5056754ce' Dylan K. Taylor 2020-06-03 12:54:00 +01:00
  • 65bed70017 Merge branch 'next-minor' Dylan K. Taylor 2020-05-20 20:22:18 +01:00
  • c1ee7e8507 Merge commit 'a29424f5b' Dylan K. Taylor 2020-05-20 20:21:29 +01:00
  • d58677dbe6 Merge commit '3a7873598' Dylan K. Taylor 2020-05-20 20:19:42 +01:00
  • 74c4bcedbb Merge commit 'ab32784c7' Dylan K. Taylor 2020-05-20 20:18:57 +01:00
  • 80f2f361c4 Merge commit '816234a37' Dylan K. Taylor 2020-05-20 20:16:45 +01:00
  • 200aa21702 Merge commit 'b7bf92a5e' Dylan K. Taylor 2020-05-20 20:15:15 +01:00
  • dc8677fedd Merge commit 'dcca000ea' Dylan K. Taylor 2020-05-20 20:14:58 +01:00
  • a39e9d2e94 Merge commit 'c4ea51f98' Dylan K. Taylor 2020-05-20 20:14:33 +01:00
  • eaf74c0f7f Merge commit '8202bb1cd' Dylan K. Taylor 2020-05-20 20:14:01 +01:00
  • f74dd4903c Merge commit 'b75758e35' Dylan K. Taylor 2020-05-20 20:13:28 +01:00
  • e69272c921 Merge commit '38a06f76f' Dylan K. Taylor 2020-05-20 20:11:43 +01:00
  • 360ea3661d Merge commit '84f99ed41' Dylan K. Taylor 2020-05-20 20:10:30 +01:00
  • 463a512fb4 Merge commit 'fd63f1919' Dylan K. Taylor 2020-05-20 20:09:54 +01:00
  • 99645b80b5 Merge commit '66d44aa81' Dylan K. Taylor 2020-05-20 20:06:58 +01:00
  • 53b7823b38 Merge commit 'f3089f577' Dylan K. Taylor 2020-05-20 20:05:48 +01:00
  • 594c08df1d Merge commit '9516ef163' Dylan K. Taylor 2020-05-20 20:00:56 +01:00
  • f9b350cae1 Merge commit 'e982a57cb' Dylan K. Taylor 2020-05-20 19:59:46 +01:00
  • 6804bca0b9 Merge commit 'f57fa2252b6b7aa3667da5bb1e09fb716b951402' Dylan K. Taylor 2020-05-20 19:57:50 +01:00
  • ada24456c3 Merge commit '02cc370855e543e64e34388c99fb439d206323ae' Dylan K. Taylor 2020-05-20 19:56:38 +01:00
  • e7d6869167 Merge commit '0a5d14a840a03564dcbc1d97deb91a92a00477b0' Dylan K. Taylor 2020-05-20 19:53:23 +01:00
  • c21edb8e3b Merge commit '3ec2994d7f05f30e2519430379ae0f3106be5074' Dylan K. Taylor 2020-05-20 19:52:03 +01:00
  • 72ee26b402 PacketBatch no longer extends NetworkBinaryStream this removes a whole bunch of crap from its API that shouldn't have been exposed. In the future we should look at splitting this into reader/writer halves, but for now this is a step in the right direction. Dylan K. Taylor 2020-05-18 17:35:30 +01:00
  • dbc21f31f7 Merge commit '25fb5140a2dba99c5e076849ac11e051a2970807' Dylan K. Taylor 2020-05-18 10:40:07 +01:00
  • 4a24acf295 fixing incompatible protocol handling, do not explode immediately on bad clientdata, login encode/decode is now symmetrical Dylan K. Taylor 2020-05-15 10:55:29 +01:00
  • 866ba68853 remove utils\Color, use new pocketmine/color class we're so close to separating protocol from core !!! Dylan K. Taylor 2020-05-14 20:38:08 +01:00
  • 8fe744438e Merge branch 'stable' Dylan K. Taylor 2020-05-14 00:23:36 +01:00
  • 31072b825c Throw a more specific exception for JWT handling errors Dylan K. Taylor 2020-05-13 21:23:04 +01:00
  • bc31b8459f Added JwtUtils::parse(), make ProcessLoginTask more robust Dylan K. Taylor 2020-05-13 13:36:42 +01:00
  • 93c7ad4055 remove utils\UUID, switch to pocketmine/uuid package Dylan K. Taylor 2020-05-11 10:46:48 +01:00
  • 9b294faa21 LoginPacket: fixed error handling edge case with malformed chain data JSON Dylan K. Taylor 2020-05-06 21:46:35 +01:00
  • c6ad47132b LoginPacket: fixed error handling edge case with malformed chain data JSON Dylan K. Taylor 2020-05-06 21:46:35 +01:00
  • 3fa147eb77 consolidate some JWT handling into one class Dylan K. Taylor 2020-05-06 21:32:22 +01:00
  • e38c776b09 LoginPacket: removed an old hack that's no longer used Dylan K. Taylor 2020-05-06 21:18:05 +01:00
  • 61223b0b1f StartGamePacket: remove unused imports Dylan K. Taylor 2020-05-06 21:14:57 +01:00
  • 93d230ffaa Merge branch 'next-minor' Dylan K. Taylor 2020-05-06 20:41:48 +01:00
  • 7e23e1f7c7 remove PM resource interaction from StartGamePacket also lose the cache, because it's not very useful ... Dylan K. Taylor 2020-05-06 13:17:16 +01:00
  • 392655e39c remove hardcoded legacy entity type ID mapping, load from resources instead Dylan K. Taylor 2020-05-04 13:47:39 +01:00
  • ec8f6f5055 cleaning up NBT handling on packet decode/encode now we always decode, because it's not safe to assume that we can just grab the rest of the bytes in the packet. Dylan K. Taylor 2020-05-04 13:23:29 +01:00
  • 92b066c6c9 making tile spawn compound cache use CacheableNbt instead of strings Dylan K. Taylor 2020-05-04 12:35:13 +01:00
  • 5a6c845f34 Nix some client-sided sounds, control them from the server this is a necessary step to knock out the implicit assumption that every player is using the same protocol. Dylan K. Taylor 2020-05-01 11:52:32 +01:00
  • b54dd5d01f NetworkBinaryStream: remove stale @throws from getAttributeList() Dylan K. Taylor 2020-04-29 16:32:56 +01:00
  • c5999e99f0 NetworkSession: inject PacketPool instead of hardcoding it this will make it slightly easier for multi version implementations, but handlers are still quite a big problem. Dylan K. Taylor 2020-04-29 12:48:28 +01:00
  • cb88547852 NetworkBinaryStream: swap BadPacketException for PacketDecodeException Dylan K. Taylor 2020-04-29 11:39:44 +01:00
  • 05561c9868 do not mess with cached data directly in packets Dylan K. Taylor 2020-04-29 11:34:25 +01:00
  • 2d480f92f6 moving serializers into protocol namespace Dylan K. Taylor 2020-04-27 13:54:39 +01:00
  • 0ba913f512 moving serializers into protocol namespace Dylan K. Taylor 2020-04-27 13:54:39 +01:00
  • c942501064 protocol: specialize exception used for bad packets Dylan K. Taylor 2020-04-27 12:55:00 +01:00
  • 8cb3d7feb1 Merge commit '3d2ca45' Dylan K. Taylor 2020-04-25 12:14:45 +01:00
  • 7c7f77f8ef StartGamePacket: remove hardcoded cache, move to RuntimeBlockMapping Dylan K. Taylor 2020-04-24 20:50:56 +01:00
  • a9cb25b669 move RuntimeBlockMapping to convert package Dylan K. Taylor 2020-04-24 12:42:43 +01:00
  • 18aaa2de78 RuntimeBlockMapping is now a singleton instead of static class this prepares for a fully dynamic block mapper, as well as allowing a small performance improvement to chunk encoding by eliding the constant lazy-init checks. Dylan K. Taylor 2020-04-23 21:09:58 +01:00
  • cf90cd2307 crafting: ditch MultiRecipe, it's a network-only thing MultiRecipes are really nothing more than feature toggles at the network layer, and they don't belong in the main core code. Dylan K. Taylor 2020-04-23 19:45:59 +01:00
  • 70de988bf7 PacketPool is now non-static this allows greater flexibility for customisation, and will facilitate future multi version support. Dylan K. Taylor 2020-04-23 16:11:47 +01:00
  • 1b29b2de69 move SkinAdapter stuff to convert package Dylan K. Taylor 2020-04-23 15:46:37 +01:00
  • a6c0d07e40 NetworkInventoryAction: move type translation to TypeConverter Dylan K. Taylor 2020-04-23 15:40:23 +01:00
  • 1e1bbc5cdd protocol: imports cleanup Dylan K. Taylor 2020-04-23 15:27:46 +01:00
  • b3fe6f501d break the hard cycle between mcpe\handler and mcpe\protocol preparing to move mcpe\protocol to a separate library Dylan K. Taylor 2020-04-23 15:23:20 +01:00
  • 8429dc2f4b break the hard cycle between mcpe\handler and mcpe\protocol preparing to move mcpe\protocol to a separate library Dylan K. Taylor 2020-04-23 15:23:20 +01:00
  • 7bbfe78e4f the great airgapping of recipes and itemstacks Dylan K. Taylor 2020-04-23 14:11:48 +01:00
  • 67755ffe15 Merge branch 'stable' Dylan K. Taylor 2020-04-18 13:19:31 +01:00
  • e7b24240de Merge commit '7a072931d' bedrock-1.14.0 Dylan K. Taylor 2020-04-18 12:10:02 +01:00
  • fda81317a3 UpdateBlockPropertiesPacket: expose nbt field Dylan K. Taylor 2020-03-24 11:06:58 +00:00
  • 71b0693487 Airgap Attribute, fix decoding of non-registered attributes for protocol debugging Dylan K. Taylor 2020-03-24 00:43:23 +00:00
  • a7bbef05dc LoginPacket: use netresearch/jsonmapper for login data decoding this makes retrieval static analysis friendly without extra steps. Dylan K. Taylor 2020-03-23 21:58:12 +00:00
  • 22856c4c2e Make use of BadPacketException::wrap() Dylan K. Taylor 2020-03-23 21:28:38 +00:00
  • 5f3b44d85a CraftingDataPacket: fix variable name collision Dylan K. Taylor 2020-03-14 14:24:50 +00:00
  • 192e5923cb DataPacket: strip some whitespace Dylan K. Taylor 2020-03-10 13:06:16 +00:00
  • 7e7fc618dc Merge branch 'next-minor' Dylan K. Taylor 2020-03-10 13:05:37 +00:00
  • 7c68050cac Merge branch 'next-minor' Dylan K. Taylor 2020-03-09 14:38:15 +00:00
  • 777c3e8877 Merge branch 'stable' Dylan K. Taylor 2020-03-03 12:35:11 +00:00
  • 8a4601cee3 DataPacket: inject buffer via parameter instead of class field (packet & stream separation, step 2) this is not complete yet, but the final change (having the binarystream actually come from outside) is a little more disruptive, and some extra changes need to be made. This will grant some sanity in the meantime without breaking too much stuff. Dylan K. Taylor 2020-02-25 16:19:11 +00:00
  • 9a92fe2b02 DataPacket: inject buffer via parameter instead of class field (packet & stream separation, step 2) this is not complete yet, but the final change (having the binarystream actually come from outside) is a little more disruptive, and some extra changes need to be made. This will grant some sanity in the meantime without breaking too much stuff. Dylan K. Taylor 2020-02-25 16:19:11 +00:00
  • bcf46132a2 Merge branch 'stable' Dylan K. Taylor 2020-02-24 22:11:13 +00:00
  • fa32450846 Merge branch 'stable' Dylan K. Taylor 2020-02-24 22:11:13 +00:00
  • 10ab46c598 DataPacket: account for splitscreen header when decoding Dylan K. Taylor 2020-02-24 21:20:25 +00:00
  • b09ba99ac7 Merge branch 'stable' Dylan K. Taylor 2020-02-24 20:32:43 +00:00
  • 43d084b4de DataPacket now encapsulates NetworkBinaryStream instead of extending it ultimately the goal is to remove the NetworkBinaryStream crap entirely, but this change has most of the same benefits and is less disruptive. Dylan K. Taylor 2020-02-24 18:59:54 +00:00
  • d468e79fc3 ContainerOpenPacket: fixed entityInv() not initializing x/y/z fields these are written even when not used, so they have to be initialized. Dylan K. Taylor 2020-02-23 20:59:53 +00:00
  • 0c0b186377 Merge branch 'stable' Dylan K. Taylor 2020-02-08 09:33:56 +00:00
  • e81224be3b add native return types to closures (for phpstan) Dylan K. Taylor 2020-02-07 22:05:15 +00:00
  • 5801e74f08 eliminate remaining empty() usages Dylan K. Taylor 2020-02-07 21:46:16 +00:00
  • 0e6773ef8d Merge branch 'stable' Dylan K. Taylor 2020-02-07 18:13:55 +00:00
  • 4d73fe1140 fill in more iterable types (master) Dylan K. Taylor 2020-02-01 20:19:57 +00:00
  • dca515b1bc Merge commit '260ac47588c76a2e6814cfba46773a990fb8c5da' Dylan K. Taylor 2020-01-31 21:07:34 +00:00
  • c67961e398 Merge commit 'fc0619ee6e4fa08aba2719e58a9289edd11f0b6e' Dylan K. Taylor 2020-01-31 19:42:07 +00:00
  • 26c66b888f Merge commit '259f0425a9657befcc8ef5f474ecc24ec78042fa' Dylan K. Taylor 2020-01-31 18:43:47 +00:00
  • 584cdfecfc Merge branch 'stable' Dylan K. Taylor 2020-01-22 15:16:10 +00:00
  • cde83cf68e strip extra blank lines (php-cs-fixer) Dylan K. Taylor 2020-01-22 15:14:10 +00:00
  • 71f88c2c60 Merge commit 'bff5bf25aea5cf56bbbfaeaa89f5e1f0ac920c90' Dylan K. Taylor 2020-01-22 15:00:13 +00:00
  • 2f4be6cf33 phpdoc armageddon for master, pass 1 Dylan K. Taylor 2020-01-22 11:55:03 +00:00
  • 2ff8a4c8ee populate remaining missing return types, using native returns where possible this is done separately to stable so that stable changes can be integrated easily using an empty merge. Dylan K. Taylor 2020-01-19 10:26:35 +00:00
  • 5ce2e57e82 Packet: specify void return type in phpdoc (native return type not possible yet) Dylan K. Taylor 2020-01-18 19:58:14 +00:00