Commit Graph

837 Commits

Author SHA1 Message Date
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
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
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
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
TheMode
74cfc1994d
Merge pull request #45 from Nesaak/master
Make Data and SerializableData interfaces
2020-09-02 18:52:56 +02:00
Nesaak
dd66699a20 Make Data and SerializableData interfaces 2020-09-02 12:41:04 -04:00
themode
623a6eb783 The chunk caching method is now thread safe 2020-09-02 18:35:17 +02:00
themode
6e9e6be1fe Merge remote-tracking branch 'origin/master' 2020-09-02 10:30:14 +02:00
themode
46b772c901 Clarification in IChunkLoader#loadChunk comment 2020-09-02 10:30:03 +02:00
TheMode
cb5a507951
Merge pull request #44 from Nesaak/master
Cache default player provider
2020-09-01 23:51:39 +02:00
Nesaak
6fdda546b8 Cache default player provider 2020-09-01 17:43:10 -04:00
themode
f8bbc30435 Added PlayerProvider comment 2020-09-01 23:37:12 +02:00
themode
eff5d0b5e0 Added PlayerProvider 2020-09-01 23:35:14 +02:00
themode
e484e4a4d6 Updated Hydrazine to 1.4.2 2020-09-01 21:16:07 +02:00
themode
78dd2cb005 Fix tick update for SharedInstance 2020-09-01 20:20:46 +02:00
themode
d4d5ac873f Renamed StorageFolder to StorageLocation 2020-08-31 00:41:19 +02:00
Nesaak
28347102be Make DimensionType builder public 2020-08-30 17:49:16 -04:00
Nesaak
77e52c2cbe Make ChunkGenerator an interface 2020-08-30 16:28:05 -04:00
Nesaak
8a20ef4964 Fixed minor typo in InstanceContainer 2020-08-30 16:04:41 -04:00
themode
588b1f9c6d A few comments 2020-08-30 21:42:21 +02:00
themode
38dbaecb8f SerializableData data types can now be indexed 2020-08-29 22:21:45 +02:00
themode
672887807a Cleanup chunks sending 2020-08-25 20:55:40 +02:00
jglrxavpok
b7b95e0ebe Fixed respawn button disconnecting the client 2020-08-25 16:07:19 +02:00
jglrxavpok
21b48fe291 Wired Mixin phases with Minestom initialization 2020-08-25 15:44:17 +02:00
jglrxavpok
c3c2b0a34c Loading mixins from extensions 2020-08-23 23:27:53 +02:00
jglrxavpok
26b8ad125e Very basic Mixin support 2020-08-23 22:38:27 +02:00
Eoghanmc22
f26501c5fa Merge remote-tracking branch 'origin/master' 2020-08-21 13:48:29 -04:00
Eoghanmc22
a658a96a61 Fix ResourceGatherer bug for win 10 2020-08-21 13:47:55 -04:00
themode
ebb1b1607d Do not compute target block stage increase each tick 2020-08-21 16:09:26 +02:00
themode
6a66757c7a WIP MAX_PACKET_SIZE 2020-08-21 13:29:05 +02:00
themode
7ea06cc70b PacketUtils improvement with initial capacity packet + optimize the ChunkDataPacket 2020-08-21 13:16:44 +02:00
themode
f2222cfaf2 Allow negative break delay to skip stages 2020-08-21 12:52:29 +02:00
jglrxavpok
223af361d8 Code modifiers and test extension 2020-08-21 01:32:59 +02:00
themode
6b778f425a Cleanup 2020-08-20 19:06:55 +02:00
Eoghanmc22
c16b716350 Merge branch 'master' of https://github.com/Minestom/Minestom
 Conflicts:
	src/main/java/fr/themode/demo/PlayerInit.java
	src/main/java/fr/themode/demo/generator/NoiseTestGenerator.java
	src/main/java/net/minestom/server/utils/chunk/ChunkUtils.java
2020-08-20 12:22:40 -04:00
Eoghanmc22
d37656ebe5 fix respawn packet 2020-08-20 12:18:36 -04:00
themode
6c6f470b24 Optimize BiomeManager storage 2020-08-20 14:41:11 +02:00
themode
f560f4cb0b Use tick instead of ms to compute break time 2020-08-20 14:01:00 +02:00
themode
5b394e5bf7 Rewrite of the CustomBlock break delay system + support for multi player digging 2020-08-20 02:42:27 +02:00
jglrxavpok
164719090a (WIP) Support for runtime code modification 2020-08-20 02:06:58 +02:00
themode
b8c30d9b58 Cleanup 2020-08-19 20:47:53 +02:00
themode
c85e866e3c Fixed BinaryWriter#writeNBT 2020-08-19 20:35:22 +02:00
themode
571bb7a866 Renamed PacketWriter/Reader to BinaryWriter/Reader + optimization to serializing 2020-08-19 20:34:21 +02:00
themode
65db4a48b4 Cleanup 2020-08-19 16:19:18 +02:00
themode
bed09d397a Merge remote-tracking branch 'origin/master' 2020-08-19 01:51:34 +02:00
themode
c1f520143b Use chunk size constant instead of magic values 2020-08-19 01:51:22 +02:00
Eoghanmc22
51f8520a1f
Merge pull request #39 from Minestom/extensions
Add support for Extensions.
2020-08-18 19:26:03 -04:00
themode
8b30caa8c8 Micro optimization + cleanup 2020-08-19 01:24:51 +02:00
Articdive
846b668c1b
Rename plugins to Extensions and add basic support. 2020-08-18 14:18:12 +02:00
Eoghanmc22
efbe80a748 structure gen test. 2020-08-17 21:11:48 -04:00
themode
c5172a7275 WIP ItemStack#getCustomDisplay 2020-08-18 02:16:30 +02:00
themode
84b74eb45f Cache pathfinder block data 2020-08-17 21:07:37 +02:00
themode
ebaa2ad1a5 Update pathfinder when a block is removed 2020-08-17 20:52:35 +02:00
themode
e5e1d1614b Optimize chunk index to coordinate conversion + made the chunk map in InstanceContainer using long primitive but non-concurrent, requiring synchronization 2020-08-17 16:50:23 +02:00
themode
97a1141583 Replaced player viewableChunks set interaction to the Chunk class (Viewable support) 2020-08-16 19:18:34 +02:00
Felix Cravic
737cf24ace Stop hardcoding version name 2020-08-16 10:57:27 +02:00
Felix Cravic
caa89dd2f8 Chunk update 2020-08-16 00:53:42 +02:00
Eoghanmc22
a7484f8644 Fix npes 2020-08-15 18:01:10 -04:00
Eoghanmc22
1094fd4931 Fix npe 2020-08-15 10:08:54 -04:00
Eoghanmc22
4843440391 Merge branch '1.16.2' of https://github.com/Minestom/Minestom 2020-08-15 10:06:13 -04:00
Eoghanmc22
1798b50092 Merge branch 'master' of https://github.com/Minestom/Minestom
 Conflicts:
	src/main/java/net/minestom/server/MinecraftServer.java
	src/main/java/net/minestom/server/instance/MinestomBasicChunkLoader.java
2020-08-15 10:06:01 -04:00
Felix Cravic
84d1f1bdaa Merge remote-tracking branch 'origin/1.16.2' into 1.16.2 2020-08-15 16:05:01 +02:00
Felix Cravic
6e7b4ebb9f Changed version in server list 2020-08-15 16:04:50 +02:00
Eoghanmc22
448a26a7d8 add support for static chunks 2020-08-15 10:01:47 -04:00