Commit Graph

46 Commits

Author SHA1 Message Date
TheMode
7a9b08b085 Improve Registry.Container
Signed-off-by: TheMode <themode@outlook.fr>
2022-01-14 10:45:44 +01:00
themode
a31f885cc7 Fix default tag value on blocks 2022-01-10 16:51:21 +01:00
themode
4b89ce33ee Add ArrayUtils#toMap 2022-01-10 16:51:21 +01:00
themode
f3221ff412 Make BlockImpl a record 2022-01-10 16:51:21 +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
Xavier Niochaut
9ab4277502 Port to Hephaistos v2 (#424) 2022-01-10 16:51:21 +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
TheMode
1b4e0519ee Add experimental Block#possibleStates
Signed-off-by: TheMode <themode@outlook.fr>
2021-10-25 16:17:12 +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
e65c9f6a79 Avoid block allocation if the properties map is the same
Signed-off-by: TheMode <themode@outlook.fr>
2021-09-20 18:09:16 +02:00
TheMode
748b24b8ef Expand block properties error 2021-08-25 18:26:45 +02:00
TheMode
2339fe1c07 Cache BlockImpl hashcode 2021-08-16 20:07:57 +02:00
TheMode
88ec8ddffa Fix block hashcode 2021-08-13 05:40:29 +02:00
TheMode
35d63ae547 Implements #equals for BlockImpl 2021-08-11 21:28:13 +02:00
TheMode
ba63fe5b63 Remove PropertyEntry map wrapper 2021-08-04 17:45:17 +02:00
TheMode
db9906d0ae Override Block#toString 2021-08-01 13:01:56 +02:00
TheMode
d0ace7f10e Simplify BlockImpl 2021-07-30 17:34:39 +02:00
TheMode
53dea325f9 Move BlockLoader into impl class 2021-07-30 17:16:52 +02:00
TheMode
6aa55ad7b6 Cleanup 2021-07-24 03:31:03 +02:00
TheMode
d146aacd36 Cleanup 2021-07-23 16:14:42 +02:00
TheMode
11b2426629 Micro optimize block properties map 2021-07-23 15:44:53 +02:00
TheMode
efc135f48a Handle empty list case, let the try-catch handle NPE 2021-07-20 23:48:13 +02:00
TheMode
4d2b925edd Improve block#withProperty/ies performance 2021-07-19 23:59:40 +02:00
TheMode
99d4682655 Prevent nbt copy when placing a block 2021-07-10 20:41:22 +02:00
TheMode
98f645b344 Micro cleanup 2021-07-10 20:26:30 +02:00
TheMode
a8a9f59715 Remove BlockEntry 2021-07-10 18:42:02 +02:00
TheMode
b419ce88c1 Improve block getter performance 2021-07-09 00:42:43 +02:00
TheMode
b541ef4a74 Simplify block implementation 2021-06-26 20:23:56 +02:00
TheMode
af9e102ec1 Add documentation to Block 2021-06-23 18:29:19 +02:00
TheMode
4bbd89f78d Rename BlockImpl 2021-06-23 17:41:46 +02:00
TheMode
2d57235198 Remove legacy methods 2021-06-16 00:33:25 +02:00
TheMode
9c77ab267e Rework Block implementation (BlockTest) 2021-06-14 13:31:14 +02:00
TheMode
d6a2a5b316 Added CampfireHandler demo 2021-06-12 19:17:50 +02:00
TheMode
7079225045 Remove BlockData.java 2021-06-11 17:33:18 +02:00
TheMode
8b0991139d WIP property retrieval 2021-05-30 23:37:22 +02:00
TheMode
d937660cf8 Improve Block interface 2021-05-29 00:34:01 +02:00
TheMode
41f769b8b2 Rename #getBlockId to #getId 2021-05-28 14:35:55 +02:00
Articdive
674c6d6182
Add Supplier instead of direct reference and fix a @NotNull error. 2021-05-25 19:07:26 +02:00
TheMode
b31f76615a Fix connection 2021-05-25 13:20:44 +02:00
Articdive
042311d5e3
Download data to the correct directory and remove redundancy. 2021-05-25 10:42:39 +02:00
TheMode
47c7e36b1d Fix remaining errors 2021-05-24 23:39:22 +02:00
TheMode
86f7fa7e27 Fix more errors 2021-05-24 21:39:30 +02:00
Articdive
dba8b65c03
Add the Block Data API and Block Generator. 2021-05-22 21:56:01 +02:00