Commit Graph

111 Commits

Author SHA1 Message Date
themode
d83abcef85 Fix inventory click on size non-divisible by 9 2021-01-20 08:18:00 +01:00
themode
023431e32a Use ordinal as the id in InventoryType 2021-01-20 05:35:41 +01:00
KrystilizeNevaDies
feb1d8f0e9
missing comma 2021-01-20 13:31:45 +10:00
KrystilizeNevaDies
b08a75fc03
Add SMITHING to InventoryType 2021-01-20 13:31:01 +10: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
e0afe62c66 Comment about getItemStacks() array modification 2021-01-13 08:39:33 +01:00
themode
9d8e9276f6 Added the convenient InventoryModifier#copyContents 2021-01-13 08:28:37 +01:00
Tyan
c702e94937 Made some field in PlayerInventory protected for allowing usage in child classes 2021-01-08 12:29:59 +01:00
themode
c52b86822b Optimize equipment packet creation 2021-01-03 22:05:18 +01:00
themode
5ba68be4a1 Update equipments when clearing a player inventory 2021-01-03 21:59:58 +01:00
themode
1c916b92fa Use offset constant 2021-01-02 13:16:02 +01:00
Matt Worzala
dc4d7d63e2
fix formatting 2021-01-02 07:03:39 -05:00
Matt Worzala
720422c031
remove irrelevant comment 2021-01-02 07:02:39 -05:00
Matt Worzala
0b9b95e6cb
remove debugging code & use inventory offset constant 2021-01-02 06:51:21 -05:00
Matt Worzala
1f60330abe
Fix double click result handling 2021-01-02 04:40:24 -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
themode
bf10f0d3f7 Fixed thread crash when clicking in a non interactive inventory slot (-1) 2020-12-15 05:47:18 +01:00
themode
e1a886aa3a Fix SetSlotPacket 2020-12-15 05:39:28 +01:00
themode
f2c586177f Cache the unmodifiable viewers set to mitigate object allocation 2020-12-14 06:27:39 +01:00
Felix Cravic
f7c05a445e Remove #copy 2020-12-09 21:34:53 +01:00
themode
0e6bb6cc3d Replaced Arrays.copyOf to native #clone 2020-11-21 09:35:50 +01:00
themode
540405e796 Optimized PacketCompressor 2020-11-16 11:41:03 +01:00
themode
2285c9622a If the garbage collector is happy, everyone is - TheMode 2020-11-15 08:03:33 +01:00
themode
c60f625c55 Revamp of the packet sending code, added possibility to have listeners for outgoing packets 2020-11-13 07:43:35 +01:00
themode
3ddca82aaa Cleanup 2 2020-11-10 08:01:27 +01:00
themode
8612245ff9 Added precison to the InventoryModifier comments 2020-11-04 18:22:42 +01:00
themode
c03a2992ef Stop the whole click process if the event is canceled 2020-11-04 15:41:56 +01:00
themode
0184ada9a0 Renamed #clone to #copy 2020-10-31 18:03:15 +01:00
themode
d49ddc52b6 Nodes in command can now be shared with each other 2020-10-28 01:02:12 +01:00
themode
a7d23bfa50 Added more click types + fix inventory click cancel 2020-10-26 20:46:22 +01:00
themode
0337fff50f Fixed shift click ignoring canceled events 2020-10-26 19:31:25 +01:00
themode
3fe58b6b20 Inventories are now DataContainer 2020-10-26 19:14:50 +01:00
themode
a8796382b7 Clear cache of viewed boss bars and advancement tabs once the player disconnect 2020-10-25 12:28:06 +01:00
themode
2f21a7c233 More annotations. 2020-10-24 11:19:54 +02:00
themode
3d96b7a4b4 A lot of annotations a bit everywhere. 2020-10-24 10:46:23 +02:00
themode
34e7bfe69d Reduces the number of ItemStack#clone calls in inventory clicks 2020-10-22 19:18:08 +02:00
themode
3cb880cf80 General cleanup 2020-10-22 12:55:53 +02:00
themode
ac362cf7ac Explanation for ResponseDataConsumer ang general comment cleanup 2020-10-17 13:24:18 +02:00
themode
9e2e48f79c Fix bug when you could send a break a custom block with a finished digging packet 2020-10-16 09:12:31 +02:00
themode
660a67e53e English fix 2020-10-15 21:16:31 +02:00
themode
bd3335ae1d General cleanup 2020-10-15 08:48:13 +02:00
themode
50326b676c Added PotionEffect 2020-10-15 05:29:48 +02:00
themode
3663a292f1 Comments for the inventories classes 2020-10-14 16:41:36 +02:00
themode
bf0ec9f133 Added ItemStack#setMaterial and information about automatic refresh 2020-10-14 16:33:32 +02:00
themode
af1f976e53 Comments 2020-10-11 18:57:24 +02:00