TheMode
63b40deb34
Item API refactoring ( #904 )
2022-04-13 17:57:15 +02:00
TheMode
4e6c92e2c5
Unique stacking rule ( #844 )
2022-04-01 01:00:18 +02:00
TheMode
ab982d0214
Make DragData record
...
Signed-off-by: TheMode <themode@outlook.fr>
2022-01-12 22:08:08 +01:00
TheMode
b9746a0574
Give InventoryClickEvent the proper inventory for drag clicks
...
Signed-off-by: TheMode <themode@outlook.fr>
2021-10-02 20:03:38 +02:00
TheMode
e71c420fa8
Remove unnecessary air check
...
Signed-off-by: TheMode <themode@outlook.fr>
2021-10-02 01:58:42 +02:00
TheMode
be4542e936
Ignore air when shift clicking
...
Signed-off-by: TheMode <themode@outlook.fr>
2021-09-16 19:21:36 +02:00
TheMode
ba8da0647e
Properly call click events for shift & double clicks
...
Signed-off-by: TheMode <themode@outlook.fr>
2021-09-16 18:57:13 +02:00
Moulberry
788bb71587
Fix initial startCondition of DOUBLE_CLICK being wrong as well
2021-09-08 23:22:22 +08:00
Moulberry
08c9339fae
Fix double-click calling startCondition on the wrong inventory
2021-09-08 22:55:48 +08:00
Moulberry
571624a952
Fix duplication glitch with shift-click
2021-09-08 22:45:11 +08:00
TheMode
a75910fe3f
Fix drag clicks
2021-08-29 00:07:58 +02:00
TheMode
2cf4e89694
Implement shift-click equip
2021-08-24 07:23:44 +02:00
TheMode
8fa590fdcd
Fix drag clicks
2021-08-23 04:02:06 +02:00
TheMode
8cf58fa397
Fix double click clickedItem
always being air
2021-08-14 18:21:01 +02:00
TheMode
1bdc50f4a0
Trust client's inventory prediction when possible
2021-08-13 20:41:59 +02:00
TheMode
70c757e8b5
Drag click cleanup, fix cursor item not being updated (thanks 1.17.1)
2021-08-12 20:49:03 +02:00
TheMode
c17f07e1d0
More inventory cleanup
2021-08-12 18:06:23 +02:00
TheMode
be07fdb647
Simplify InventoryClickProcessor
2021-08-11 20:35:30 +02:00
TheMode
5607652378
Fix incorrect held click slot
2021-08-11 19:51:08 +02:00
TheMode
911c983957
Merge branch 'master' into event-api
...
# Conflicts:
# src/main/java/net/minestom/server/entity/Player.java
# src/main/java/net/minestom/server/event/player/UpdateTagListEvent.java
# src/main/java/net/minestom/server/instance/Chunk.java
2021-06-14 00:11:41 +02:00
TheMode
9fed96abe2
Merge pull request #307 from Minestom/1.17
...
1.17 Update
2021-06-11 16:08:08 +02:00
TheMode
78cc392007
Merge branch 'master' into event-api
2021-06-10 14:42:07 +02:00
stefvanschie
99855a3ea7
Allow for cancelling at start and end of drag
2021-06-08 21:27:34 +02:00
stefvanschie
ddbd621535
Change dragging events
...
Now fires a start dragging, then a dragging for each slot and then an end dragging.
2021-06-08 19:55:11 +02:00
TheMode
56eead948a
Fix inventory click
2021-06-06 01:50:28 +02:00
TheMode
8b255651ab
Call events using EventDispatcher
2021-06-04 03:48:51 +02:00
Stef van Schie
cb4ce09d85
Remove deprecated click types
2021-05-28 20:24:02 +02:00
stefvanschie
2122685d5f
Split dragging into separate left and right drags
2021-05-23 21:42:16 +02:00
TheMode
ec9658e7d3
Fix shift click ghost item when click is cancelled
2021-04-26 01:35:44 +02:00
TheMode
b662e331f0
Fix shift clicks not being cancelled
2021-04-24 19:08:02 +02:00
TheMode
2773a2d46c
Make StackingRule an interface, support per item max size, fix double click stacking
2021-04-23 15:02:39 +02:00
TheMode
75da093475
Shift click code cleanup
2021-04-20 22:10:04 +02:00
TheMode
66513025c7
Fix thread safety with inventory click, add Internal annotation
2021-04-20 07:32:53 +02:00
TheMode
359d18e8a5
Remove unused class
2021-04-20 07:30:09 +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
2531161964
Fix drag click
2021-04-12 16:27:12 +02:00
TheMode
0ff9e3e435
Remove debug print
2021-04-12 04:05:18 +02:00
TheMode
8f6a651bda
Added StackingRule#apply with unary operator for amount
2021-04-12 01:27:33 +02:00
themode
68de2b1980
Cleanup
2021-04-04 15:44:09 +02:00
themode
ea58d0f693
Fix StackingRule not being used inside to retrieve item count
2021-04-04 15:41:05 +02:00
themode
a128d30b6b
WIP Item rework implementation
2021-04-02 18:13:02 +02:00
LeoDog896
fec05d6838
More fastutil usages
2021-01-15 16:04:57 -05:00
LeoDog896
3536bdc856
Microoptimization cleanup
...
Just some small microoptimizations including preferring fastutils, Removing unnecessary checks already dealt with using @NotNull, all since I had extra unplanned free time.
2021-01-15 11:08:11 -05:00
themode
2ec727d5f8
Fix InventoryClickResult not using the proper items
2021-01-01 13:43:43 +01:00
themode
c7876d648c
Fix NPE when clicking outside of the inventory to drop
2020-12-18 04:05:29 +01:00
themode
ed46bd0dc2
Annotation in InventoryClickProcessor
2020-12-16 03:51:13 +01:00
themode
5224eecdd1
Event unification (type-specific event, CancellableEvent is now an interface)
2020-12-16 03:21:59 +01:00
themode
5c9fd9294a
Fix PreClickEvent canceling being ignored when the inventory condition doesn't cancel
2020-12-15 06:04:58 +01:00
Felix Cravic
f7c05a445e
Remove #copy
2020-12-09 21:34:53 +01:00