Commit Graph

104 Commits

Author SHA1 Message Date
TheMode 6c093ff6c8 WIP shift tests
Signed-off-by: TheMode <themode@outlook.fr>
2022-06-29 20:36:03 +02:00
TheMode 7da0aba66e Proper inventory in drag clicks
Signed-off-by: TheMode <themode@outlook.fr>
2022-06-29 19:48:14 +02:00
TheMode fb58253423 Slot -999 for end drag
Signed-off-by: TheMode <themode@outlook.fr>
2022-06-29 19:38:17 +02:00
TheMode f89244944f Test external left drag
Signed-off-by: TheMode <themode@outlook.fr>
2022-06-29 19:21:38 +02:00
themode e8cbe387eb Inventory rework 2022-06-29 18:53:46 +02:00
Cody 3821d204cf
Allow for 'F' to be pressed in inventories (Fixes #585) (#1164) 2022-06-14 07:38:44 +02:00
TheMode 7d930ee28d Replace PlayerConnection#sendPacket when possible
Signed-off-by: TheMode <themode@outlook.fr>
2022-05-10 10:07:55 +02:00
TheMode abeda20646 Misc inventory style
Signed-off-by: TheMode <themode@outlook.fr>
2022-05-10 07:42:18 +02:00
Moulberry ad0440711f
Some tweaks to AbstractInventory/PlayerInventory, as well as various Tests (#1049) 2022-05-10 07:33:05 +02:00
themode f0cf2d946c Force volatile read for inventory contents 2022-01-10 16:51:21 +01:00
TheMode 05de99f45f immutable packets (record) (#528) 2022-01-10 16:51:21 +01:00
TheMode 107388a37b use `isViewer` and `sendPacket` shortcut
Signed-off-by: TheMode <themode@outlook.fr>
2021-10-28 21:44:19 +02:00
TheMode b308ce5baa
Update to Java 17 (#462) 2021-10-22 01:55:55 +02:00
Шандуренко Константин Владимирович e990283c40 Resolving inventory- events and condition issues 2021-09-10 18:38:27 +03:00
Moulberry 9e5fadaa0e Fix broken cursor with window items packet 2021-09-08 21:50:14 +08:00
Шандуренко Константин Владимирович 5db56312f7 Code review 2021-09-06 20:23:37 +03:00
Шандуренко Константин Владимирович 8a04d7eed9 InventoryItemChangeEvent 2021-09-06 19:59:55 +03:00
TheMode a75910fe3f Fix drag clicks 2021-08-29 00:07:58 +02:00
TheMode 8fa590fdcd Fix drag clicks 2021-08-23 04:02:06 +02:00
TheMode 5cf358ac3c Fix inventory events not giving the proper inventory/slot 2021-08-18 21:08:04 +02:00
TheMode 8cf58fa397 Fix double click `clickedItem` always being air 2021-08-14 18:21:01 +02:00
TheMode 3423562be8 Fix double/drag prediction 2021-08-13 20:45:28 +02:00
TheMode 1bdc50f4a0 Trust client's inventory prediction when possible 2021-08-13 20:41:59 +02:00
TheMode c17f07e1d0 More inventory cleanup 2021-08-12 18:06:23 +02:00
TheMode ff9ca60a58 Add some inline packet constructors 2021-07-22 09:54:34 +02:00
TheMode 56eead948a Fix inventory click 2021-06-06 01:50:28 +02:00
TheMode ec9658e7d3 Fix shift click ghost item when click is cancelled 2021-04-26 01:35:44 +02:00
TheMode 4eaa15477b Potentially fix cursor ghost item when opening a new inventory 2021-04-24 19:14:19 +02:00
TheMode 5390cd14f0 Simplify double click handling 2021-04-20 07:29:01 +02:00
TheMode e9b5779b24 Simplify shift click handling, fix click processor ignoring non-air slot 2021-04-20 06:41:55 +02:00
TheMode 1daaeda63f Temporary fix for shift click 2021-04-19 20:09:42 +02:00
TheMode dc5b764732 Inventory id generation cleanup 2021-04-14 07:25:51 +02:00
TheMode 97f2f3f06c Fix inventory id overflow 2021-04-14 05:03:37 +02:00
TheMode 1e99810451 Inventory title can be raw string 2021-04-12 16:42:57 +02:00
TheMode 7e3035709f Annotation, fix cursor item not being cleared 2021-04-12 00:42:32 +02:00
TheMode 8e9d7098e5 Allow custom transaction type, simplify inventory superclasses 2021-04-12 00:33:27 +02:00
TheMode e19af0377c Merge branch 'master' into item-api
# Conflicts:
#	src/main/java/net/minestom/server/item/ItemDisplay.java
#	src/main/java/net/minestom/server/utils/binary/BinaryReader.java
2021-04-09 23:19:38 +02:00
TheMode c2f302ad0e Fix Inventory never being null when clicking inside an inventory (when the click happens on a player inventory slot) 2021-04-08 17:47:44 +02:00
themode d6b6d41f41 Fix Inventory not using a Component as title 2021-04-04 15:33:53 +02:00
TheMode 6218d2a78e All inventories should implement InventoryClickHandler
Signed-off-by: TheMode <themode@outlook.fr>
2021-04-04 03:37:57 +02:00
TheMode 51d290cae9 Share more data between PlayerInventory & Inventory
Signed-off-by: TheMode <themode@outlook.fr>
2021-04-04 03:36:31 +02:00
Konstantin Shandurenko fdfd20e255 InventoryModifier to AbstractInventory and additional methods for inventories 2021-04-04 03:56:44 +03:00
themode f52e10c2b2 Added InventoryModifier#replaceItemStack 2021-04-03 15:01:36 +02:00
themode 0478b696f4 Inventory code cleanup 2021-04-03 03:43:13 +02:00
themode 9abbef35ae Reduce code duplication 2021-04-03 00:03:36 +02:00
themode 56bba41f68 Cleanup 2021-04-02 22:50:20 +02:00
themode a128d30b6b WIP Item rework implementation 2021-04-02 18:13:02 +02:00
jglrxavpok 43957805fd Handshake and login packets, even more readable server packets 2021-03-30 19:42:40 +02:00
themode 7f0dc6d40a Rename InventoryType#getAdditionalSlot to InventoryType#getSize 2021-03-29 17:36:18 +02:00
themode d83abcef85 Fix inventory click on size non-divisible by 9 2021-01-20 08:18:00 +01:00