Commit Graph

58 Commits

Author SHA1 Message Date
TheMode 0173aace98 Rename collisionShape
Signed-off-by: TheMode <themode@outlook.fr>
2022-04-24 07:11:22 +02:00
themode 8dfaa90d13 Light engine 2022-04-24 06:56:53 +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
TheMode 77ef11ef30 Rename destroySpeed to hardness 2021-06-23 01:53:04 +02:00
TheMode eeb8f3fd65 Update to latest block file 2021-06-22 22:38:36 +02:00
TheMode 0d96ad5483 Use namespace object instead of string inside block registry 2021-06-19 21:02:47 +02:00
TheMode b612f3c257 Add block entity getter 2021-06-17 15:02:54 +02:00
TheMode 12848a08f2 Cache recurrent values 2021-06-16 18:11:42 +02:00
TheMode 84f22a6ed4 Replace float to double 2021-06-16 12:26:27 +02:00
TheMode a83482efb8 Improve memory usage 2021-06-15 13:45:23 +02:00