8382970d56
Merge branch 'master' into mcpe-1.1
2017-05-30 16:09:46 +01:00
86f3b257a7
Remove unneeded foreach loop in Human::getDrops() ( #941 )
...
* Remove unneeded foreach loop in Human::getDrops()
* Use array_values() for backwards compatibility.
2017-05-30 13:27:47 +01:00
0a4d62b405
Added encode and decode methods for more packets
2017-05-15 15:56:59 +01:00
d682fdfdf0
Food and exhaustion should not apply in creative, close #860
2017-04-24 13:31:05 +01:00
559504225a
Throw an exception before calling base entity constructor if skin is not set or invalid, close #835 ( #855 )
2017-04-24 09:50:55 +01:00
2204942338
Fixed the half-done hunger implementation, fixed lots of bugs related to hunger
...
- Fixed starvation doesn't deal any damage at all (Human->getFood() returns a float, not an int, === 0 won't work so great)
- Added exhaustion for sprinting, walking, jumping and sprint-jumping as per MCPE (these use MCPE values, and yes MCPE does walking exhaustion!)
- Fixed attributes don't get reset after player death
- Added food and hunger regeneration in peaceful difficulty
- Added API methods Living->jump() (motion isn't updated yet, so this won't actually do much if plugins try to use it) and Living->getJumpVelocity()
TODO: implement exhaustion for swimming
2017-04-21 19:48:25 +01:00
69ac80518c
some improvements to the horrendous mess that is the handling of joining and quitting, fixed some crashes, probably caused some other crashes
...
I can't fix this completely because it's just too much of a fucking mess. NEED to separate network stuff from Player.
2017-03-30 19:33:47 +01:00
cb059ea713
fix some PhpStorm inspections
2017-03-30 12:10:59 +01:00
52f2596dc5
Merge branch 'master' into api3/network
2017-03-28 12:27:40 +01:00
217f66e180
Removed redundant method override leftover from 0.15
2017-03-28 12:25:54 +01:00
4245274aec
Merge branch 'master' into api3/network
2017-03-25 21:26:46 +00:00
34f833fa79
Do not save empty inventory slots
2017-03-25 12:02:09 +00:00
66fbfdd47b
Fixed hunger not saving, resolves 1 of #435 ( #439 )
2017-03-18 21:58:02 +00:00
6c5dbd7359
Merge branch 'master' into api3/network
2017-03-12 12:22:11 +00:00
132e04fdbb
Hotbar/inventory bugfixes ( #399 )
...
- Fixed most issues with item equipment in creative
- Added save and restore of currently-held item
- Reset hotbar on death, added API method PlayerInventory->resetHotbar()
- Creative players now have more leeway to get items, alleviates issues with item equipment in desktop GUI
- Fixed creative players wearing armour
- Found unknown field in ContainerSetSlotPacket
- Removed outdated/redundant constants
- Use a case statement in ContainerSetSlotPacket handler, added handling for 0x7a hotbar slot link update
2017-03-09 20:31:55 +00:00
56990eb28b
MCPE protocol gets its own namespace
2017-03-08 20:28:39 +00:00
9004417456
Fixed file headers ( #255 )
2017-01-13 16:57:05 +00:00
92b85e0f15
Fix players regenerating health from food while dead, fixes issue 2 in #23
2017-01-09 14:10:05 +00:00
175dd0efa6
PhpStorm inspections
...
Fixed some minor bugs and dropped some obsolete code
pocketmine\level\generator namespace is ignored in this commit
2016-12-14 21:49:35 +00:00
e51a2725de
Remove circular dependency between Item and NBT modules ( #121 )
2016-11-25 10:17:50 +00:00
0f261b7baa
Fixed player flags (now can sleep!)
2016-10-27 10:55:05 +01:00
867ec6b509
Fix leads, crashes
2016-10-27 10:55:03 +01:00
6fb41c5c7f
UpdateBlockPacket fixed and changed skinName to skinId
2016-06-22 01:09:48 +02:00
df8e1e8702
Spawn unleashed, movement fixed and some Player DataProperty cleanup
2016-06-22 00:08:52 +02:00
ef8227a074
Bump version to 0.15.0.0 and protocol changes
2016-06-15 23:59:35 +02:00
8e909f05ca
Fixed setSaturation() working incorrectly
2016-03-09 19:13:06 +08:00
86ec7ed771
Fixed player not dying
2016-02-22 18:24:51 +08:00
83f29fd871
Fixed a crash
2016-02-22 15:06:45 +08:00
5459576833
Added hunger and experience saving
2016-02-17 19:56:19 +08:00
e79976bdac
Added events
2016-02-11 22:07:04 +08:00
8807617480
Fixed attriutes not sending
2016-02-11 18:45:58 +08:00
28967ca495
Fixed eating
2016-02-11 15:42:07 +08:00
52e8781d36
Implemented hunger-related regen and damage
2016-02-11 01:53:51 +08:00
329a525ea1
Implemented food and hunger
2016-02-10 22:49:48 +08:00
a2734f6dc0
Merged master into php7 to support 0.13.1
2016-01-22 17:36:45 +01:00
90c3e66e6b
Updated for .13.1. skinName replaces isSlim, API bump
2015-12-16 14:37:46 +01:00
7f8b39a63c
Renamed NBT tags to have Tag in the name
2015-08-23 00:25:29 +02:00
31ef7721b1
Removed network channels, bumped protocol
2015-08-12 14:59:48 +02:00
02cb9d69a9
Save items properly on several places, added NBT::getItemHelper() and NBT::putItemHelper()
2015-08-06 21:44:00 +02:00
2e0ef645fa
Fixed several issues with spawning/despawning Players/Humans, close #3345 , close #3342
2015-08-05 13:40:11 +02:00
5621ab0c49
Updated some packets for 0.12, UUIDs, other stuff!
2015-08-02 01:22:36 +02:00
383fcba8e1
Fixed skins issue
2015-06-07 12:17:27 +02:00
71490f60f2
Fixed other invisibility issues
2015-06-04 16:51:48 +02:00
9e14435dbb
Moved network ids to constants, improved some entity methods, more performance
2015-05-30 23:59:24 +02:00
32722856ea
Updated FloatingTextParticle to use less heavy method
2015-05-19 21:59:23 +02:00
f3a53be117
Moved Human->setNameTag() to Entity
2015-05-18 15:29:31 +02:00
85c43ba011
Allow setting nametag for any kind of entity
2015-05-18 13:08:06 +02:00
d4cae729c3
Added AsyncTasks timings
2015-04-24 17:21:39 +02:00
529f9b148b
Save/reload skin on Human based entities
2015-04-24 17:05:00 +02:00
15b4cd8fb3
Improved format constants, fixed cake eating when max health is > 20
2015-04-20 17:25:58 +02:00