Commit Graph

284 Commits

Author SHA1 Message Date
themode
3e59c9d396 Added IChunkLoader#saveChunks with a default implementation 2020-10-24 09:34:19 +02:00
themode
4ddfc88d43 Added info about the read-only field and renamed #getFreshPacket to #createFreshPacket 2020-10-24 00:25:37 +02:00
themode
fb26ec0f0b Added Chunk#setReadOnly and Chunk#isReadOnly 2020-10-24 00:17:23 +02:00
themode
d2eff4abbc Replaced the queue by an ArrayDeque 2020-10-22 23:31:09 +02:00
themode
1c28272cb7 Use of a queue instead of an ArrayList 2020-10-22 23:18:34 +02:00
themode
3665241e94 Added OptionalCallback for convenience 2020-10-22 22:55:40 +02:00
themode
40516d17a9 Removed try-catch in DynamicChunk and track manipulation of the buffer to prevent synchronization issue 2020-10-22 22:44:52 +02:00
themode
560abf0df8 Added buffer length check in DynamicChunk#readChunk 2020-10-22 22:31:25 +02:00
themode
3cb880cf80 General cleanup 2020-10-22 12:55:53 +02:00
themode
618c2b5b17 BossBar fix 2020-10-19 12:52:25 +02:00
themode
b2e3d3e78d Use negative entity id for the custom breaking system 2020-10-19 11:56:26 +02:00
TheMode
32d13dcbd1 Added format version in the chunk serialized output
Signed-off-by: TheMode <themode@outlook.fr>
2020-10-18 21:51:49 +02:00
themode
ac362cf7ac Explanation for ResponseDataConsumer ang general comment cleanup 2020-10-17 13:24:18 +02:00
themode
3e4ccbe75a Usage sample for every Argument 2020-10-17 11:29:05 +02:00
themode
fbe4126021 Added Player#chat to simulate chat message 2020-10-16 11:37:00 +02:00
themode
9e2e48f79c Fix bug when you could send a break a custom block with a finished digging packet 2020-10-16 09:12:31 +02:00
themode
660a67e53e English fix 2020-10-15 21:16:31 +02:00
themode
bd3335ae1d General cleanup 2020-10-15 08:48:13 +02:00
themode
74e37e681b Added Chunk#setEnableCachePacket to improve memory usage when needed 2020-10-15 08:21:13 +02:00
themode
0e5831cdc3 Cleanup + typo fix 2020-10-13 12:49:29 +02:00
themode
a273c0fd02 Comments for batches 2020-10-13 05:40:23 +02:00
themode
f62117dbe0 Info related to chunk load/unload signal, required to create an instance implementation 2020-10-13 04:31:03 +02:00
themode
f1dccfacc3 Fixed instance ticks not being executed if the chunk list is empty 2020-10-13 04:10:37 +02:00
themode
740b0bbf45 Comments for BlockPosition constructors + cleanup 2020-10-12 17:07:22 +02:00
themode
4d78677a0a Comments for BlockModifier 2020-10-12 17:00:43 +02:00
themode
5ea2f960a5 Comment for SharedInstance#getInstanceContainer 2020-10-12 16:53:51 +02:00
themode
81c6f97336 Comments 2020-10-12 06:41:47 +02:00
themode
9184b3054f Fix the first #setInstance being called in the main update thread 2020-10-12 04:14:06 +02:00
themode
88ef4eb3c0 Comments 2020-10-12 03:18:02 +02:00
themode
cbe2a0b71e Comments 2020-10-12 02:56:30 +02:00
themode
5f7261cd6e Comments 2020-10-11 18:35:32 +02:00
themode
f2004f1ecd More comments for the command API 2020-10-11 15:27:23 +02:00
themode
284c5bf052 Fix synchronization issue with instance scheduled tasks 2020-10-11 03:37:44 +02:00
themode
7fc8aff38d Fix the chunk load event and callback not being called in the correct thread 2020-10-10 14:39:56 +02:00
themode
739c3f1d7d Allow non-custom block in PlayerStartDiggingEvent 2020-10-10 13:46:41 +02:00
themode
98ac2d9717 Clarification for Chunk#readChunk which do not guarantee the reading time 2020-10-10 09:05:38 +02:00
themode
df37e2f81d DynamicChunk now uses schedulers when reading binary chunk data 2020-10-10 09:02:24 +02:00
themode
c78ee500e8 Made MinestomBasicChunkLoader requires an InstanceContainer to be dynamic and simplify custom chunk implementation 2020-10-10 08:45:26 +02:00
themode
b118fc717b Cleanup 2020-10-10 06:07:28 +02:00
themode
1712ebd151 chunkSupplier needs to give non-null chunks 2020-10-10 05:54:07 +02:00
themode
2fa375f9d6 Added ChunkSupplier to allow custom chunk implementation loading and Chunk#shouldGenerate to allow chunks not affected by the chunk generator 2020-10-10 05:50:49 +02:00
themode
f811f1efef Comments cleanup 2020-10-06 21:03:00 +02:00
themode
d03354fe24 Made Chunk#setBlockData public 2020-10-06 07:54:19 +02:00
themode
a757f4b97b Simplify EventHandler implementation 2020-10-06 04:06:59 +02:00
themode
37d3c9c6bc Allow for custom chat message serializer using JsonMessage 2020-10-06 03:43:57 +02:00
themode
67c93e73ab Remove useless method 2020-10-05 10:20:25 +02:00
themode
04498ed0f0 Chunk code cleanup & optimization 2020-10-05 10:03:25 +02:00
themode
f79a024dc1 Renamed Chunk#setBlock to Chunk#UNSAFE_setBlock for reliability and security purpose 2020-10-05 02:03:08 +02:00
themode
4eb09e70e7 Comments for Instance, facilitating future implementations 2020-10-04 23:33:36 +02:00
themode
683415e75e Fixed item attributes not showing in-game 2020-10-04 03:04:51 +02:00