Commit Graph

572 Commits

Author SHA1 Message Date
TheMode 23664292de Simplify acquisition, reduce overhead 2021-04-17 14:22:47 +02:00
TheMode a5df2376cf Improve performance 2021-04-17 03:00:34 +02:00
TheMode 3b7353300d Acquisition rework 2021-04-17 02:50:33 +02:00
TheMode bd3e4e2f0a Added Acquirable#currentEntities 2021-04-15 03:08:19 +02:00
TheMode 11b1bbea2e Update entities thread 2021-04-15 01:44:08 +02:00
TheMode 6ba336ee73 Added hand inside eat events 2021-04-13 22:59:40 +02:00
TheMode 1d5262caf2 Merge branch 'master' into item-api
# Conflicts:
#	src/test/java/demo/PlayerInit.java
2021-04-12 00:44:47 +02:00
TheMode c7cd8c332a Rename meta package to metadata to limit breaking changes 2021-04-11 19:13:50 +02:00
TheMode 2da42cb8cb Remove unnecessary chunk callback 2021-04-10 22:33:38 +02:00
TheMode 0be4c6d8c7 More meta utils method, fix openBook 2021-04-10 18:55:26 +02:00
TheMode e81c31f61b Remove Ownership code 2021-04-10 17:47:45 +02:00
TheMode 1d12a5de95 Implement all meta 2021-04-10 05:53:40 +02:00
TheMode e19af0377c Merge branch 'master' into item-api
# Conflicts:
#	src/main/java/net/minestom/server/item/ItemDisplay.java
#	src/main/java/net/minestom/server/utils/binary/BinaryReader.java
2021-04-09 23:19:38 +02:00
TheMode 4c495f401d Code cleanup 2021-04-07 18:35:19 +02:00
Felix Cravic e3867c659b Merge branch 'master' into item-api
# Conflicts:
#	src/main/java/net/minestom/server/item/ItemStack.java
2021-04-06 05:10:58 +02:00
Kieran Wallbanks 785a0bb66c Remove unnecessary cast attempts and instanceof checks 2021-04-04 14:10:06 +01:00
Kieran Wallbanks 7b4a072a78 Fix broken sendLegacyMessage functions 2021-04-04 14:06:23 +01:00
themode a128d30b6b WIP Item rework implementation 2021-04-02 18:13:02 +02:00
themode d332855bc4 Renamed CooldownUtils to Cooldown 2021-03-31 19:17:37 +02:00
jglrxavpok 43957805fd Handshake and login packets, even more readable server packets 2021-03-30 19:42:40 +02:00
themode 3d2d3868a3 Use a ConcurrentHashMap to store viewable chunks 2021-03-30 01:50:36 +02:00
themode 0326bd1445 Increase the default chunk range 2021-03-29 11:01:32 +02:00
Kieran Wallbanks d086d16fa1 Use EntitySoundEffectPacket in no location playSound method, fixes #194 2021-03-27 13:59:08 +00:00
Kieran Wallbanks b9e35d1cc7 Make Audiences static 2021-03-26 19:28:07 +00:00
Kieran Wallbanks 3628c42ef2 Rework boss bar system 2021-03-26 17:34:39 +00:00
Kieran Wallbanks bbfe83eeea Use Audiences class instead of ConnectionManager 2021-03-26 17:34:39 +00:00
Kieran Wallbanks 658d07e8e4 Fix clearTitle 2021-03-26 17:34:39 +00:00
Kieran Wallbanks 4a0103a795 Move sound packet creation into AdventurePacketConvertor 2021-03-26 17:34:39 +00:00
Kieran Wallbanks cfba291522 Make Player use SoundCategory#asSource 2021-03-26 17:34:39 +00:00
Kieran Wallbanks 03f092fa54 Rename Sound enum to SoundEvent 2021-03-26 17:34:38 +00:00
Kieran Wallbanks 63aaee698e Rebase to master and fix complication issues 2021-03-26 17:34:38 +00:00
Kieran Wallbanks 96826e03d1 Cache player Identity 2021-03-26 17:34:38 +00:00
Kieran Wallbanks 1cc7867f9b Exclude more checker-qual 2021-03-26 17:34:38 +00:00
Kieran Wallbanks 931d790702 Make player implement Identified 2021-03-26 17:34:38 +00:00
Kieran Wallbanks 52ce8027f2 Simplify component translation 2021-03-26 17:34:38 +00:00
Kieran Wallbanks 6dd3eb8044 Implement HoverSource for ItemStack, Entity and Player 2021-03-26 17:34:38 +00:00
Kieran Wallbanks aea8a5f794 fix compilation issues 2021-03-26 17:34:38 +00:00
Kieran Wallbanks 327558c003 begin bringing packets back to use components 2021-03-26 17:34:38 +00:00
Kieran Wallbanks 35e057a638 prefer minestom enums over raw packet values 2021-03-26 17:34:38 +00:00
Kieran Wallbanks c25dbaa936 swap utils to registry 2021-03-26 17:34:38 +00:00
Kieran Wallbanks abae740cbc fix javadocs 2021-03-26 17:34:38 +00:00
Kieran Wallbanks 522367dd78 Begin removing deprecated usages 2021-03-26 17:34:38 +00:00
Kieran Wallbanks 7351b9fdd3 Implement global translation system 2021-03-26 17:34:38 +00:00
Kieran Wallbanks 316ecbbf5a Cleanup annotations and imports 2021-03-26 17:34:38 +00:00
Kieran Wallbanks 2c2f1b6cee Implement playSound and openBook methods 2021-03-26 17:34:38 +00:00
Kieran Wallbanks 653859e784 Add SerializationManager 2021-03-26 17:34:38 +00:00
Kieran Wallbanks f9ab109eb0 Fix player title overrides 2021-03-26 17:34:38 +00:00
Kieran Wallbanks aff04c0e0d Add boss bar implementations 2021-03-26 17:34:38 +00:00
Kieran Wallbanks 4f0944ba9f Initial adventure implementation
- deprecate old text classes
- make CommandSender and Audience
- implement in ConsoleSender
- partially implement in Player
2021-03-26 17:34:38 +00:00
themode 71f2e885a4 Remove unused field 2021-03-26 11:24:09 +01:00
TheMode 1b162c1139
Merge pull request #184 from kezz/viewable-defaults
Simplify Viewable packet sending
2021-03-26 09:23:42 +01:00
themode c6c720e0c7 Use concurrent map instead of copyonwrite set for player's viewable entities 2021-03-26 08:49:27 +01:00
Kieran Wallbanks 845f41b88a Remove cast and instanceof check from Viewable#sendPacketToViewersAndSelf 2021-03-25 17:07:05 +00:00
themode 169dbedea2 Fix entity head position, improve performance for Player#addViewer0 2021-03-22 14:54:52 +01:00
themode b6d8dd9f73 Style cleanup + increase food saturation limit to 20 2021-03-21 19:47:22 +01:00
themode 9893bb72c8 don't send a close inventory packet when opening a new one 2021-03-21 13:38:25 +01:00
themode 8b0ab3d8c3 Fix lag spikes when loading the same chunks multiple times 2021-03-16 00:52:35 +01:00
themode ae922529ea Increase default chunk range to 3 2021-03-15 20:33:08 +01:00
themode 509f8f7851 Fix player not being directly disconnected after a kick 2021-03-14 21:34:38 +01:00
themode 4f2ec0a65f Fix chunk coordinates not being properly calculated 2021-03-13 23:04:15 +01:00
themode d91fcde798 Fix properties & equipments changes not being properly sent to viewers & self 2021-03-12 01:38:52 +01:00
themode b155f3bca3 Deprecate Attributes, constants in Attribute should be used instead 2021-03-09 20:51:11 +01:00
themode 51facb9f14 Prevent modified clients from messing with the chunk range 2021-03-09 17:21:43 +01:00
themode 6a0582a950 Do not send all chunks on logging, wait for the settings packet instead 2021-03-09 07:08:35 +01:00
themode a25e414754 Fix players being stuck on first connection when no respawn point is defined 2021-03-08 17:12:21 +01:00
themode 8ab29368a6 Fixed players being able to move during teleport 2021-03-08 16:49:16 +01:00
themode 2e17c8a8e1 Fix inventory not appearing after changing dimension 2021-03-07 23:18:32 +01:00
themode b8e987f556 Fix player getting stuck after changing dimension 2021-03-07 22:22:04 +01:00
themode 74d902b2a2 Remove player synchronization group, a better alternative will come up 2021-03-06 14:31:44 +01:00
themode 25c2dc661f Fix position yaw/pitch not being copied 2021-03-02 19:36:11 +01:00
themode 7da3a16978 Fix connection loop 2021-02-25 15:35:31 +01:00
TheMode 77ed13abd9
Merge pull request #152 from RinesThaix/entities
EntityMeta
2021-02-25 15:30:35 +01:00
Konstantin Shandurenko 23ee4c7fdf Deprecated Entity constructors accepting spawnPosition and introduces Entity#setInstance(Instance, Position) 2021-02-25 13:56:10 +03:00
Konstantin Shandurenko 18da3e0168 Moved switchEntityType from EntityCreature to Entity 2021-02-25 10:37:02 +03:00
Konstantin Shandurenko 1308f81678 Switched all direct spawn packets interactions to EntityType#getSpawnType#getSpawnPacket 2021-02-25 09:15:51 +03:00
themode 2843da6b26 Small comment cleanup 2021-02-23 15:11:21 +01:00
TheMode ebed118ee2
Merge pull request #139 from LeoDog896/sound
Add Position PlaySound methods
2021-02-23 15:08:43 +01:00
LeoDog896 f7fc7240f6 Reduce boilerplate in convience methods 2021-02-23 07:53:10 -05:00
themode 200b244224 Fix JSON string not being displayable using ColoredText, remove unnecessary fields in PlayerListHeaderAndFooterPacket 2021-02-21 16:49:25 +01:00
LeoDog896 4daa55d27e Add Position playsound methods 2021-02-19 18:43:35 -05:00
themode 06abbcb7fb Fix chunks being sent 2 times on first spawn 2021-02-19 13:52:27 +01:00
themode 1af8ea5303 Added comment about broken bedrock client skin using Geyser 2021-02-06 03:51:17 +01:00
jglrxavpok 8a992b3e45 New constructor to give UUID as argument in LivingEntity, now used to specify player UUID 2021-02-05 14:32:28 +01:00
themode 3026e46220 Added new metadata API 2021-01-30 04:44:44 +01:00
themode c01736f863 Use doubles instead of floats to represent Position and Vector 2021-01-25 13:47:13 +01:00
themode 7de0067a13 Small utility methods for EntityRotationPacket 2021-01-22 21:28:33 +01:00
LeoDog896 78abfb9657 Make init function UNSAFE 2021-01-18 10:44:12 -05:00
LeoDog896 ac68c094ce Better keepalive and connection handling 2021-01-17 19:26:20 -05:00
LeoDog896 3b3a86a402 Prefer nullable over optional 2021-01-15 13:39:12 -05:00
LeoDog896 3536bdc856 Microoptimization cleanup
Just some small microoptimizations including preferring fastutils, Removing unnecessary checks already dealt with using @NotNull, all since I had extra unplanned free time.
2021-01-15 11:08:11 -05:00
Matt Worzala ef35a39388
Add Player#openBook (#99) 2021-01-09 12:40:22 +10:00
themode 8871cf16c0 Don't default the permission level 2021-01-09 02:38:26 +01:00
themode a6e5dbc60e Fix permission level to use the target selector 2021-01-09 02:20:55 +01:00
themode 8fef648221 Fix chunk packets from being wrongly sent when switching instance 2021-01-08 17:17:36 +01:00
themode 066b3dc417 Cleanup 2021-01-08 08:32:33 +01:00
themode 349364e15d Provide the proper dimensiontype in the JoinGamePacket 2021-01-07 04:21:34 +01:00
themode 0fa82aff1f Fix default dimension 2021-01-07 03:49:55 +01:00
themode 706a36b30a Fix dimension not being sent for the first instance & force dimensions to be registered in the manager 2021-01-07 03:46:58 +01:00
themode 4107c768a3 Fix test 2021-01-06 21:19:09 +01:00
themode f5d550cda9 Fix attributes not being refreshed client side 2021-01-06 20:45:40 +01:00
themode 97a29c6ccf Player#setInstance cleanup 2021-01-06 19:06:37 +01:00
themode 6b39cb1e32 Execute the async login event before sending the login success packet 2021-01-06 19:02:35 +01:00
themode 47447706b0 Fix Player#kick ignoring the kicking text 2021-01-04 23:15:41 +01:00
themode 7019b7da85 Fix onGround field and gravityTickCount 2021-01-04 03:04:45 +01:00
Matt Worzala 46ac38d5b3
Change ColoredText usages to JsonMessage 2020-12-31 13:53:21 -05:00
themode 835a769080 Implement entity eye height based on boundingbox 2020-12-29 20:42:41 +01:00
themode 8b9836d82a Set Player eye height to 1.62 2020-12-29 18:12:25 +01:00
themode 8da6148152 PlayerInventory field in player is now protected, to allow unsafe modifications when extending the class 2020-12-29 16:42:07 +01:00
Matt Worzala 460b177866
Set player bounding box size to 0.6. 2020-12-28 14:16:43 -05:00
themode 87e8e550f1 Don't add players to the waiting list in the constructor, but in the registration method 2020-12-28 12:41:15 +01:00
themode 22aa9d01ed Do not size the string in sendPluginMessage 2020-12-28 10:40:50 +01:00
themode 28c5e39f8b Pre login event is now async 2020-12-27 22:16:19 +01:00
themode 557ec7ca83 Fix auto viewable during viewers refresh 2020-12-23 10:51:59 +01:00
themode 18eab183a0 Auto entity viewing cleanup 2020-12-23 10:40:50 +01:00
themode b5feb35619 Added PlayerDeathEvent to change the death message/text 2020-12-22 05:26:37 +01:00
themode 943aae7397 Do not send gamemode related packets before the player spawn 2020-12-18 00:57:23 +01:00
themode 5224eecdd1 Event unification (type-specific event, CancellableEvent is now an interface) 2020-12-16 03:21:59 +01:00
themode 7750934a3f Small cleanup 2020-12-16 00:13:40 +01:00
themode 7bcca8ff9f Rename the walkingSpeed ability to fieldViewModifier, the movement speed attribute should be used instead for speed 2020-12-15 13:41:42 +01:00
themode 69adb67394 Compute the tags packet only once to improve performance on high connection traffic 2020-12-15 06:21:59 +01:00
R0bbyYT a51e1a8484 See commit `4ae623cd`, but without the Google code formatting 2020-12-13 23:31:37 +01:00
themode 2fa0f5a417 Revert "Fixes an issue when a player is in another team that this player is not showed in his team for other players"
This reverts commit 4ae623cd
2020-12-13 23:01:01 +01:00
R0bbyYT 4ae623cdab Fixes an issue when a player is in another team that this player is not showed in his team for other players 2020-12-13 15:00:48 +01:00
Felix Cravic c8154b564f Fixed EntitySoundEffectPacket name 2020-12-12 05:52:03 +01:00
Felix Cravic ac8ba3ab10 Fixed ItemDropEvent and PickupItemEvent constructor + changed PlayerInit event registration to use the global event handler 2020-12-11 04:34:08 +01:00
Felix Cravic f7c05a445e Remove #copy 2020-12-09 21:34:53 +01:00
Felix Cravic 42cedf3fbf Use Guava to initialize concurrent linked queues 2020-12-08 09:36:19 +01:00
Felix Cravic fec23a9783 Improve grouped packet performance 2020-12-08 09:13:22 +01:00
Felix Cravic 1f1bd348b5 Fix player teleport being teleported inside a block 2020-12-05 17:14:10 +01:00
Felix Cravic 59b4b7996d Do not retrieve all chunks when teleporting in the same chunk 2020-12-05 16:16:25 +01:00
Felix Cravic f7753ab447 #showPlayer cleanup 2020-12-05 16:09:08 +01:00
Felix Cravic d61a598c94 Prevent players being disconnected two times during a clean stop, also made shutdown tasks being executed in a single thread 2020-12-02 21:28:36 +01:00
KrystilizeNevaDies 936f7b9392 Add direct playSound variant 2020-12-03 00:08:09 +10:00
Felix Cravic 181f20289c Cleanup for the sound code, and comment for PlayerLoginEvent about not working player methods 2020-12-02 14:36:54 +01:00
Felix Cravic d0ad143c0f Prevent dropping air 2020-11-29 16:41:56 +01:00
Felix Cravic 63196e024b Fixed EntityTeleportPacket being sent for every position fields modification and use a proper entity movement packet instead of velocity 2020-11-26 12:46:49 +01:00
Eoghanmc22 296d645400 Merge branch 'master' of https://github.com/Minestom/Minestom
 Conflicts:
	src/main/java/net/minestom/server/benchmark/BenchmarkManager.java
2020-11-25 11:29:50 -05:00
Felix Cravic 049e3b8495 Position in Player#setInstance can be null 2020-11-25 12:21:29 +01:00
Felix Cravic ab73b0fa3e Player#setInstance can now take an optional Position parameter 2020-11-25 12:12:58 +01:00
Felix Cravic 7bbb095156 Fixed Player#setInstance not refreshing chunks when already in an instance 2020-11-24 22:56:12 +01:00
Eoghanmc22 a934df2af2 Merge branch 'master' of https://github.com/Minestom/Minestom 2020-11-22 08:59:52 -05:00
themode 2d7b4360c2 Fixed non-0 respawn point 2020-11-22 14:11:18 +01:00
themode acc013be6a Fixed glitched chunks when teleporting a player + divided teleportation count by 2 during first join 2020-11-22 13:56:36 +01:00
Eoghanmc22 04fc38a14f Merge branch 'master' of https://github.com/Minestom/Minestom 2020-11-21 14:59:17 -05:00
themode 48b637cbc8 Fixed player spawn when a respawn point is not specified 2020-11-21 20:56:32 +01:00
Eoghanmc22 f2f0625666 Merge branch 'master' of https://github.com/Minestom/Minestom
 Conflicts:
	src/test/java/demo/PlayerInit.java
2020-11-21 13:23:16 -05:00
themode 6ecf53c863 Increased player synchronization group from 50 to 75 2020-11-21 08:14:25 +01:00
themode 500fc2e903 Fixed chunk being asked two times 2020-11-21 08:06:04 +01:00
themode 404ddb5bf9 Added a new item data ownership system, replacing the old nbt consumer and NbtDataImpl 2020-11-21 06:37:44 +01:00
Eoghanmc22 62663ccb64 Merge branch 'master' of https://github.com/Minestom/Minestom 2020-11-20 13:38:41 -05:00
themode 2ae602df87 Rollback teleportation to respawn point 2020-11-20 19:23:50 +01:00
Eoghanmc22 9a64a0a409 Merge branch 'master' of https://github.com/Minestom/Minestom
 Conflicts:
	src/main/java/net/minestom/server/entity/Player.java
	src/main/java/net/minestom/server/network/player/NettyPlayerConnection.java
	src/main/java/net/minestom/server/utils/PacketUtils.java
2020-11-20 08:56:58 -05:00
themode d7d610ffef Fixed the player receiving multiple self position packet 2020-11-20 14:39:10 +01:00
Eoghanmc22 6fd401589c slightly optimize CommandManager 2020-11-20 08:07:09 -05:00
themode 0739b57dd1 Server packet listener now takes a collection of player, for future network optimization 2020-11-20 03:47:29 +01:00
JesFot 2c18312988
Merge branch 'master' into master 2020-11-20 02:12:02 +01:00
TheMode af730fb73c Decrease default synchronization time group to 50
Signed-off-by: TheMode <themode@outlook.fr>
2020-11-19 08:11:09 +01:00
themode 69a268aa9d Fixed first player teleportation when the respawn point is not 0 0 0 2020-11-19 08:05:08 +01:00
themode 828069c685 Cleanup + reduced default chunk view distance to 8 2020-11-19 07:00:41 +01:00
Eoghanmc22 618fd2b536 Begin optimizing netty. 2020-11-18 13:39:06 -05:00
themode cdbf514918 Player#getPlayerSynchronizationTickDelay comment 2020-11-18 07:44:57 +01:00
themode 6869c834f3 Allow dynamic synchronization delay based on the number of viewers 2020-11-18 07:43:45 +01:00
themode 2a1a1cdcbc add method to modify and retrieve the player synchronization cooldown 2020-11-18 05:19:44 +01:00
themode 553a280993 Per instance thread is now the default, added a configurable cooldown for player position refresh 2020-11-18 05:13:49 +01:00
JësFot d968946c44 Restore deleted empty lines 2020-11-18 00:52:33 +01:00
JësFot ad0f02cfa9 Add checkstyle gradle plugin 2020-11-18 00:50:27 +01:00
JësFot d738f9fddd Implement attribute instances 2020-11-17 14:59:47 +01:00
themode 798b5d4853 Only flush during player update 2020-11-16 12:03:22 +01:00
themode 540405e796 Optimized PacketCompressor 2020-11-16 11:41:03 +01:00
themode 44fbeaa2d8 Use player respawnPosition in the SpawnPosition packet 2020-11-14 23:21:47 +01:00
themode ae8a182eb8 Read player skin from velocity 2020-11-14 22:13:01 +01:00
themode 1d1e82aeb3 Prevent infinite load screen when not teleporting the player on spawning 2020-11-14 21:45:30 +01:00
themode ea6981c4b0 Space cleanup 2020-11-14 21:05:23 +01:00
themode 0abedd7453 Optimization to prevent permanent map lookup 2020-11-14 09:02:29 +01:00
themode 648cad85c2 Entity implements now PermissionHandler 2020-11-14 07:09:36 +01:00
themode c60f625c55 Revamp of the packet sending code, added possibility to have listeners for outgoing packets 2020-11-13 07:43:35 +01:00
themode f2e52ff463 Send an EntityMovementPacket every tick if the player did not move since the last one 2020-11-10 18:13:24 +01:00
themode 7db94f3a65 Support for velocity modern forwarding 2020-11-09 23:48:34 +01:00
themode 682c660857 Fixed javadoc 2020-11-08 15:57:00 +01:00
themode 7bdfc93334 Added some comments about exceptions 2020-11-07 04:42:48 +01:00
themode 7b6f4b365b Do not add the entity as viewer multiple time 2020-11-04 19:16:47 +01:00
themode f85b2c4aad Allow dynamic entity view distance change 2020-11-04 19:14:04 +01:00
themode 463e1f047f Cleanup + added PlayerSettingsChangeEvent 2020-11-01 00:07:15 +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 0184ada9a0 Renamed #clone to #copy 2020-10-31 18:03:15 +01:00
themode 00ce2be258 Fixed shared instances tick being called 2 times 2020-10-31 02:55:55 +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 758c132645 Make the player display name nullable 2020-10-27 12:45:37 +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 ea80d56bd0 Small packet cleanup, removed LevelType, new RawJsonMessage 2020-10-25 22:19:27 +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 a8796382b7 Clear cache of viewed boss bars and advancement tabs once the player disconnect 2020-10-25 12:28:06 +01: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 3d96b7a4b4 A lot of annotations a bit everywhere. 2020-10-24 10:46:23 +02:00
themode 3665241e94 Added OptionalCallback for convenience 2020-10-22 22:55:40 +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 f72dce3a46 More comments for message related classes 2020-10-21 16:26:55 +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 fbe4126021 Added Player#chat to simulate chat message 2020-10-16 11:37:00 +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 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 af1f976e53 Comments 2020-10-11 18:57:24 +02:00
themode f2004f1ecd More comments for the command API 2020-10-11 15:27:23 +02:00
themode 739c3f1d7d Allow non-custom block in PlayerStartDiggingEvent 2020-10-10 13:46:41 +02:00
themode 37d3c9c6bc Allow for custom chat message serializer using JsonMessage 2020-10-06 03:43:57 +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 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 5620e9a8cf Cleanup 2020-09-24 01:50:25 +02:00
themode 2a9adfc751 New banner 2020-09-24 01:03:13 +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 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 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
themode ebb1b1607d Do not compute target block stage increase each tick 2020-08-21 16:09:26 +02:00
themode f2222cfaf2 Allow negative break delay to skip stages 2020-08-21 12:52:29 +02:00
themode 6b778f425a Cleanup 2020-08-20 19:06:55 +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
themode 571bb7a866 Renamed PacketWriter/Reader to BinaryWriter/Reader + optimization to serializing 2020-08-19 20:34:21 +02:00
themode 8b30caa8c8 Micro optimization + cleanup 2020-08-19 01:24:51 +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 caa89dd2f8 Chunk update 2020-08-16 00:53:42 +02: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 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
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 1d047b5de3 Removed useless synchronization 2020-08-14 15:24:57 +02: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 d66d87ed97 Rate Limiting fixes 2020-08-13 14:51:01 -04:00
Eoghanmc22 542d603d60 1.16.2 support 2020-08-12 21:08:03 -04:00
jglrxavpok a7139d19b6 Merge branch 'permission-api' 2020-08-10 21:43:15 +02:00
Felix Cravic dad8503ee5 Optimize EntityEquipmentPacket 2020-08-10 13:55:06 +02:00