Commit Graph

1036 Commits

Author SHA1 Message Date
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
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
themode
39a9e5531d renamed the block batch pool field 2020-10-03 22:07:21 +02:00
themode
db90b5e22d Comments improvement 2020-10-03 19:07:23 +02:00
themode
6758cadf7d Chunk is now a DataContainer 2020-10-03 18:51:33 +02:00
themode
f85e7ca4a9 Merge remote-tracking branch 'origin/master' 2020-10-03 03:45:22 +02:00
themode
690c7d5ff1 SerializableDataImpl comment fix 2020-10-03 03:45:11 +02:00
TheMode
59503a0acc
Merge pull request #59 from Minestom/recipe-updates
Update Recipe code, add abstraction for different recipe packet types.
2020-10-02 18:23:48 +02:00
Articdive
e3b8d1fb87
Remove final from DeclaredRecipes 2020-10-02 18:24:28 +02:00
Articdive
64ee739e1f
Update Recipe code, add abstraction for different recipe packet types. 2020-10-02 18:18:04 +02:00
themode
2218299931 Simplify the SerializableData interface 2020-10-02 08:18:36 +02:00
themode
0f71b4c9d4 Clarifications for SerializableData 2020-10-02 04:26:10 +02:00
themode
a7163c8d1c Some clarifications with the storage classes 2020-10-02 04:12:59 +02:00
themode
fcccef2bd1 Small inventory optimization 2020-10-02 03:54:59 +02:00
themode
5d6145bb20 InstanceContainer#setBlock should load chunks automatically if Instance#hasEnabledAutoChunkLoad returns true 2020-10-01 19:57:19 +02:00
themode
51530b8c61 Merge remote-tracking branch 'origin/master' 2020-10-01 17:54:44 +02:00
themode
271b56aa4c exception when the chunk is not loaded in Instance#setBlock 2020-10-01 17:54:31 +02:00
TheMode
ef5c57f6da
Merge pull request #58 from Minestom/syntax-enums
Final for enums and some annotations.
2020-09-29 21:59:03 +02:00
Articdive
29c6d92bdc
Final for enums and some annotations. 2020-09-29 21:45:16 +02:00
themode
e96aebaaba Fix client digging packet parsing 2020-09-28 18:27:28 +02:00
themode
af9851c334 Allow registering instance extending Instance and not necessary InstanceContainer 2020-09-28 02:29:41 +02:00
themode
aea788cd64 Better comments 2020-09-28 00:04:55 +02:00
themode
5a9250b236 Added Instance#getEntities 2020-09-28 00:02:37 +02:00
themode
d704d7dae6 Removed useless storage location check in MinestomBasicChunkLoader 2020-09-27 22:30:59 +02:00
themode
b294ae73e4 Do not force a non-null storage location for chunks saving 2020-09-27 21:18:19 +02:00
themode
09582cffc1 Comments for IChunkLoader specifying when to execute the callbacks 2020-09-27 20:48:12 +02:00
themode
d43ba6a395 Comments for MinestomBasicChunkLoader 2020-09-27 20:45:46 +02:00
themode
45cc1dd2c7 Made InstanceManager#unregisterInstance thread-safe 2020-09-27 19:04:08 +02:00
themode
670887f7b3 Added InstanceManager#unregisterInstance 2020-09-27 19:02:05 +02:00
Eoghanmc22
5ff56212a2 Merge branch 'master' of https://github.com/Minestom/Minestom 2020-09-26 16:06:20 -04:00
Eoghanmc22
ae44fa124d Fix teleports 2020-09-26 16:03:51 -04:00
themode
3464d27ab1 Added entity in EntitySpawnEvent 2020-09-26 21:24:10 +02:00
themode
c3b1e88b83 Re-fix the breaking of a block just below the player 2020-09-26 19:43:28 +02:00
themode
ce81c3a85d Fix position issue when cancelling the breaking of a block just below the player 2020-09-25 21:50:50 +02:00
Articdive
e65fa060ba
Get the server JAR for assets directly from Mojang.
No longer require installed MC to get the server JAR.
2020-09-25 18:39:43 +02:00
themode
5620e9a8cf Cleanup 2020-09-24 01:50:25 +02:00
themode
2a9adfc751 New banner 2020-09-24 01:03:13 +02:00
jglrxavpok
988f2c1b46 id is back to being final 2020-09-23 22:34:12 +02:00
jglrxavpok
7ad2cd89c2 id is back to being final, added custom getId method 2020-09-23 22:33:52 +02:00
jglrxavpok
3073f2f52f Make main method accessible to Bootstrap 2020-09-23 22:21:31 +02:00
themode
6ffc9c2eef Merge remote-tracking branch 'origin/master' 2020-09-23 22:14:54 +02:00
themode
cd521d4c19 Fix teleport in the PlayerMoveEvent 2020-09-23 22:14:43 +02:00
jglrxavpok
7083f15676 Biome ID is no longer final (vanilla reimpl will use mixins to modify it) 2020-09-23 22:07:23 +02:00
themode
8c623072f3 Calling an entity event will now also trigger it for the instance (useful for instance-specific listeners) 2020-09-23 22:01:47 +02:00
jglrxavpok
3f1b2fb84d Prismarine paths are exposed via public getters 2020-09-23 21:50:37 +02:00
jglrxavpok
4079d8e746 Export codegen feature + correct javadoc 2020-09-23 21:21:21 +02:00
themode
890cfe4622 Removed the reader classes, deplaced them into SerializableData and Chunk respectively. It allows for developers to make their own deserialization AND serialization implementation 2020-09-23 21:08:36 +02:00
Articdive
441e5eb577
Add more recipe types and support for Smithing. 2020-09-23 15:53:36 +02:00
themode
9a567811c7 Cache invalid version text and add clarification to the version which should be used 2020-09-23 15:44:52 +02:00
themode
dc8f885aff Added an unsafe way to flush a ChunkBatch 2020-09-23 01:53:36 +02:00
themode
ea9cd655c6 Removed unnecessary data synchronization 2020-09-23 01:41:40 +02:00
themode
403e0c897f Added EventHandler#getEventCallbacks 2020-09-20 20:11:46 +02:00
jglrxavpok
b6fc3ee978 Publish with Javadoc & Sources 2020-09-20 15:04:07 +02:00
jglrxavpok
99c48c8ee1 Cave air and void air must be classified as air 2020-09-20 14:54:03 +02:00
themode
1261974420 Added Player#getExp and Player#getLevel 2020-09-20 00:27:29 +02:00
themode
4c93450520 Added more Instance comments 2020-09-19 19:06:21 +02:00
themode
c43064c3a0 Replaced chunk consumers by ChunkCallback and fixed chunk callbacks being called in the block pool when in a batch 2020-09-19 18:35:00 +02:00
themode
d80c2e0658 Fix BossBar#addViewer for the first player boss bar 2020-09-19 18:13:00 +02:00
themode
e6f66b9816 Fix javadoc generation for DimensionType 2020-09-19 16:16:56 +02:00
themode
18c7a61f89 Remove useless math methods 2020-09-16 01:33:37 +02:00
Eoghanmc22
7ccd40d0f7 Fix Check 2020-09-14 18:29:07 -04:00
Eoghanmc22
8bbd62a3ed Fix NPE in extension loader 2020-09-14 18:17:15 -04:00
TheMode
64bb92a295
Merge pull request #53 from Minestom/extension-improvement
Improve Extension Logging & Description
2020-09-13 14:49:39 +02:00
themode
daaa126a1f More clarification with CustomBlock updates 2020-09-12 18:44:52 +02:00
themode
5d733fa6e9 Chunk cleanup (removed useless methods) 2020-09-12 12:45:37 +02:00
themode
0ad2394d16 Merge remote-tracking branch 'origin/master' 2020-09-12 12:15:06 +02:00
themode
3e9fd623dc Comment for Chunk#setBlock 2020-09-12 12:14:53 +02:00
Articdive
b675104d74
Improve Extension Logging & Description 2020-09-12 08:56:01 +02:00
jglrxavpok
6df42b79cb Merge branch 'mixin-support' 2020-09-11 21:03:43 +02:00
themode
465d83ae77 Comments for Instance & InstanceContainer 2020-09-11 00:14:17 +02:00
Nesaak
8df7dfe50b Synchronize chunk in Instance#setBlockData 2020-09-10 17:54:49 -04:00
Nesaak
81c5f957c3 Add Instance#setBlockData 2020-09-10 16:14:39 -04:00
Eoghanmc22
952668efc0 1.16.3 2020-09-10 15:27:02 -04:00
themode
6c4b9e0833 Added Player#isSprinting, Player#isSneaking and some cleanup related to last damage source + LivingEntity#isInvulnerable 2020-09-10 21:23:59 +02:00
themode
3473ccfb41 Use an array instead of a map for block state id -> block conversion 2020-09-08 17:02:07 +02:00
themode
1525d81852 Comments for BlockPlacementRule 2020-09-08 15:57:06 +02:00
themode
2f5af27211 Little optimization with block placement rule lookup 2020-09-08 15:49:27 +02:00
Nesaak
1f078ed011 Make placementRules in BlockManager an array & add comments for methods 2020-09-08 09:45:36 -04:00
Nesaak
e39e692cde Use an array to store custom block id's in BlockManager for faster lookups 2020-09-08 09:28:54 -04:00
themode
d3d3e73eef Fix synchronization issue with chunk 2020-09-07 19:14:42 +02:00
themode
e2940c9aee Renamed CustomBlock#getBlockStateId to CustomBlock#getDefaultBlockStateId 2020-09-06 03:15:00 +02:00
themode
7b93881e59 Made DamageType a DataContainer 2020-09-05 16:45:33 +02:00
themode
cb52a9d119 PerGroupChunkProvider cleanup 2020-09-03 20:52:21 +02:00
themode
f9fcfb6009 Merge remote-tracking branch 'origin/master' 2020-09-03 17:26:50 +02:00
themode
4c00e02091 ChunkUtils#getBlockIndex comments about short casting 2020-09-03 17:26:38 +02:00
Nesaak
7f671d0dc9 Rename some old StorageFolder messages & comments 2020-09-02 19:11:54 -04:00
Nesaak
e465b01f66 Add Entity#getChunk convenience method 2020-09-02 18:43:42 -04:00
themode
4b8ab2e55e Made Chunk#getSerializedData public 2020-09-03 00:04:10 +02:00
themode
181c2b2b1b Added warning to the DynamicChunk protected arrays 2020-09-02 23:54:19 +02:00
Nesaak
ab54ed92a4 Change access of id arrays in DynamicChunk to protected 2020-09-02 17:49:25 -04:00
themode
89d419c949 small optimization with chunk serialization 2020-09-02 22:52:17 +02:00
TheMode
58fa4cff1e
Merge pull request #46 from Nesaak/master
Use block index in chunk serialization
2020-09-02 22:37:30 +02:00
Nesaak
574ebf9cf4 Use block index in chunk serialization 2020-09-02 16:18:46 -04:00
Eoghanmc22
66428fb90f Accidentally remade a method that already existed 2020-09-02 16:01:33 -04:00
Eoghanmc22
0c50164f40 fix MultiBlockChangePacket again and add util method 2020-09-02 15:25:03 -04:00
Eoghanmc22
664546d25d fix bug in MultiBlockChangePacket 2020-09-02 14:01:51 -04:00
themode
f4665c27e6 Chunk cleanup 2020-09-02 19:34:24 +02:00
themode
925c0a89f6 Comments + utils methods for BinaryWriter 2020-09-02 19:06:11 +02:00