Commit Graph

43 Commits

Author SHA1 Message Date
themode df64ce9653 Remove dependency from instance/entity for collisions 2022-03-13 23:28:31 +01:00
iam 6891a530f5
Block Collision Physics (#730) 2022-03-09 19:08:42 +01:00
TheMode ba77a9ea10 Make BlockSetter/Getter inner interfaces inside Block
Signed-off-by: TheMode <themode@outlook.fr>
2022-01-10 16:51:21 +01:00
TheMode b308ce5baa
Update to Java 17 (#462) 2021-10-22 01:55:55 +02:00
TheMode d53ef36586 Use an array instead of list
Signed-off-by: TheMode <themode@outlook.fr>
2021-09-18 22:14:46 +02:00
TheMode a3ff3b25c4 Add hint in BlockGetter to only retrieve a block type at a position (ignore the handler + nbt)
Signed-off-by: TheMode <themode@outlook.fr>
2021-09-18 16:18:41 +02:00
TheMode c89f049dad Reduce bounding box allocation 2021-08-13 10:12:28 +02:00
TheMode fe28ba6f04 Fast exit in CollisionUtils 2021-07-13 02:32:44 +02:00
TheMode d8b92d23ba Improve collision 2021-07-09 20:43:12 +02:00
TheMode fff78cdf94 Move coordinate package 2021-07-08 13:48:28 +02:00
TheMode ca2a2eb233 Rename with to apply 2021-07-08 13:22:04 +02:00
Németh Noel 8b35e0db9a Use remaining length when needed 2021-07-07 18:07:27 +02:00
Németh Noel 5ae26c44e1 Initial npe fix 2021-07-07 17:56:17 +02:00
Németh Noel da5abd3d4e rename getters 2021-07-06 22:59:45 +02:00
Németh Noel 65a97e5b00 Initial collision update 2021-07-06 22:26:11 +02:00
TheMode 28dca16b29 Initial position api implementation 2021-07-06 20:44:24 +02:00
TheMode 94e92741c8 Reuse chunk code 2021-06-12 13:37:37 +02:00
TheMode 86f7fa7e27 Fix more errors 2021-05-24 21:39:30 +02:00
TheMode 20ed4926c8 Fix entity collision 2021-04-28 15:02:06 +02:00
TheMode a6314abbad Improve physics performance 2021-04-24 12:41:52 +02:00
TheMode 6e0202c33b Fix math, improve physics performance 2021-04-11 03:21:38 +02:00
themode 5f75ea7d3a Remove unnecessary casts 2021-01-25 19:33:53 +01:00
themode c01736f863 Use doubles instead of floats to represent Position and Vector 2021-01-25 13:47:13 +01:00
themode 7019b7da85 Fix onGround field and gravityTickCount 2021-01-04 03:04:45 +01:00
themode feb4783988 Small optimization for entity velocity 2020-12-26 18:52:44 +01:00
Felix Cravic f7c05a445e Remove #copy 2020-12-09 21:34:53 +01:00
Felix Cravic cd44732cbc Velocity cleanup 2020-12-04 19:19:30 +01:00
Felix Cravic 63196e024b Fixed EntityTeleportPacket being sent for every position fields modification and use a proper entity movement packet instead of velocity 2020-11-26 12:46:49 +01:00
themode 3ddca82aaa Cleanup 2 2020-11-10 08:01:27 +01:00
themode 0184ada9a0 Renamed #clone to #copy 2020-10-31 18:03:15 +01:00
themode c5172a7275 WIP ItemStack#getCustomDisplay 2020-08-18 02:16:30 +02:00
Felix Cravic c2165abe1f Added ChunkUtils#isLoaded + optimization of the thread providers 2020-08-10 11:32:03 +02:00
Felix Cravic 13275eb534 Fixed synchronization with unloaded chunks 2020-08-10 08:55:01 +02:00
Felix Cravic 67db1d6568 Replaced blockId by blockStateId 2020-08-09 09:55:30 +02:00
Felix Cravic 45fd0dc22a Comments 2020-08-07 09:14:50 +02:00
Felix Cravic 134173d0f1 Cleanup 2020-08-03 00:37:03 +02:00
Felix Cravic 7f5f8bf2f6 TODO handle entities collision 2020-07-31 22:26:44 +02:00
Felix Cravic ef261c1792 Added WorldBorder#isInside + physics now support world border 2020-05-27 01:04:39 +02:00
jglrxavpok c28b0364ba Hoping this un-breaks falling blocks 2020-05-03 16:19:41 +02:00
jglrxavpok 9779a77212 Non solid blocks should not count as solid 2020-05-03 16:15:35 +02:00
jglrxavpok c79d4c7874 Rewrote physics once again. This time going through walls should be more difficult 2020-05-03 15:54:12 +02:00
jglrxavpok 1aefbca70a Entity Physics are behaving a bit better
Still possible to go through walls though
2020-05-02 23:34:09 +02:00
Felix Cravic 7daac5e610 Package rename to net.minestom.server 2020-04-24 03:25:58 +02:00