Commit Graph

48 Commits

Author SHA1 Message Date
TheMode 6ecede145e
Improve tag performance + concurrency tests (#1165) 2022-06-25 10:36:50 +02:00
TheMode 5839ec71cc Make ItemMetaView.Builder extends ItemMeta.Builder
Signed-off-by: TheMode <themode@outlook.fr>
2022-04-15 02:31:58 +02:00
TheMode 63b40deb34
Item API refactoring (#904) 2022-04-13 17:57:15 +02:00
themode b906bd89ce Oops 2022-03-10 16:07:56 +01:00
Moulberry ad37cc8cf3 Fix pickblock (null nbt instead of empty nbt) (#553) 2022-01-10 16:51:21 +01:00
themode c45f7b2067 Offer default impl to create empty meta 2022-01-10 16:51:21 +01:00
themode 731f571645 Improve item creation from nbt 2022-01-10 16:51:21 +01:00
themode f1112fc865 Item impl cleanup 2022-01-10 16:51:21 +01:00
Xavier Niochaut 9ab4277502 Port to Hephaistos v2 (#424) 2022-01-10 16:51:21 +01:00
TheMode 972e15a62b Add basic block entity support, simplify code
Signed-off-by: TheMode <themode@outlook.fr>
2022-01-10 16:51:21 +01:00
TheMode 8cbd6460f4 Cleanup...
Signed-off-by: TheMode <themode@outlook.fr>
2021-09-05 03:40:30 +02:00
TheMode 3ff5a7f414 Implement `toString` for registry objects 2021-08-13 21:15:43 +02:00
TheMode 0db44545cd Do not copy collections unless necessary 2021-08-13 03:25:11 +02:00
TheMode 6db55ce91f Always flip
Signed-off-by: TheMode <themode@outlook.fr>
2021-08-03 20:02:27 +02:00
TheMode fbf6479135 Fix item meta writing
Signed-off-by: TheMode <themode@outlook.fr>
2021-08-03 19:44:10 +02:00
TheMode 1c3bb5b0ff First NIO attempt
Signed-off-by: TheMode <themode@outlook.fr>
2021-08-03 12:57:13 +02:00
TheMode 111d5b9b66 Reduce ItemMeta allocation 2021-07-19 04:34:42 +02:00
TheMode a61ff53189 Remove deprecated ItemTag 2021-07-19 04:27:44 +02:00
TheMode e772aace71 Initial reusable meta builder 2021-06-27 17:36:37 +02:00
TheMode bf44625730 Add experimental tags 2021-06-26 05:08:33 +02:00
TheMode a9086e83f2 Improve tag API 2021-06-22 02:51:04 +02:00
TheMode 7e5940d1a5 Rename TagReadable & TagWritable 2021-05-17 18:26:38 +02:00
TheMode 418fc8b4be Deprecate old tag getters in ItemMeta 2021-05-17 17:50:05 +02:00
TheMode 354b4e3bc3 Replace ItemTag 2021-05-17 17:46:56 +02:00
TheMode 6a712b33a0 Revert "Added CachedObject to access a single-object cache"
This reverts commit 1c39e06d
2021-05-13 08:32:26 +02:00
TheMode 1c39e06d55 Added CachedObject to access a single-object cache 2021-05-13 08:06:42 +02:00
TheMode b68c30423c Add BinaryWriter#write(ByteBuf) 2021-04-14 01:40:21 +02:00
TheMode ea3aedd76f ItemMeta#getOrDefault annotation 2021-04-11 17:05:32 +02:00
TheMode e0c2c4b655 Support for canPlace & canDestroy meta 2021-04-11 00:42:09 +02:00
TheMode 0619b1b14b Fix immutability inside ItemMeta 2021-04-10 18:36:20 +02:00
TheMode bd3c678bde Add HoverEventSource to ItemStack 2021-04-10 17:01:50 +02:00
TheMode d1f8e60a7e Cache meta binary 2021-04-10 00:55:18 +02:00
TheMode f5b8f267d6 Clone instead of caching 2021-04-10 00:25:50 +02:00
TheMode 5e8e7cbaf4 Rename nbt method to remove confusion about the object being mutable or not 2021-04-10 00:24:29 +02:00
TheMode d6e7c9a635 Handle nbt directly inside builders instead of lazily 2021-04-09 23:57:05 +02:00
TheMode e4a26df2b6 Rename ItemMeta#nbt, remove unnecessary cache 2021-04-09 23:16:57 +02:00
themode 5a5531723c Fix original nbt overwriting modified meta 2021-04-04 21:34:48 +02:00
themode c8fbf47bd9 Impl ItemMeta#getOrDefault 2021-04-03 15:50:34 +02:00
themode 4741c932a0 Add ItemTag 2021-04-03 15:45:46 +02:00
themode d1c10243a8 ItemMeta doesnt need to be cloneable 2021-04-03 04:07:27 +02:00
themode 785e002a50 Improve documentation 2021-04-03 00:21:23 +02:00
themode 8d8a22f209 Use original NBT when possible 2021-04-02 22:14:48 +02:00
themode 2b0c525ca2 Implement ItemStack#equals & use a soft reference to store meta cached NBT 2021-04-02 19:10:46 +02:00
themode 7dcc52de57 Support item stacking, cleanup 2021-04-02 18:25:20 +02:00
themode a128d30b6b WIP Item rework implementation 2021-04-02 18:13:02 +02:00
themode cf0450f21f Only make immutable lists when built 2021-04-02 14:02:24 +02:00
themode 3ba74639bf Added Item#getUuid 2021-04-01 22:28:32 +02:00
themode cbfeb4e15b WIP meta support 2021-04-01 20:02:03 +02:00