Dylan K. Taylor
379a40c13a
break up the pocketmine\network\mcpe\protocol\types namespace
...
this namespace nesting is getting out of hand, but it's more manageable this way.
2019-07-27 19:19:48 +01:00
Dylan K. Taylor
7f56f27505
some cleanup to held item handling
2019-06-26 19:40:40 +01:00
Dylan K. Taylor
b18bd4f33c
rename SessionHandler -> PacketHandler
2019-06-18 16:02:46 +01:00
Dylan K. Taylor
76f1ee1827
Add restrictions on packet send directions with interfaces
...
This prevents plugins sending wrong packets at the compiler level (or would, if we had a compiler). It's more robust than a getter for client/server and throwing an exception since a static analysis tool can detect faults created by sending wrong packets from the server. This is also used to deny service to dodgy clients which send wrong packets to the server to attack it.
2019-01-17 12:51:24 +00:00
Dylan K. Taylor
64ecc373be
Split up session base logic and packet handling
...
this will allow for mutable packet handlers which can be used to cleanly implement multi-stage game sessions.
2018-07-20 12:36:44 +01:00
Dylan K. Taylor
2bba3a0805
Apply typehints to pocketmine\network\mcpe\protocol namespace
...
this is pulled from network-nuke in order to reduce the size of the diff.
2018-07-05 13:19:15 +01:00
Dylan K. Taylor
d8f4dde5f3
PlayerHotbarPacket: remove unused import
2018-05-01 14:09:17 +01:00
Dylan K. Taylor
fc795b80ae
Protocol changes for 1.2.10
2018-04-04 10:58:49 +01:00
Dylan K. Taylor
4f8e4f0522
Add EOF newlines where missing (bulk) ( #1836 )
...
This should solve issues with people making GitHub PRs and having the web editor messing things up. GitHub Web Editor sucks :(
2017-12-20 11:56:36 +00:00
Dylan K. Taylor
74b074753f
Bulk addition of constant visibilities
...
thanks PhpStorm inspections plugin for annoying the shit out of me until
I did this.
2017-11-21 14:44:10 +00:00
Dylan K. Taylor
88bd7713c5
Fix preprocessor
2017-09-11 09:42:31 +01:00
Dylan K. Taylor
604d8ecf9a
Protocol changes for 1.2.0.25
2017-09-02 11:05:49 +01:00
Dylan K. Taylor
7958fffa07
Move some code around to fix block placing, breaking, and throwing snowballs
2017-08-07 12:28:07 +01:00
Dylan K. Taylor
7886918140
Cleaned up some bad code in DataPacket, added encode/decodeHeader and made encode/decodePayload protected
2017-08-06 17:21:51 +01:00
Dylan K. Taylor
77cd8e7799
More broken mess to spawn 1.2
2017-08-06 17:21:51 +01:00