Commit Graph

131 Commits

Author SHA1 Message Date
GoldenStack 1a497115b0 Inventory rework (88 squashed commits) 2024-04-11 22:27:51 +02:00
GreatWyrm 877e2bb4f2
chore: Cleanup some deprecations in the project (#2084) 2024-04-09 21:14:29 +00:00
TheMode ba2816fc74
Buffer API rework (#1485) 2022-10-28 19:27:48 +02:00
TheMode cda46d184e Move item impl code to the impl class
Signed-off-by: TheMode <themode@outlook.fr>
2022-06-25 11:34:09 +02:00
TheMode 1384bc0c18 ItemStack.Builder should only be TagWritable
Signed-off-by: TheMode <themode@outlook.fr>
2022-05-02 21:51:33 +02:00
TheMode 3f98bde82e No need to return a new meta
Signed-off-by: TheMode <themode@outlook.fr>
2022-04-21 18:43:42 +02:00
TheMode 3c0abb0409 Make ItemStack.Builder extends Taggable
Signed-off-by: TheMode <themode@outlook.fr>
2022-04-20 23:14:37 +02:00
TheMode e026a841ab Improve creation of item builder
Signed-off-by: TheMode <themode@outlook.fr>
2022-04-14 00:50:19 +02:00
TheMode 63b40deb34
Item API refactoring (#904) 2022-04-13 17:57:15 +02:00
TheMode af43c977bd
Tag nbt conversion (#901) 2022-04-10 10:01:39 +02:00
TheMode 4e6c92e2c5
Unique stacking rule (#844) 2022-04-01 01:00:18 +02:00
themode b906bd89ce Oops 2022-03-10 16:07:56 +01:00
TheMode 6340a10331 Improve item lore
Signed-off-by: TheMode <themode@outlook.fr>
2022-01-22 23:22:00 +01:00
themode c5141f4145 Material can be compared using identity 2022-01-10 16:51:21 +01:00
themode 731f571645 Improve item creation from nbt 2022-01-10 16:51:21 +01:00
themode b8e6d95880 Shortcut for withMeta 2022-01-10 16:51:21 +01:00
themode 639d19fced ItemStack#withAmount does not need to pass through the builder 2022-01-10 16:51:21 +01:00
Calvin 02cc29cd06 fix ItemStack#asHoverEvent 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 549a9a9b52 Allow meta type to be explicitly defined in lambda
Signed-off-by: TheMode <themode@outlook.fr>
2021-11-14 17:22:01 +01:00
Matt Worzala 220a4db768
mark BundleMeta experimental, shorten material nsid access 2021-08-30 18:09:08 -04:00
Matt Worzala 5b8051e2e8
experimental tags, docs, shorten item creation 2021-08-30 18:00:57 -04:00
Matt Worzala 8291639749
add BundleMeta and full item to/from nbt 2021-08-30 17:51:19 -04:00
TheMode 6541951aaa Add experimental `ItemStack#withMeta` with direct reference 2021-08-21 04:45:19 +02:00
TheMode 3ff5a7f414 Implement `toString` for registry objects 2021-08-13 21:15:43 +02:00
TheMode 7fae70ebc1 Add experimental ItemStack#consume 2021-07-23 01:47:43 +02:00
TheMode cb21b0baf5 Merge branch 'master' into new-block-api 2021-07-20 22:18:43 +02:00
TheMode 40ae462d89 Fix NPE 2021-07-20 22:18:24 +02:00
TheMode 6079f87b38 Merge branch 'master' into new-block-api 2021-07-20 22:16:00 +02:00
LeoDog896 8a7d13c8ad Make the constant static? 2021-07-20 14:07:16 -04:00
LeoDog896 8e849ad947 Add constant in ItemStack for VanillaStackingRule 2021-07-20 14:03:55 -04:00
TheMode a61ff53189 Remove deprecated ItemTag 2021-07-19 04:27:44 +02:00
TheMode a9086e83f2 Improve tag API 2021-06-22 02:51:04 +02:00
TheMode ffca5eea00 Added ItemStack#withTag 2021-05-28 17:05:14 +02:00
TheMode d4fc6a094a Make ItemStack TagReadable 2021-05-28 17:00:48 +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 6b5f755bfd Allow null nbt, remove NBTUtils.loadItem 2021-04-18 04:44:16 +02:00
TheMode a3f1235df4 Stacking rule should be defaulted to vanilla if null 2021-04-13 23:15:51 +02:00
TheMode 49944fb651 Keep StackingRule across builders 2021-04-13 09:24:37 +02:00
TheMode 70b97951e4 Added setter for StackingRule 2021-04-13 05:50:11 +02:00
TheMode 61d2ef2f06 Fix ItemStack#fromNBT 2021-04-13 03:45:01 +02:00
TheMode 508659fd30 Fix potential race condition 2021-04-13 03:29:55 +02:00
TheMode 2b74d7697c Added ItemStack#fromNBT 2021-04-13 03:27:51 +02:00
TheMode 32430882a5 ItemStack is final 2021-04-13 03:10:04 +02:00
TheMode 792dd9787f Remove ItemStore API until a stable solution is found 2021-04-11 17:01:05 +02:00
TheMode bd3c678bde Add HoverEventSource to ItemStack 2021-04-10 17:01:50 +02:00
themode d1d973018e Lore is non-null 2021-04-04 20:49:21 +02:00
themode 005d70e3a6 Annotation + ItemStoreBuilder should be more like a builder 2021-04-04 17:54:05 +02:00
themode ca41365453 Added some useful store methods 2021-04-03 19:35:03 +02:00
themode dfa7d712c2 Initial ItemStore support 2021-04-03 19:08:07 +02:00