Commit Graph

1107 Commits

Author SHA1 Message Date
themode
fbff3a6b0b Fixed the FakePlayer scheduled callback being called in an external thread 2020-10-31 19:59:02 +01:00
themode
9a7a1e6ff4 The scheduled callback for FakePlayer is not mandatory, send 2020-10-31 19:54:10 +01:00
themode
b74d85eca8 The chunk view distance can now be dynamically modified both by the client or with the server using MinecraftServer#setChunkViewDistance, also added UpdateViewDistancePacket 2020-10-31 19:44:22 +01:00
themode
6e36f3242d Added InstanceContainer#copy and Chunk#copy 2020-10-31 19:22:23 +01:00
themode
0184ada9a0 Renamed #clone to #copy 2020-10-31 18:03:15 +01:00
themode
af3d742b13 Comments for UuidProvider and PlayerProvider 2020-10-31 13:30:11 +01:00
themode
c4f36a9cea Cleanup + comments 2020-10-31 05:09:30 +01:00
themode
2e4a2f57cf Cleanup and catch some NPE 2020-10-31 04:38:53 +01:00
themode
00ce2be258 Fixed shared instances tick being called 2 times 2020-10-31 02:55:55 +01:00
themode
4375a8734d Add comment to signal how to make a "null" ItemStack 2020-10-31 01:41:46 +01:00
themode
f328a9cb2b Added a few constructors to specify the instance directly 2020-10-31 01:38:57 +01:00
themode
f91f7abb26 Unsafe methods should be called unsafe. 2020-10-31 01:02:54 +01:00
themode
a6939b3695 Only send chunks if required 2020-10-31 00:23:52 +01:00
themode
f334df0028 Chunk#UNSAFE_setBlock can have a custom block id sets to 0 2020-10-30 22:49:57 +01:00
themode
6d29f955e4 More comments for the command API, Arguments methods are NotNull since id should not be decided at runtime 2020-10-30 18:43:14 +01:00
Nathan M
10eba951fd
Fix Armor Stand Metadata 2020-10-30 03:30:33 -04:00
themode
872dccd7ce Small cleanup 2020-10-29 22:52:07 +01:00
themode
c887392a91 CommandDispatcher comments for maintenance purpose and fixed all code warnings 2020-10-29 19:51:10 +01:00
themode
384df073a8 Fixed synchronization issue when adding/removing scheduled tasks 2020-10-29 19:20:25 +01:00
themode
c8d1a30486 Improved Argument comments 2020-10-29 17:27:40 +01:00
LeoDog896
75f8396d32 Expose ArgumentWord restrictions as protected 2020-10-28 11:09:40 -04:00
themode
617d3cc89f Removed check for manager getters 2020-10-28 13:19:34 +01:00
themode
fb098fe4f9 Command arguments can be null 2020-10-28 02:42:40 +01:00
themode
907b10604b Fixed arguments values not being forwarded 2020-10-28 01:55:44 +01:00
themode
c3cfad22fc dispatcher will find the correct syntax with the most arguments count 2020-10-28 01:29:05 +01:00
themode
5092aa637f Fix command with less than 2 arguments 2020-10-28 01:24:50 +01:00
themode
57e33c63a0 Allowing shared arguments being instanced multiple times 2020-10-28 01:14:05 +01:00
themode
d49ddc52b6 Nodes in command can now be shared with each other 2020-10-28 01:02:12 +01:00
themode
758c132645 Make the player display name nullable 2020-10-27 12:45:37 +01:00
themode
972da0e5ae Added warning for ConnectionManager#addPlayerInitialization to prevent calling too early code 2020-10-27 01:53:56 +01:00
themode
b890c8152a Fixed PURPLE and PINK colors 2020-10-27 01:43:31 +01:00
themode
a7d23bfa50 Added more click types + fix inventory click cancel 2020-10-26 20:46:22 +01:00
themode
0337fff50f Fixed shift click ignoring canceled events 2020-10-26 19:31:25 +01:00
themode
3fe58b6b20 Inventories are now DataContainer 2020-10-26 19:14:50 +01:00
themode
bd620a2241 Remove unnecessary packet copy + more annotations 2020-10-26 16:08:59 +01:00
themode
113f4fcdb3 Annotations for all chat components to prevent client json exception 2020-10-26 15:42:45 +01:00
themode
44c912d7ec Prevent retrieving null managers before their initialization and added annotations in ConnectionManager 2020-10-26 15:15:56 +01:00
themode
06f2ed6065 Use the Contract annotation to prevent useless NPE warnings 2020-10-26 13:57:02 +01:00
themode
8b99fb6f09 Added Player#playSound for custom sounds identifier (from resourcepack) 2020-10-26 11:18:44 +01:00
themode
322acca51e Assigning a data key to null will remove the key 2020-10-26 01:47:41 +01:00
themode
91301102d3 Added proper exception in SerializableDataImpl if an issue happens with the type 2020-10-26 01:38:22 +01:00
themode
e621069cc5 More comments for the data API 2020-10-26 01:30:32 +01:00
TheMode
6a6e359529
Merge pull request #61 from DigitalJokerMan/change-default-stacking-rule
Changed DEFAULT_STACKING_RULE's maxSize from 127 to 64
2020-10-25 22:21:26 +01:00
themode
ea80d56bd0 Small packet cleanup, removed LevelType, new RawJsonMessage 2020-10-25 22:19:27 +01:00
Alex K
6070d002d9 Changed DEFAULT_STACKING_RULE's maxSize from 127 to 64 2020-10-25 14:44:40 -06:00
themode
8346bb85ed @NotNull for ClientPacket#read 2020-10-25 17:02:07 +01:00
themode
1b7613d977 Allow for custom chunk/entity view distance and compression threshold without recompiling the server. 2020-10-25 16:48:14 +01:00
themode
424e99e2d8 Use the server brand name as the motd in case of a legacy ping 2020-10-25 15:32:19 +01:00
themode
a8796382b7 Clear cache of viewed boss bars and advancement tabs once the player disconnect 2020-10-25 12:28:06 +01:00
themode
0c96de75ef Fix namespace regex for path 2020-10-25 00:00:32 +02:00
themode
df28d25685 Allow for JsonMessage in packets 2020-10-24 23:28:43 +02:00
themode
26e8dae452 Use JsonMessage in WrittenBookMeta 2020-10-24 23:16:39 +02:00
themode
fa0f9c8fa2 Annotations for the storage api 2020-10-24 20:49:39 +02:00
themode
b511c12129 Added comments to facilitate custom implementation of Instance 2020-10-24 20:11:26 +02:00
themode
bd8df8bd5e Fixed AdvancementTab#getTabs annotation 2020-10-24 19:41:26 +02:00
themode
cb28fdc208 Annotations for data & command 2020-10-24 16:58:27 +02:00
themode
27e0b86cb5 Added annotations for all events 2020-10-24 16:33:13 +02:00
themode
2f21a7c233 More annotations. 2020-10-24 11:19:54 +02:00
TheMode
29df8f5b39
Merge pull request #60 from Minestom/extension-naming
Cleanup and ensure extensions have valid names.
2020-10-24 10:47:50 +02:00
themode
3d96b7a4b4 A lot of annotations a bit everywhere. 2020-10-24 10:46:23 +02:00
Articdive
6bb7186b3f
Cleanup and ensure extensions have valid names. 2020-10-24 10:45:27 +02:00
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
86d6092547 Hide PlayerConnection#enableCompression into NettyPlayerConnection 2020-10-24 00:05:22 +02:00
themode
70e047e6ee Added buffer length check in DynamicChunk#readChunk 2020-10-23 23:55:42 +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
3db964f817 Removes debug #clone print 2020-10-22 19:22:58 +02:00
themode
34e7bfe69d Reduces the number of ItemStack#clone calls in inventory clicks 2020-10-22 19:18:08 +02:00
themode
419541b878 UpdateManager comments + synchronization fix 2020-10-22 15:57:27 +02:00
themode
3cb880cf80 General cleanup 2020-10-22 12:55:53 +02:00
themode
47677766ca Improvement for the DamageType code 2020-10-22 12:21:50 +02:00
themode
c7f8ae7536 Added constructor comments in ColoredText and RichMessage 2020-10-22 09:10:14 +02:00
themode
f72dce3a46 More comments for message related classes 2020-10-21 16:26:55 +02:00
themode
ddc5da4415 More explanations for JsonMessage#toString 2020-10-21 16:08:33 +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
jglrxavpok
26ce63763a Validity checks on NamespaceIDs 2020-10-18 18:27:57 +02:00
themode
19ab2cbd50 Comments for MinecraftServer 2020-10-17 16:54:35 +02:00
themode
c130fb6144 Added getter for ExtensionManager 2020-10-17 16:30:37 +02:00
themode
523b883959 Added Player#sendTitleTime and comments relating to titles. 2020-10-17 14:46:14 +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
6217280466 Added ArgumentNbtCompoundTag and ArgumentNbtTag 2020-10-17 08:18:52 +02:00
themode
e1093769e5 Added potion color + fix clone/similar 2020-10-16 16:47:03 +02:00
themode
0b6a063311 Added support for CustomPotionEffect in PotionMeta 2020-10-16 16:32:57 +02:00
themode
512b30e9df Added ArgumentItemStack 2020-10-16 14:31:15 +02:00
jglrxavpok
8561e0cddc Fix exception when reading compass with no lodestone linked to it 2020-10-16 12:39:17 +02:00
jglrxavpok
dd0f2ea293 Fix exception when reading map decoration with no position 2020-10-16 12:35:17 +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
59b03bf9ec Detailed explanation of Argument, and basic comments for CommandSyntax 2020-10-15 15:19:07 +02:00
themode
8d21352d5f CommandDispatcher internal comments 2020-10-15 14:36:21 +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
50326b676c Added PotionEffect 2020-10-15 05:29:48 +02:00
themode
3663a292f1 Comments for the inventories classes 2020-10-14 16:41:36 +02:00
themode
bf0ec9f133 Added ItemStack#setMaterial and information about automatic refresh 2020-10-14 16:33:32 +02:00
themode
352874d935 Remove debug message when enabling mojang auth 2020-10-13 19:06:29 +02:00
themode
6e954082e1 Map API cleanup 2020-10-13 16:50:03 +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
af1f976e53 Comments 2020-10-11 18:57:24 +02:00
themode
5f7261cd6e Comments 2020-10-11 18:35:32 +02:00
themode
8badd5bb4d Fix invalid javadoc format 2020-10-11 17:05:02 +02:00
themode
551bd42b48 Moved the demo server to the test directory 2020-10-11 16:02:26 +02:00
themode
e783d33767 Fix comment typo in Command 2020-10-11 15:42:22 +02:00
themode
ad7e526597 Fix concurrency exception in AdvancementManager 2020-10-11 15:36:25 +02:00
themode
f2004f1ecd More comments for the command API 2020-10-11 15:27:23 +02:00
themode
d2d0fd33d8 More comments for the advancement API 2020-10-11 14:58:19 +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
3c2805790a Merge remote-tracking branch 'origin/master' 2020-10-10 05:51:05 +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
4a96ef6224 Use Map instead of List to store tasks 2020-10-09 06:08:27 +02:00
themode
28332cd09d Command comments 2020-10-08 01:28:40 +02:00
themode
af369dedde Added Command global listener 2020-10-08 01:21:15 +02:00
themode
ec33478cc3 Remove hardcore bit in JoinGamePacket 2020-10-07 22:26:26 +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
abbb2fde01 Fix RichMessage javadoc 2020-10-06 07:46:07 +02:00
themode
dd3345ff9a ColoredText comments + cleanup 2020-10-06 07:41:35 +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
5b26031a92 Comments for BoundingBox 2020-10-05 03:59:47 +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
857d3f0c6e Added ItemStack#getAttribute 2020-10-05 01:46:02 +02:00