Commit Graph

71 Commits

Author SHA1 Message Date
Németh Noel
83d751ecf2 Move and rename ChunkUtils.toSectionRelativeCoordinate, added tests 2022-01-10 16:51:21 +01:00
themode
f6db75b9aa Replace getSectionAt to getChunkCoordinate 2022-01-10 16:51:21 +01:00
jglrxavpok
34030e3a8f Bump Hephaistos version + fix loading of <0 sections for 1.18 worlds 2022-01-10 16:51:21 +01:00
TheMode
f52cc8d82b Prepare changes for the biome api
Signed-off-by: TheMode <themode@outlook.fr>
2022-01-10 16:51:21 +01:00
TheMode
faa289a097
Entity tracking rework (#486) 2021-11-01 18:04:00 +01:00
TheMode
f1a1adc74f Issue fixed in GraalVM 21.3
Signed-off-by: TheMode <themode@outlook.fr>
2021-09-16 05:08:49 +02:00
TheMode
7737d0e5b3 Cleanup MultiBlockChangePacket
Signed-off-by: TheMode <themode@outlook.fr>
2021-09-14 08:14:14 +02:00
TheMode
7b059d2be5 Remove redundant comments/methods
Signed-off-by: TheMode <themode@outlook.fr>
2021-09-12 02:34:29 +02:00
TheMode
0c5b37ed18 Optimize unnecessary chunk coordinate conversion
Signed-off-by: TheMode <themode@outlook.fr>
2021-09-11 01:04:11 +02:00
TheMode
1c719a2fd7 Make getChunkCoordinate smarter and more efficient
Signed-off-by: TheMode <themode@outlook.fr>
2021-09-09 06:57:46 +02:00
TheMode
e1c4a7afce Fix chunk 0 being sent multiple time
Signed-off-by: TheMode <themode@outlook.fr>
2021-09-07 20:14:15 +02:00
TheMode
4a260b98c2 Simplify/Improve getChunksInRange
Signed-off-by: TheMode <themode@outlook.fr>
2021-09-07 19:58:26 +02:00
TheMode
96bfc4c6fa Add getters for chunk coordinates in Point
Signed-off-by: TheMode <themode@outlook.fr>
2021-09-04 15:29:20 +02:00
TheMode
d61174235b Use intrinsics math floor 2021-07-30 18:33:37 +02:00
TheMode
94a96d7df1 Improve entity chunk switch 2021-07-21 08:25:44 +02:00
TheMode
a074117ea5 Simplify optionalLoadAll 2021-07-20 19:10:53 +02:00
TheMode
1dc80d6b87 Simplify movement processing 2021-07-20 07:05:08 +02:00
TheMode
bca3324b56 Limit chunk map lookup while moving 2021-07-20 06:17:13 +02:00
TheMode
86376d431e Remove unused method 2021-07-13 18:12:46 +02:00
TheMode
2ad0263101 Inline ChunkUtils#retrieve to avoid computing chunk coordinate twice 2021-07-13 18:10:34 +02:00
TheMode
66bac1b532 Small math improvement 2021-07-13 02:26:30 +02:00
TheMode
8597d93e22 Optimize block collision check 2021-07-11 20:44:37 +02:00
TheMode
7cf5821341 Annotations 2021-07-11 03:26:08 +02:00
TheMode
b9679bc1ac Initial future commit 2021-07-11 02:54:02 +02:00
TheMode
45d7420397 Remove most Position/BlockPosition usage 2021-07-08 18:56:40 +02:00
TheMode
fff78cdf94 Move coordinate package 2021-07-08 13:48:28 +02:00
TheMode
080efa5eba Add toString impl 2021-07-07 19:04:14 +02:00
TheMode
28dca16b29 Initial position api implementation 2021-07-06 20:44:24 +02:00
TheMode
a641c2415a Fix block index computation 2021-06-22 18:28:52 +02:00
TheMode
3b6b1e9859 Improve block indexing 2021-06-22 14:13:51 +02:00
TheMode
94e92741c8 Reuse chunk code 2021-06-12 13:37:37 +02:00
TheMode
9cf897a4cc Remove empty lines 2021-05-10 01:17:43 +02:00
Németh Noel
5b41f3ffd0 Spiral chunk loading 2021-05-05 17:05:22 +02:00
TheMode
683a6d35fa Merge branch 'master' into tickable
# Conflicts:
#	src/main/java/net/minestom/server/entity/Entity.java
#	src/main/java/net/minestom/server/instance/DynamicChunk.java
#	src/main/java/net/minestom/server/instance/Instance.java
2021-04-14 20:06:35 +02:00
TheMode
6e0202c33b Fix math, improve physics performance 2021-04-11 03:21:38 +02:00
TheMode
032343011a Reduce map lookup when looping through surrounding custom blocks 2021-04-10 22:03:03 +02:00
TheMode
c74946cc3c Cache entity current chunk 2021-04-10 21:42:45 +02:00
jglrxavpok
43957805fd Handshake and login packets, even more readable server packets 2021-03-30 19:42:40 +02:00
themode
4f2ec0a65f Fix chunk coordinates not being properly calculated 2021-03-13 23:04:15 +01:00
themode
3ecace5bd6 Introduce the Tickable interface 2021-03-11 20:54:30 +01:00
themode
c01736f863 Use doubles instead of floats to represent Position and Vector 2021-01-25 13:47:13 +01:00
themode
0658d1659c Renamed ChunkSupplier#createChunk 2020-12-15 04:21:26 +01:00
themode
acc013be6a Fixed glitched chunks when teleporting a player + divided teleportation count by 2 during first join 2020-11-22 13:56:36 +01:00
themode
a8ef335ac5 Added docs folder for GitHub Pages 2020-11-15 23:39:49 +01:00
themode
2285c9622a If the garbage collector is happy, everyone is - TheMode 2020-11-15 08:03:33 +01:00
themode
55cddf6b78 Added palette 2020-11-11 17:13:36 +01:00
themode
0ee8eb7d45 Removed the instance from Chunk constructor 2020-11-05 22:37:04 +01:00
themode
2e4a2f57cf Cleanup and catch some NPE 2020-10-31 04:38:53 +01:00
themode
660a67e53e English fix 2020-10-15 21:16:31 +02:00
themode
b118fc717b Cleanup 2020-10-10 06:07:28 +02:00