898 Commits

Author SHA1 Message Date
Dylan K. Taylor
f35ca147bb Merge branch 'master' into mcpe-1.2 2017-08-17 18:38:30 +01:00
Dylan K. Taylor
9efd350e78 Return unhandled on desktop crafting instead of hitting errors 2017-08-17 18:34:21 +01:00
Dylan K. Taylor
4f1302adf2 Merge branch 'master' into mcpe-1.2 2017-08-17 17:14:16 +01:00
Dylan K. Taylor
e825ebd8fa Added some wrapper methods to make data flags less of a pain in the ass to work with 2017-08-17 16:52:17 +01:00
Dylan K. Taylor
5b4035253b Casting cleanup and removed some 32-bit string-int leftovers 2017-08-17 11:24:49 +01:00
Dylan K. Taylor
56e45a031b Fixed missing returns for Player->switchLevel() 2017-08-17 11:15:22 +01:00
Dylan K. Taylor
21a1e0eb6b Player API typehints 2017-08-17 11:08:54 +01:00
Dylan K. Taylor
670a9fe44f Fix some crashy issues when incompatible players get disconnected 2017-08-17 10:29:12 +01:00
Dylan K. Taylor
eebc52e00b Added API method Entity->isClosed() and made Entity->closed protected 2017-08-16 19:30:23 +01:00
Dylan K. Taylor
741394dab1 Typehinted up entity API
Did you guys think ALPHA7 changes were done?!
Sone stuff still needs some work, most notably data-properties can't be typed yet because they are just mushed into a couple of methods.
2017-08-16 19:04:30 +01:00
Dylan K. Taylor
fbe2567e58 Merge branch 'master' into mcpe-1.2 2017-08-16 12:31:12 +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
1576a79644 more packets 2017-08-13 17:43:33 +01:00
Dylan K. Taylor
5a4fbc6f5a Handle exception for crafting and resend inventories 2017-08-12 19:11:57 +01:00
Dylan K. Taylor
5d436a06ec Added a method to get player cursor inventory 2017-08-12 14:10:47 +01:00
Dylan K. Taylor
8958b3c51c Many many changes related to inventory transactions, fixed item dropping, fixed creative menu 2017-08-11 19:57:30 +01:00
Dylan K. Taylor
74ee94b385 Duct tape for inventory transactions, removed ContainerSetSlotPacket 2017-08-10 20:05:15 +01:00
Dylan K. Taylor
e8bd0c3e09 add typehints to Metadatable interface and implementations, fix missing return for Block->hasMetadata() reported in #1285 2017-08-10 18:02:01 +01:00
Dylan K. Taylor
51be88c698 Fixed AdventureSettings not working 2017-08-10 13:01:20 +01:00
Dylan K. Taylor
bb4808c23e attacking entities working
just moved some code :P
2017-08-10 10:49:14 +01:00
Dylan K. Taylor
72d40860f3 Remove useless else branch and and return unhandled for unmatched window IDs 2017-08-09 19:05:00 +01:00
Dylan K. Taylor
d3d1e32309 Removed teleport zero-offsets (not needed in 1.2) 2017-08-09 17:01:56 +01:00
Dylan K. Taylor
75644b5df2 s/windowid/windowId 2017-08-08 12:37:26 +01:00
Dylan K. Taylor
b4c2305c7f Minor cleanup of Human->initEntity() 2017-08-08 10:44:11 +01:00
Dylan K. Taylor
8ca37b3813 Fixed a bug in multiline chat handling 2017-08-07 19:41:08 +01:00
Dylan K. Taylor
6b7a382625 import cleanup and missing strict types declare 2017-08-07 15:42:46 +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
77cd8e7799 More broken mess to spawn 1.2 2017-08-06 17:21:51 +01:00
Dylan K. Taylor
561d8e7a39 Regenerated block/item id lists and refactored some names for consistency with MCPE 2017-08-04 12:17:24 +01:00
Dylan K. Taylor
306bf7be5f Moved dimension id constants to their own interface (PHP needs enums) 2017-07-31 16:38:01 +01:00
Dylan K. Taylor
0b47324fe3 Add some constants to AnimatePacket 2017-07-31 16:03:45 +01:00
Dylan K. Taylor
ffefcd4473 Fixed 'moved too fast' when respawning 2017-07-30 20:59:42 +01:00
Dylan K. Taylor
8957dbf08e Use occupied bitflag and added distance check for beds
must be < 2 blocks from either half of the bed
2017-07-30 20:02:48 +01:00
Dylan K. Taylor
e72d8cf8f5 Remove a couple of obsolete TODO comments 2017-07-30 17:43:14 +01:00
Dylan K. Taylor
8274f5b3cc More hack-fixes for #1220
Player and network really need to get divorced, and fast.
2017-07-27 11:25:40 +01:00
Dylan K. Taylor
e8be8550a0 Fixed possible issues with tick counters being inaccurate when the server lags 2017-07-27 10:58:34 +01:00
Dylan K. Taylor
6ff92f2adf Fix player timeouts crashing the server 2017-07-24 21:12:05 +01:00
Dylan K. Taylor
f32e880542 Fixed really dumb copy bug breaking crafting 2017-07-22 12:04:52 +01:00
Taras
6cacb368ce Add PlayerJumpEvent (#1223) 2017-07-22 11:18:53 +01:00
Dylan K. Taylor
dbb92096e4 More typehints, documentation fixes and static analysis cleanup 2017-07-15 12:12:06 +01:00
Dylan K. Taylor
24bdf330d5 Merge branch 'moar-typehints' 2017-07-15 09:43:43 +01:00
Dylan K. Taylor
bb230c5812 Shut up PhpStorm 2017-07-14 14:13:04 +01:00
Dylan K. Taylor
6de8415c79 Merge network refactors 2017-07-14 13:04:02 +01:00
Dylan K. Taylor
c3b8be3f60 and more typehints 2017-07-14 10:56:51 +01:00
Dylan K. Taylor
2a7b736f18 Heap of bugfixes, cleanup and PHP 7 upgrades 2017-07-13 19:18:56 +01:00
Dylan K. Taylor
a7f5ee2f3e Added capability to get/set screen height in lines for each CommandSender to alter page sizes of command output such as /help (#1144) 2017-07-13 10:57:10 +01:00
Dylan K. Taylor
5283975f20 Move inventory ID constants to their own interface
ContainerSetContentPacket will be removed in 1.2, and these aren't specific to ContainerSetContentPacket anyway.
2017-07-12 20:04:36 +01:00
Dylan K. Taylor
e485999218 Just cut the adapter loose instead of needing extra fields for this 2017-07-12 12:28:54 +01:00
Dylan K. Taylor
650afe2d94 Added PlayerNetworkSessionAdapter to allow abstraction of NetworkSession base 2017-07-12 12:28:54 +01:00
Dylan K. Taylor
1a5e3b2ad0 Fixed outdated movement problem, fixed #1171 2017-07-06 10:40:03 +01:00