Dylan K. Taylor
84c8ac03fb
Fixed #1179
...
This solution isn't ideal, but it works...
2017-08-23 13:19:34 +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
604d11a8fd
import cleanup and fixed an inspection
2017-08-21 17:39:02 +01:00
Dylan K. Taylor
672b7610a9
Maybe I should stop using PhpStorm EAPs
2017-08-21 13:51:58 +01:00
Dylan K. Taylor
456ddd3fb3
Removed obsolete parameters from Entity->attack() and Entity->heal()
2017-08-21 13:25:11 +01:00
Dylan K. Taylor
2f3c77c68a
Fixed entity move performance issue and a ton of entity movement bugs
...
- fixed zombies and villagers movement not updating
- fixed dropped items "movement" lagging the living **** out of the server when not actually moving
- fixed arrows not falling when the supporting block is removed
- fixed knockback
- fixed zombies + villagers being un-attackable after hitting them
... the list goes on
2017-08-20 20:31:09 +01:00
Dylan K. Taylor
02f42eba48
Move block registration to its own class
2017-08-20 18:05:01 +01:00
Dylan K. Taylor
e1d894057c
Changed face position floating-point params to Vector3s
2017-08-20 10:23:34 +01:00
Dylan K. Taylor
5b3bed8b06
Don't check entity movement or in-air ticks if player dies due to movement, close #1226
...
Not an ideal solution but it'll do.
2017-08-20 09:49:02 +01:00
Dylan K. Taylor
0e24596aed
Changed block construction calls to Block::get()
2017-08-19 13:46:17 +01:00
Dylan K. Taylor
a4ec2b7f2c
Removed copy-pasted code from Player
2017-08-17 19:50:17 +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
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
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
6b7a382625
import cleanup and missing strict types declare
2017-08-07 15:42:46 +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
Dylan K. Taylor
394f420059
Fixed chunks not loading when respawning and some minor spawn sequence cleanup ( #1153 )
...
* Fixed chunks not loading when respawning and some minor spawn sequence cleanup
* This causes too much unexpected behaviour to be useful
Revert "Make use of Mojang's pitch hack, close #821 "
This reverts commit c2dfef700feaf7235ece2fc140e93d02ae3f4af4.
* Removed delayed-teleport system and cleaned up movement reset for dead players
* Fixed health resetting to max when quitting and rejoining
2017-07-05 10:31:16 +01:00
Dylan K. Taylor
d474f73665
Move base offset to Human from Player
...
fixes jojoe77777/Slapper#58
2017-07-03 19:58:07 +01:00
Dylan K. Taylor
c2dfef700f
Make use of Mojang's pitch hack, close #821
2017-07-03 13:35:27 +01:00
Dylan K. Taylor
82fd0e8d47
Added debug for view distance setting
2017-06-29 09:46:02 +01:00
Dylan K. Taylor
d92a6240d8
Moved spawn check to sendChunk() instead of sendNextChunk(), fix #828
...
doesn't make sense to put it anywhere else regardless...
2017-06-27 13:36:26 +01:00
Dylan K. Taylor
1dd8fc008b
Fixed players taking forever to spawn when generating a new world
2017-06-26 18:37:20 +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