Commit Graph

902 Commits

Author SHA1 Message Date
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
d80c920ac7 Fix demo chunk generators 2020-08-30 16:35:32 -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
56cace9402 improve test gen 2020-08-20 12:39:09 -04: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
Eoghanmc22
284613a1a8 fix merge 2020-08-15 10:00:50 -04:00
Felix Cravic
ab86400e80 Fix Player#sendPluginMessage 2020-08-15 13:42:27 +02:00
Felix Cravic
939d06cfb5 Added Player#sendPluginMessage 2020-08-15 13:38:57 +02:00
Felix Cravic
92f914ef2d Cleanup 2020-08-15 13:32:36 +02:00
Felix Cravic
b716d8a47a Comments + cleanup 2020-08-15 04:05:15 +02:00
Eoghanmc22
1b7641c0e1 Merge branches '1.16.2' and 'master' of https://github.com/Minestom/Minestom
 Conflicts:
	src/main/java/net/minestom/server/UpdateManager.java
	src/main/java/net/minestom/server/thread/PerGroupChunkProvider.java
	src/main/java/net/minestom/server/thread/PerInstanceThreadProvider.java
2020-08-14 20:52:34 -04:00
Felix Cravic
0d4689a367 Optimize thread providers 2020-08-15 01:18:49 +02:00
Felix Cravic
1d047b5de3 Removed useless synchronization 2020-08-14 15:24:57 +02:00
Felix Cravic
0dd454985f Added list initial capacity 2020-08-14 15:15:16 +02:00
Eoghanmc22
d12618af0f Fix concurrent modify exception. 2020-08-13 18:50:57 -04:00
Eoghanmc22
cc01a48cf1 Minestom now properly adapts when a player changes their render distance, also fixed a bug that pointers to chunks that were unloaded were kept in the viewableChunks list until the player's instance was changed. 2020-08-13 17:54:55 -04:00
Eoghanmc22
d2f6c08c4e Merge branch 'master' of https://github.com/Minestom/Minestom 2020-08-13 17:25:59 -04:00
Eoghanmc22
74c99e8886 Fix glitchy chunk loading when you first login and don't send chunks to a player that are out of the player's render distance. 2020-08-13 17:23:35 -04:00
Eoghanmc22
94279e2dbf Merge branch 'master' of https://github.com/Minestom/Minestom 2020-08-13 14:51:40 -04:00
Eoghanmc22
d66d87ed97 Rate Limiting fixes 2020-08-13 14:51:01 -04:00
Felix Cravic
2b529e05d0 Fixed error with unloaded chunks 2020-08-13 20:43:45 +02:00
Felix Cravic
3c64def9f9 Updated Hydrazine 2020-08-13 20:24:40 +02:00
Eoghanmc22
8ecb90f359 Rate Limiting 2020-08-13 13:52:59 -04:00
Felix Cravic
ef28720496 Call InventoryPreClickEvent even without any inventory condition 2020-08-13 19:14:07 +02:00
Felix Cravic
23e82e0ae2 Added ItemStack#onInventoryClick 2020-08-13 19:12:16 +02:00
Felix Cravic
f3414224fe Added ItemStack callbacks for interactions 2020-08-13 19:00:19 +02:00
Eoghanmc22
542d603d60 1.16.2 support 2020-08-12 21:08:03 -04:00
Eoghanmc22
f431674174 Merge branch 'master' of https://github.com/Minestom/Minestom 2020-08-12 13:10:22 -04:00
Eoghanmc22
6259f624f3 starting of 1.16.2 support 2020-08-12 13:08:04 -04:00
Felix Cravic
55b36624cc Fix local held synchronization 2020-08-12 18:41:14 +02:00
Felix Cravic
91711401c0 Added options for the pathfinder 2020-08-12 13:10:57 +02:00
Felix Cravic
5a6afbbb89 Merge remote-tracking branch 'origin/master' 2020-08-12 07:46:23 +02:00
Felix Cravic
a9aff3e6ef Remove pathfinder specific thread pool + cleanup 2020-08-12 07:46:07 +02:00
jglrxavpok
e04a4fad02 Fast render with shader color lookup (wrong colors for the moment) 2020-08-11 23:23:14 +02:00
Eoghanmc22
7aaf6a6ec8 Fix ticks 2020-08-10 19:41:14 -04:00
Eoghanmc22
981a1a2fe8 Merge branch 'master' of https://github.com/Minestom/Minestom 2020-08-10 18:50:00 -04:00
jglrxavpok
23f64fec11 fix wrong width & height 2020-08-11 00:41:41 +02:00
jglrxavpok
6856904905 Large framebuffers for more than 128x128 rendering 2020-08-11 00:35:25 +02:00
Eoghanmc22
6896afbf7c Merge branch 'master' of https://github.com/Minestom/Minestom 2020-08-10 17:31:18 -04:00
Eoghanmc22
a3011594c0 Tick event thing 2020-08-10 17:31:12 -04:00
Eoghanmc22
040ba417bb Basic plugin support 2020-08-10 17:30:56 -04:00
jglrxavpok
a7139d19b6 Merge branch 'permission-api' 2020-08-10 21:43:15 +02:00
jglrxavpok
d2df5fdc60 Serialization methods 2020-08-10 21:42:54 +02:00
jglrxavpok
214fa4c808 Merge Map API & LWJGL code 2020-08-10 16:32:48 +02:00
jglrxavpok
5533e3f9e7 LWJGL is now an optional dependency (example project to use it incoming) 2020-08-10 14:50:39 +02:00
Felix Cravic
dad8503ee5 Optimize EntityEquipmentPacket 2020-08-10 13:55:06 +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
008002f11b WIP synchronization fix + updated hydrazine 2020-08-10 07:24:43 +02:00
Felix Cravic
644c1d9a71 Added pathfinder thread pool 2020-08-09 21:56:01 +02:00
Felix Cravic
55aeac7530 Add potion meta to all potion types + tipped arrow 2020-08-09 20:30:46 +02:00
Felix Cravic
1a6df8e035 Optimize entity events adding/removing 2020-08-09 17:15:02 +02:00
R0bbyYT
ba07fa78f0 Fixed 2020-08-09 17:10:58 +02:00