8728547a11
Remove unused imports
2017-09-19 19:58:53 +01:00
90fb3c5e12
Moved getNetworkType() to ContainerInventory since it's not used anywhere else
2017-09-19 19:57:22 +01:00
1323d89139
Remove redundant duplicated code for sendContents() and sendSlot()
2017-09-19 19:07:12 +01:00
136ab1dba1
Inventory->getItem(): Removed useless clones
...
this already returns a copy of the item anyway... wtf?
2017-09-19 18:49:08 +01:00
8cae20e818
Removed hotbar slot linking (works like PC now)
2017-09-19 18:36:57 +01:00
642c7733cd
Cleaned up ShapedRecipe handling, ShapedRecipe API changes
...
use shapes from json instead of just generating maps
fix a ton of bugs
2017-09-17 11:45:16 +01:00
bd64172750
Added API method Item->equalsExact() and removed some boilerplate code
2017-09-15 16:48:46 +01:00
63634d7e7d
Added compaction and sorting for repeated slot changes in a single transaction
...
Now items should be able to move around the crafting grid correctly.
2017-09-15 13:32:17 +01:00
c1c290cd39
Beware matching items that aren't actually correct
...
This would only ever happen if we received the actions in the wrong order, but that wouldn't surprise me.
2017-09-13 11:37:10 +01:00
23a38400e2
Added CraftingGrid and BigCraftingGrid, WIP stuff for crafting
...
moving whole stacks in & out of the crafting grid works now, splitting stacks is fucked up because the transaction system can't handle the same slot changing multiple times in one transaction
2017-09-12 19:34:06 +01:00
297172d111
Send creative inventory for all gamemodes, fixed recipe book
2017-09-12 14:40:16 +01:00
78d49f8e66
Merge branch 'php/7.0' into mcpe-1.2
2017-09-03 15:02:41 +01:00
0b83c61494
Fixed cyclic reference with chest tiles and DoubleChestInventory
2017-09-03 11:24:34 +01:00
a6c0f1512c
Send the hotbar instead of contents when resetting hotbar
...
This used to be fine before 1.2, but now hotbar is handled separately.
2017-09-02 11:07:14 +01:00
604d8ecf9a
Protocol changes for 1.2.0.25
2017-09-02 11:05:49 +01:00
a3d21de559
Cleaned up network inventory action reading and core action creation
2017-08-28 20:04:35 +01:00
76acb1da7b
New crafting recipe data format, more readable & more compact
2017-08-24 12:05:35 +01:00
445a67954d
Merge changes from master
2017-08-22 14:13:31 +01:00
876659cc73
Item factory refactor and added capability to register custom items
2017-08-21 17:49:26 +01:00
4f1302adf2
Merge branch 'master' into mcpe-1.2
2017-08-17 17:14:16 +01:00
6efa4343b1
Cleaned up fuel duration handling, fixed some fuel items not working in furnaces
2017-08-17 10:22:47 +01:00
83fcec3e94
Don't add actions to the transaction if a crash occurred when getting the source inventory
2017-08-12 14:29:12 +01:00
8958b3c51c
Many many changes related to inventory transactions, fixed item dropping, fixed creative menu
2017-08-11 19:57:30 +01:00
74ee94b385
Duct tape for inventory transactions, removed ContainerSetSlotPacket
2017-08-10 20:05:15 +01:00
36d47a33f3
Fixed crash on player death
2017-08-09 13:34:25 +01:00
260179197b
Use SplFixedArrays in inventory, added more typehints and cleaned up some duplicated code
2017-08-09 13:12:07 +01:00
75644b5df2
s/windowid/windowId
2017-08-08 12:37:26 +01:00
1d0f0a2999
Merge branch 'master' into mcpe-1.2
2017-08-08 10:23:19 +01:00
98e0a2ecba
Removed InventoryType, added new inventory API methods
2017-08-07 11:31:36 +01:00
44f1dedbf8
Give creative players carte blanche
...
Close #879 , close #431
This will be solved properly in 1.2 when creative transactions are
actually trackable. For now... HACK!
2017-08-06 21:16:08 +01:00
63d2b341b9
Day 2
2017-08-06 17:21:51 +01:00
77cd8e7799
More broken mess to spawn 1.2
2017-08-06 17:21:51 +01:00
e4a5cb6021
Changed NBT representation in JSON to hex, fix encoding problems with UTF-8
2017-08-06 14:50:18 +01:00
71e354cf1d
Added chest open/close sounds and cleanup duplicated code
2017-08-06 12:48:46 +01:00
561d8e7a39
Regenerated block/item id lists and refactored some names for consistency with MCPE
2017-08-04 12:17:24 +01:00
c0e0730923
Fixed PE armor screen glitching when equipping armor items
2017-07-30 17:41:44 +01:00
dbb92096e4
More typehints, documentation fixes and static analysis cleanup
2017-07-15 12:12:06 +01:00
24bdf330d5
Merge branch 'moar-typehints'
2017-07-15 09:43:43 +01:00
6de8415c79
Merge network refactors
2017-07-14 13:04:02 +01:00
c3b8be3f60
and more typehints
2017-07-14 10:56:51 +01:00
b9355387da
fix some inspections related to crafting recipes
2017-07-14 08:53:37 +01:00
2a7b736f18
Heap of bugfixes, cleanup and PHP 7 upgrades
2017-07-13 19:18:56 +01:00
3a214b7ce6
Cleaned up isEncoded mess
2017-07-13 12:21:26 +01:00
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
a73c6f1861
Fixed some unnecessary FQNs in docs
2017-06-25 12:43:04 +01:00
a365c831a8
Fixed some doc problems
2017-06-25 12:07:28 +01:00
e18a3ac933
Fixed UUID-related issues
2017-06-07 13:11:03 +01:00
51b0673b4b
Bite the bullet and enable strict types on everything
2017-06-07 12:53:16 +01:00
6ea0eb47ec
Fixed PlayerInventory in_array recursion issue, close #1008
...
This is INTENDED BEHAVIOUR for comparing objects?????
2017-06-05 20:51:12 +01:00
1e9ff44890
New field for MobEquipmentPacket
...
If anyone wants to play with the off-hand, the window ID is 0x77 ;)
2017-06-05 19:10:00 +01:00