Dylan K. Taylor
eccc7bf7b3
Moved EntityLink to its own type
2017-10-09 19:15:53 +01:00
Dylan K. Taylor
ccbdb77618
Cleaned up LoginPacket handling, don't nuke the buffer
2017-09-26 09:49:35 +01:00
Dylan K. Taylor
445a67954d
Merge changes from master
2017-08-22 14:13:31 +01:00
Dylan K. Taylor
876659cc73
Item factory refactor and added capability to register custom items
2017-08-21 17:49:26 +01:00
Dylan K. Taylor
9be1b929a5
Added PhpDoc for packet field types and changed float x,y,z to Vector3
2017-08-13 20:02:07 +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
d9da9accbc
Fix packet buffers when encoding twice
2017-08-06 17:21:52 +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
63d2b341b9
Day 2
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
Dylan K. Taylor
8a02dbb15a
fix crash when var_dumping packets
2017-08-03 08:47:10 +01:00
Dylan K. Taylor
3a214b7ce6
Cleaned up isEncoded mess
2017-07-13 12:21:26 +01:00
Dylan K. Taylor
2726f2a011
Solved packet encode/decode boilerplate code issue
...
Something as simple as forgetting the reset() when encoding would cause lots of problems which could go unnoticed. This should be fully backwards-compatible but needs more tests.
2017-07-07 13:59:09 +01:00
Dylan K. Taylor
ecfcf49984
Added basic encode/decode for gamerules data and added GameRulesChangedPacket
...
needed it for tests
Squashed:
oops
PhpStorm you asshole
2017-06-25 15:43:08 +01:00
Dylan K. Taylor
c0377fc63a
more typehints, removed more 32-bit leftovers
2017-06-25 11:40:12 +01:00
Dylan K. Taylor
78c09267e5
Typehinted things in BinaryStream, sorted some methods and related bugfixes
2017-06-07 13:53:10 +01:00
Dylan K. Taylor
2b02fcfe2c
fixed #992
2017-06-04 16:54:35 +01:00
Dylan K. Taylor
22ba017965
Binary strict types ( #969 )
...
* Some Binary cleanup, type-hints and strict types
yes, I know this is very crashy... that's good, because it highlights unexpected behaviour
* added some default values
2017-06-03 09:39:45 +01:00
Dylan K. Taylor
e4e4ef5f2a
Fixed preprocessor issues with signed bytes and floats, close #967
2017-06-02 12:50:48 +01:00
Dylan K. Taylor
57379b93ce
Fixed a mistake in metadata decoder
2017-05-27 14:18:40 +01:00
Dylan K. Taylor
c51c8ae700
Standardised attributes encoding
2017-05-10 10:48:53 +01:00
Dylan K. Taylor
84ec944b6b
Use short class names for unhandled packet logging, added some documentation
2017-04-27 12:16:24 +01:00
Dylan K. Taylor
07f32765ba
Merge branch 'api3/network_mcpe-1.0.5' into api3/network
2017-03-26 18:52:30 +01:00
Dylan K. Taylor
788bd6fc20
Fixed resource packs/login sequence fail, added basic safety restrictions for packet sending before clients are logged in
...
close #452
2017-03-26 14:42:23 +01:00
Dylan K. Taylor
6f1b12b021
Added new 1.0.5 packets
2017-03-11 19:58:32 +00:00
Dylan K. Taylor
295d9bc80b
Cleaned up muddled varint/varlong mess, added separate methods for entity unique and runtime ids, moved some MCPE-protocol-specific methods out of BinaryStream
2017-03-08 20:29:24 +00:00
Dylan K. Taylor
ea0f291cb5
Added class method DataPacket->canBeBatched()
2017-03-08 20:28:40 +00:00
Dylan K. Taylor
56990eb28b
MCPE protocol gets its own namespace
2017-03-08 20:28:39 +00:00