Commit Graph

326 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
iam
7320437640
Optionally load vanilla biomes (#1988)
* Add biomes from vanilla

* cleanup

* rework biomes

* nullability

* getByName string

* expose vanilla biomes

* not null

* before rename

* rename

* nbt cache

* fix

* fix

* fix

* final on vanilla biome
2024-02-12 15:25:46 -05:00
Kil'jaeden
12da0c7e4a Added support for trim registries (#128)
* trim_material and trim_pattern registries are now generated, loaded and sent to the clients

* fixed override_armor_materials

* allowing TrimMaterial and TrimPattern to be created dynamically

* cleanup and formatting

(cherry picked from commit 70e4355ca1)
2024-02-09 14:27:43 -05:00
mworzala
351d2197b1 collect all server options in ServerFlag file, other minor changes 2024-02-09 14:27:43 -05:00
Matt Worzala
128c525b7c hollow-cube/placement-rule-improvement
* improve placement rule api and remove existing vanilla rules

* readme changes

(cherry picked from commit b0b640ccd7)
2024-02-09 14:27:43 -05:00
TogAr2
9abb3079f6
Fix item attributes not being read correctly (#1806) 2023-03-29 15:09:24 +02:00
TheMode
993af51556
Use NetworkBuffer in packets (#1487) 2022-10-29 11:02:22 +02:00
TheMode
ba2816fc74
Buffer API rework (#1485) 2022-10-28 19:27:48 +02:00
TheMode
c95ced9493 Misc intellij suggestions
Signed-off-by: TheMode <themode@outlook.fr>
2022-10-27 15:25:51 +02:00
KrystilizeNevaDies
83011eb903
fix written book meta to allow modern components (#1359) 2022-08-23 09:35:37 +10:00
Konstantin Shandurenko
284da06578
Fix for breaking blocks of mismatching properties in adventure mode (#1242) 2022-07-17 20:08:04 +02:00
TheMode
4a40805ca0 Fix attribute nbt
Signed-off-by: TheMode <themode@outlook.fr>
2022-06-30 23:21:32 +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
6ecede145e
Improve tag performance + concurrency tests (#1165) 2022-06-25 10:36:50 +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
Bloepiloepi
e57e3ff305
Fix enchantment reading (#938) 2022-04-17 21:51:16 +02:00
Bloepiloepi
ff7098a083
Item metadata fixes (#935) 2022-04-17 20:52:29 +02:00
TheMode
164cf9fe2b Fix FireworkEffectMeta
Signed-off-by: TheMode <themode@outlook.fr>
2022-04-15 04:44:34 +02:00
TheMode
1ad6caaf8b Add TagSerializer.fromCompound
Signed-off-by: TheMode <themode@outlook.fr>
2022-04-15 03:50:57 +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
e026a841ab Improve creation of item builder
Signed-off-by: TheMode <themode@outlook.fr>
2022-04-14 00:50:19 +02:00
TheMode
b3030a3eb2 Fix PlayerHeadMeta
Signed-off-by: TheMode <themode@outlook.fr>
2022-04-13 21:57:59 +02:00
TheMode
c9c2cc9ec8 Fix standalone view meta building
Signed-off-by: TheMode <themode@outlook.fr>
2022-04-13 21:22:13 +02:00
Konstantin Shandurenko
f1606362b7
Stacking rule can be changed now (#916) 2022-04-13 20:42:09 +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
1ad013e02e Remove deprecated data/storage APIs
Signed-off-by: TheMode <themode@outlook.fr>
2022-02-09 23:07:18 +01:00
TheMode
0743759eed
Do not cache registry (#651) 2022-02-04 22:28:05 +01:00
TheMode
6340a10331 Improve item lore
Signed-off-by: TheMode <themode@outlook.fr>
2022-01-22 23:22:00 +01:00
TheMode
7a9b08b085 Improve Registry.Container
Signed-off-by: TheMode <themode@outlook.fr>
2022-01-14 10:45:44 +01:00
Moulberry
ad37cc8cf3 Fix pickblock (null nbt instead of empty nbt) (#553) 2022-01-10 16:51:21 +01:00
themode
dd27edee50 Make ItemAttribute record 2022-01-10 16:51:21 +01:00
themode
6aaf5aa0ce Remove the concept of non-shared attribute 2022-01-10 16:51:21 +01:00
themode
9927665d91 Add direct access to nbt for meta subclasses 2022-01-10 16:51:21 +01:00
themode
c5141f4145 Material can be compared using identity 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
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
themode
d31b219294 Move basic meta reading 2022-01-10 16:51:21 +01:00
themode
b997b87dc1 Improve item meta creation performance 2022-01-10 16:51:21 +01:00
themode
4091f0ae8c More registry types can become record 2022-01-10 16:51:21 +01:00
themode
bf77918c96 Use optimized copies 2022-01-10 16:51:21 +01:00
themode
81aa3dde27 Make FireworkEffect record 2022-01-10 16:51:21 +01:00
themode
6e2cfa8b2e Simplify enchant nbt creation 2022-01-10 16:51:21 +01:00