d8dc89e7c8
EnderChestInventory: Removed unnecessary owner parameter
2018-05-18 16:46:48 +01:00
47faf5a994
Human: Add support for 128x128 skins in isValidSkin() ( #2140 )
2018-04-07 09:00:08 +01:00
c06c1c7ce0
Human: Added a hack for nametags
...
Apparently NAMETAG metadata is useless in AddPlayerPacket now, so it has to be sent separately.
2018-04-05 11:56:44 +01:00
5b7b2dd0e2
Merge changes from ALPHA11 for 1.2.13
2018-04-04 11:31:39 +01:00
526f05631e
fix metadata properties for new beta
...
there are more things than this, but I don't have time to figure them all out.
2018-04-04 11:03:05 +01:00
d4d57aa9ea
Merge branch 'feature/xp-event'
2018-03-30 12:46:53 +01:00
ddc9dca8b4
Player: fixed being able to eat cake in creative
...
closes #2070
2018-03-13 18:32:08 +00:00
d09a43cfef
Added PlayerExperienceChangeEvent
2018-03-10 20:04:36 +00:00
b39bbffdc5
Entity: Moved and renamed entity\Item to entity\object\ItemEntity
2018-03-10 12:36:46 +00:00
9abfd54cc1
Updated with ListTag changes from PocketMine-NBT
2018-02-13 16:50:49 +00:00
b7bd8dc7f1
Human: fixed NPC skin crash after ByteArray change
2018-02-12 09:56:02 +00:00
b75d121c7e
Human: remove obsolete TODO
2018-02-11 17:08:59 +00:00
88bbb03f12
Human: store cape & geometry data in NBT
2018-02-11 17:08:01 +00:00
9478bc281f
Human: Save skin data as TAG_ByteArray instead of TAG_String
...
TAG_String has a UTF-8 payload, which makes it more expensive to work with. Also, skins can contain bytes which are not valid UTF-8 characters and will therefore be treated as corrupted by external tools.
Additionally a TAG_String can only hold 32767 bytes, which might become a problem in the future.
A TAG_ByteArray can hold up to 2GB of data, and there is no character encoding restrictions on it.
2018-02-11 16:50:00 +00:00
6c71b443e8
Fixed armor not dropping ( #1962 )
2018-01-24 20:01:32 +00:00
6543d96910
Inventory: Split up armor and player inventory ( #1957 )
...
* Inventory: Split up PlayerInventory and armour handling
* Fixed other players don't see armour changes. This bug also exists on master.
2018-01-23 20:01:26 +00:00
2eb6e075ae
Refactored entity metadata handling into its own class, with type-safe methods ( #1876 )
...
This includes several other changes, including:
- SLOT data properties now accept items directly
- POS data properties now accept floored Vector3s (in future this will be block positions) or null for 0,0,0
- VECTOR3F data properties now accept Vector3s or null for 0,0,0
2018-01-20 10:52:14 +00:00
98eba11da5
Human: Use Item->getEnchantmentLevel() for Respiration check
2018-01-11 18:32:46 +00:00
9d2eb5e911
Human: Added some void typehints
2018-01-05 12:30:03 +00:00
b6c1124d50
Move XP drop amount to Human instead of Player
2018-01-05 12:09:24 +00:00
03fda936a8
Added XP level-up sounds and refactored XP gain sound handling
2018-01-05 11:58:54 +00:00
a84910f04c
Implemented XP orbs
2018-01-04 19:28:19 +00:00
3ee225caec
Human: Refactored XP API methods
2018-01-04 19:15:26 +00:00
6e1df36188
Consumables refactor ( #1796 )
...
* Removed broken EntityEatEvents - these don't fit the pattern since they only apply to Human entities anyway. PlayerItemConsumeEvent and PlayerInteractEvent can be used for cancellation purposes, and plugins can do custom stuff without mess.
* Restrict item consuming to Living entities only
* Added FoodSource->requiresHunger()
* Only items implementing the Consumable interface can now be consumed.
* The effects from consuming items are now generic-ized by way of the Living->consume() function. This is overridden in Human to allow applying food and hunger.
* Fixed the hardcoded mess for buckets
2017-12-23 13:03:41 +00:00
686e1c4470
Implement ender chest ( #1462 )
2017-11-22 14:25:21 +00:00
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
665130561e
Further cleanup on NBT dynamic field access
...
not sure how I missed so many of these... there are probably lots more besides :(
2017-11-17 11:19:36 +00:00
aa399a1109
migrate to new CompoundTag API ( #1515 )
2017-11-10 15:38:21 +00:00
991d321928
improved geometry debloating, also apply on skin changes
2017-10-29 12:14:16 +00:00
600d80331a
Accept null for targets in Human->sendSkin()
...
For humans, it'll send to all viewers. For players, it'll send to all viewers, and the player itself.
2017-10-29 11:18:34 +00:00
9fb93985d6
Cleaned up Entity->spawnTo()
2017-10-19 16:13:09 +01:00
584810780a
Moved projectile-related classes to their own namespace
2017-10-19 12:27:44 +01:00
3b5eb45ff5
More usages of Item->isNull()
2017-10-16 12:29:39 +01:00
68809d992b
Added BaseInventory->removeAllViewers()
2017-10-16 11:15:03 +01:00
246c6daef6
how irritating
2017-10-09 11:30:11 +01:00
2601e35990
Cleaned up and added API for entity air supply, fixed oxygen being used in creative/spectator
...
this commit also includes respiration checks because it's cherry-picked
from api3/blocks, but respiration won't work until it's registered.
2017-10-09 11:28:40 +01:00
8fafef2f7f
Added tagType parameter to ListTag constructor, remove some boilerplate code
2017-10-08 13:28:01 +01:00
e6cecabf3f
New skin API, add support for custom capes & custom geometry ( #1416 )
...
* Added support for changing skins ingame, custom capes & geometry
* Use PlayerSkinPacket for setting Human skin instead of PlayerList hack
2017-09-29 14:09:00 +01:00
38fad4b963
Implement difficulty per-world ( #878 )
...
* Moved Server::getDifficultyFromString() to Level
* Added ability to set difficulty in worlds section of pocketmine.yml for generation
2017-09-26 11:16:51 +01:00
6aa9b081e9
Cleanup unused imports
2017-09-21 12:26:41 +01:00
8cae20e818
Removed hotbar slot linking (works like PC now)
2017-09-19 18:36:57 +01:00
5d75d3d5b6
Merge branch 'php/7.0' into mcpe-1.2
2017-09-01 23:10:58 +01:00
120cf56a47
Misc return typehints
2017-08-30 12:59:26 +01:00
95752ef542
Merge branch 'master' into mcpe-1.2
2017-08-23 13:20:35 +01:00
da4c9cf404
Fixed inventory cyclic references causing players to not get garbage-collected
2017-08-23 13:13:15 +01:00
a52fa93998
Remove Entity->length
2017-08-23 02:21:33 -04:00
445a67954d
Merge changes from master
2017-08-22 14:13:31 +01:00
456ddd3fb3
Removed obsolete parameters from Entity->attack() and Entity->heal()
2017-08-21 13:25:11 +01:00
4f1302adf2
Merge branch 'master' into mcpe-1.2
2017-08-17 17:14:16 +01:00
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