Commit Graph

65 Commits

Author SHA1 Message Date
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 9439b62ff0 chore: port DamageType cleanup change from MelonHell 1.19.4 PR
(cherry picked from commit 9eab3d4f8b)
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
iam 912fb34f17 hollow-cube/lighting (#13)
* Lighting

* Remove invalidate

* Private

* Fix chunk loading

* Small fixes

* Fix loading light from anvil world

* Fix solid

* Temporary

* Fix tests, add seagrass and tall seagrass to diffusion list

* Make test faster, replace hephaistos

* Cleanup

* Assume failed test

* Fix chunk not getting invalidated

(cherry picked from commit f13a7b49fa)
2024-02-09 14:27:43 -05:00
Matt Worzala 8f1f7e127d 1.19.4 (#11)
* first join

* add new entities

* fix type on interpolation duration

* switch long to var long

* switch long to var long, round 2

* add flags to TextDisplay

* 1.19.4

* setView in Entity#teleport

* do not trigger touchTick if entity physics are disabled

* Add new 1.19.4 packets

* constant expr

* no localhost on github actions

* yoinked changes from 1.19.3 main

* update to forked changes

* remove potion command

* remove potion command

---------

Co-authored-by: GreatWyrm <alecmusante@gmail.com>

(cherry picked from commit 7f3144337d)
2024-02-09 14:27:43 -05:00
GoldenStack c5047b8037
Fix enchantment registry reading (#1902)
Signed-off-by: GoldenStack <goldenfire64yt@gmail.com>
2023-07-13 18:37:58 -04:00
TheMode 1dd2cc72ee
1.19.2 (#774) 2022-09-05 13:54:58 +02:00
TheMode ace42b6f46 Make ObjectArray interface
Signed-off-by: TheMode <themode@outlook.fr>
2022-05-18 08:54:55 +02:00
TheMode 50a7d7ca81 ShapeImpl should not depend on the block material
Signed-off-by: TheMode <themode@outlook.fr>
2022-04-13 12:07:43 +02:00
iam 6891a530f5
Block Collision Physics (#730) 2022-03-09 19:08:42 +01:00
themode 96fee8541d Move ObjectArray 2022-03-02 11:44:11 +01:00
TheMode 0f352a8f92 Fix potion registry
Signed-off-by: TheMode <themode@outlook.fr>
2022-02-07 23:26:30 +01:00
TheMode 0743759eed
Do not cache registry (#651) 2022-02-04 22:28:05 +01:00
TheMode 374e534c0a Container performance
Signed-off-by: TheMode <themode@outlook.fr>
2022-01-14 10:50:54 +01:00
TheMode 7a9b08b085 Improve Registry.Container
Signed-off-by: TheMode <themode@outlook.fr>
2022-01-14 10:45:44 +01:00
themode 77a14c0750 Use map copies for possible properties 2022-01-10 16:51:21 +01:00
themode 089a90df52 Use collection copies 2022-01-10 16:51:21 +01:00
TheMode 4008398058 Use jdk collections for registry storage
Signed-off-by: TheMode <themode@outlook.fr>
2022-01-10 16:51:21 +01:00
TheMode 7f8c90ba2d Remove unnecessary changes
Signed-off-by: TheMode <themode@outlook.fr>
2022-01-10 16:51:21 +01:00
TheMode b1a5e055df Fix build
Signed-off-by: TheMode <themode@outlook.fr>
2022-01-10 16:51:21 +01:00
TheMode e3b59c3b95 Make new packets record (reading method still to be defined)
Signed-off-by: TheMode <themode@outlook.fr>
2022-01-10 16:51:21 +01:00
TheMode eb6b37f20b Retrieve block entity id
Signed-off-by: TheMode <themode@outlook.fr>
2022-01-10 16:51:21 +01:00
TheMode e75b9f238d Update registry data
Signed-off-by: TheMode <themode@outlook.fr>
2021-11-10 16:45:46 +01:00
TheMode b298334d24
Decrease memory footprint of the registry cache (#521) 2021-11-07 13:40:54 +01:00
TheMode ec2d164e7b Add internal `ObjectArray`
Signed-off-by: TheMode <themode@outlook.fr>
2021-11-06 14:07:42 +01:00
TheMode c745f1e064 Assume ids to start from 0 and increase 1 by 1. Improve lookup performance
Signed-off-by: TheMode <themode@outlook.fr>
2021-11-06 12:49:36 +01:00
Matt Worzala 3c072906b7
Use Registry classloader for loading resources instead of system classloader. 2021-10-26 09:15:36 -04:00
TheMode b308ce5baa
Update to Java 17 (#462) 2021-10-22 01:55:55 +02:00
TheMode 68ff09df8a Initialized field can be made final, as it happen earlier during construction
Signed-off-by: TheMode <themode@outlook.fr>
2021-10-17 14:33:18 +02:00
TheMode 999d774f90 Trim registry hashmaps to improve lookup performance
Signed-off-by: TheMode <themode@outlook.fr>
2021-10-17 14:29:27 +02:00
TheMode 36f3355a12 Use for-each 2021-08-10 01:17:44 +02:00
TheMode e0cfd4c33c Improve registry data load 2021-08-01 15:39:11 +02:00
TheMode bf48154aee Cache registry collections 2021-08-01 12:05:10 +02:00
TheMode e150a6542a More specific Registry annotation/doc 2021-07-31 17:57:46 +02:00
TheMode 53dea325f9 Move BlockLoader into impl class 2021-07-30 17:16:52 +02:00
TheMode f865a7b9dd Reduce registry boilerplate 2021-07-30 15:29:05 +02:00
TheMode 3dd35c1605 Use a single registry-impl class per type 2021-07-30 15:08:06 +02:00
TheMode 24e4b8765e Remove resource gatherer, retrieve tags from our own data generator 2021-07-29 12:54:16 +02:00
TheMode 5ff7667691 Add `maxDamage` for Material registry 2021-07-28 17:00:16 +02:00
TheMode 13b7039721 Replace most enums 2021-07-28 14:29:28 +02:00
TheMode a6a657b9b8 Make Enchantment an interface 2021-07-28 13:27:49 +02:00
TheMode 8dff4227eb Rename registry resource enum 2021-07-28 13:02:12 +02:00
TheMode 274a40ea27 Make EntityType an interface 2021-07-27 11:56:20 +02:00
TheMode 00b991e970 Add translation keys 2021-07-27 10:51:38 +02:00
TheMode c549ec1663 Remove legacy registry methods 2021-07-27 09:55:01 +02:00
TheMode d685a7b136 Make Material an interface 2021-07-27 09:40:57 +02:00
TheMode 5b044a2d38 Update Registry to retrieve a block material 2021-07-27 08:48:45 +02:00
TheMode 3a93ab045a Fix with the latest version of MinestomData 2021-07-24 11:22:59 +02:00
TheMode af9e102ec1 Add documentation to Block 2021-06-23 18:29:19 +02:00