Commit Graph

278 Commits

Author SHA1 Message Date
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
R0bbyYT
ba07fa78f0 Fixed 2020-08-09 17:10:58 +02:00
Felix Cravic
45fd0dc22a Comments 2020-08-07 09:14:50 +02:00
Felix Cravic
424256dcb6 Fixed entities not being removed from viewing list after changing instance 2020-08-06 18:39:56 +02:00
Felix Cravic
20e78afb40 Remove BossBar from the Player class, BossBar#addViewer should be used instead 2020-08-06 08:17:59 +02:00
Felix Cravic
4da05b2c3f Use ColoredText when possible 2020-08-05 18:25:11 +02:00
jglrxavpok
1772b94114 Start of Permission API 2020-07-31 22:31:58 +02:00
Felix Cravic
98c3419766 Cleanup 2020-07-27 02:28:03 +02:00
Felix Cravic
f8453b4906 Added ItemMeta + MapDataPacket 2020-07-23 05:36:15 +02:00
Felix Cravic
df6c9e4953 More comments + cleanup 2020-07-22 17:39:48 +02:00
jglrxavpok
30019ebe9a Customizable dimension list in JoinGamePacket + Dimension->DimensionType 2020-07-13 14:12:21 +02:00
Felix Cravic
9fc8012d9d Fix player display name 2020-07-06 19:15:13 +02:00
Felix Cravic
0d0674ee5d Added support for custom server brand name 2020-07-02 15:56:43 +02:00
Eoghanmc22
ffe5240a8d Merge branches 'experimental' and 'master' of https://github.com/Minestom/Minestom 2020-06-30 20:00:28 -04:00
Felix Cravic
f873f495ea Fix inventory + added our own chat parser 2020-07-01 01:17:58 +02:00
Eoghanmc22
68049b3eab Merge branches 'experimental' and 'master' of https://github.com/Minestom/Minestom 2020-06-30 17:15:32 -04:00
jglrxavpok
450603cac8 Don't send tags packet to viewers 2020-06-30 21:06:06 +02:00
jglrxavpok
2303b98024 Send tags to player on connection 2020-06-30 20:38:42 +02:00
Felix Cravic
2696bead72 Cleanup 2020-06-30 12:59:37 +02:00
Felix Cravic
e1b9f74cf4 Optimize message sending 2020-06-30 01:25:23 +02:00
Felix Cravic
18f9341c55 Add missing break statement 2020-06-29 17:32:35 +02:00
Eoghanmc22
f04e8036fc Add missing break and fix various things with the netty improvements made by WhileInside, add the disconnect during login packet currently only used for preventing multiple people with the same username from logging in when Mojang auth is enabled. 2020-06-29 11:25:10 -04:00
Eoghanmc22
37b5484775 Minor optimizations to mojang auth. 2020-06-25 19:40:33 -04:00
Eoghanmc22
b80da2f097 basic 1.16.1 support 2020-06-25 15:05:58 -04:00
Eoghanmc22
8e26447f9a Merge branch 'master' of https://github.com/Minestom/Minestom 2020-06-23 17:02:29 -04:00
Felix Cravic
2db810bafa Added legacy message support 2020-06-23 22:46:22 +02:00
Eoghanmc22
e203d9c45a Merge branch 'master' of https://github.com/Minestom/Minestom
 Conflicts:
	build.gradle
	src/main/java/net/minestom/server/entity/Player.java
2020-06-23 16:03:21 -04:00
Eoghanmc22
7ac90cff24 init 2020-06-23 15:58:31 -04:00
Felix Cravic
19fc90e764 Fixed Held packet + replaced the short by a byte 2020-06-23 18:09:01 +02:00
Felix Cravic
9dfb9b657b Added CommandSender#isPlayer and CommandSender#isConsole 2020-06-23 17:25:46 +02:00
Felix Cravic
f892213e8c Added a new Chat API 2020-06-22 23:25:00 +02:00
Eoghanmc22
c31b962ed8 fix imports 2020-06-21 19:25:50 -04:00
Eoghanmc22
77b99e8223 Merge with latest Minestorm 2020-06-21 18:57:53 -04:00
Eoghanmc22
42276efc49 Added optional Mojang auth and UUIDs support (MojangAuth.init()), added support for skin layers, and made everywhere have max lighting. 2020-06-21 18:04:19 -04:00
Felix Cravic
72234ac706 Added PlayerPreLoginEvent 2020-06-21 22:11:56 +02:00
Felix Cravic
eba5c5ae3a Added CommandSender and ConsoleSender 2020-06-21 14:01:03 +02:00
Felix Cravic
45e8ba2f03 Added EventHandler#removeEventCallback 2020-06-01 17:11:43 +02:00
Felix Cravic
7e20278dd9 Fix deadlock with ItemEntity + added ItemEntity#getMergeUpdateOption to mitigate CPU usage increase 2020-06-01 00:51:31 +02:00
Felix Cravic
7128844563 Resource pack cleanup 2020-05-31 20:09:42 +02:00
Felix Cravic
c17aba4ac7 Added Player#setResourcePack + PlayerResourcePackStatusEvent 2020-05-31 19:53:59 +02:00
Felix Cravic
eed946e948 Cleanup 2020-05-31 15:52:56 +02:00
Felix Cravic
30ef05183e Added more synchronization at death + added listener for teleport and window confirmation to remove warning 2020-05-31 00:39:56 +02:00
Felix Cravic
1bcd0c474f Added event comments 2020-05-30 22:32:12 +02:00
Felix Cravic
edb6db428e sync equipments only to the viewer to update instead of all 2020-05-30 21:56:12 +02:00
Felix Cravic
f887f21493 Cleanup with the ADD_PLAYER method 2020-05-30 19:51:45 +02:00
Felix Cravic
7ce6f7ada1 Added Player#setSkin and PlayerSkinInitEvent to modify it at initialization 2020-05-30 19:47:47 +02:00
Felix Cravic
3940eacde8 Attribute optimization + comments 2020-05-30 01:39:52 +02:00
Felix Cravic
1c3099f61a Entity & Player comments 2020-05-29 23:17:14 +02:00
Felix Cravic
29aae491d1 Minor optimizations 2020-05-29 17:20:30 +02:00
Felix Cravic
589079f8f6 Updated netty + fix network crash 2020-05-29 15:31:11 +02:00
Felix Cravic
eb5659c235 Optimize bandwidth + fix keep alive 2020-05-29 02:11:41 +02:00
Felix Cravic
7cd2d570bd Comments 2020-05-28 20:09:52 +02:00
Felix Cravic
dfd7ca84a4 Fixed player mining vanilla block 2020-05-28 19:29:29 +02:00
Felix Cravic
5e91b75d78 Comments 2020-05-28 19:15:55 +02:00
Felix Cravic
039e9aca4f Lot of comments 2020-05-27 20:30:13 +02:00
Felix Cravic
f5ddc66c43 Modified digging listener, added more clear exceptions and some comments 2020-05-27 19:43:08 +02:00
Felix Cravic
ef261c1792 Added WorldBorder#isInside + physics now support world border 2020-05-27 01:04:39 +02:00
Felix Cravic
224a8a3b86 Support for additional hearts in Player#damage 2020-05-26 23:15:09 +02:00
Felix Cravic
e6f38e2773 Added a bunch of entities + Player#additionalHearts 2020-05-26 22:53:58 +02:00
Felix Cravic
3be1173ab5 Small optimizations 2020-05-26 20:00:41 +02:00
Felix Cravic
182b6fbe1b Added Player#facePosition and Player#spectate 2020-05-26 18:25:35 +02:00
Felix Cravic
76f9a059b5 Update packets having a Chat component 2020-05-26 17:48:46 +02:00
Felix Cravic
8ef5a0b394 Moved the player init call 2020-05-26 16:14:52 +02:00
Felix Cravic
b797967151 Added Player#getDisplayName + some optimizations/improvements 2020-05-26 15:35:48 +02:00
Felix Cravic
14e9dcb811 Added LivingEntity#setArrowCount and fixed metadata during respawn 2020-05-25 20:32:47 +02:00
Felix Cravic
a962b83958 Fixed player death animation 2020-05-25 19:54:36 +02:00
Felix Cravic
e8a2c54485 More FakePlayerController features + fix with chunks and player food bar 2020-05-25 13:46:48 +02:00
Felix Cravic
6254ec93e9 Proper List#toArray array initialization 2020-05-25 12:25:39 +02:00
Felix Cravic
be31c4e03d Minor tweaks 2020-05-25 03:39:57 +02:00
Felix Cravic
9a7c07af65 Added some FakePlayerController features 2020-05-25 03:17:24 +02:00
Felix Cravic
30053c507b WIP FakePlayer system 2020-05-25 02:37:57 +02:00
Felix Cravic
e092eba4c1 Fix equipments synchronization and error with unloaded chunk 2020-05-25 01:12:12 +02:00
Felix Cravic
83449aecc9 Making PlayerConnection an abstract class 2020-05-25 00:29:37 +02:00
Felix Cravic
f8ff01349b Fixed Player#isFlying it is now properly synchronized with the client 2020-05-24 22:27:58 +02:00
Felix Cravic
e26ee1380a Fixed vehicles + added PlayerStartFlyingEvent & PlayerStopFlyingEvent 2020-05-24 22:21:38 +02:00
Felix Cravic
c73ec6f0d6 Fix ExperienceOrb#setExperienceCount with a proper updating client-side 2020-05-24 20:21:17 +02:00
Felix Cravic
b193c5f12a Lot of comments 2020-05-24 19:59:50 +02:00
Felix Cravic
c2d1a4f70a Fix synchronization issue with metadata + some comments 2020-05-24 19:22:58 +02:00
Felix Cravic
883e7eb80f Added Entity#isAutoViewable & making Viewable#addViewer and Viewable#removeViewer return boolean 2020-05-23 17:57:56 +02:00
Felix Cravic
97bd1ecdb1 Cleanup 2020-05-23 04:20:01 +02:00
Felix Cravic
f588d1103f Fix cursor item dropping when drop event is cancelled 2020-05-17 11:44:34 +02:00
Felix Cravic
dff29a4717 Drop cursor item when closing inventory 2020-05-17 11:40:49 +02:00
Felix Cravic
47ca22c3d1 Fixed player item dropping, it does not consume the item anymore when the event is cancelled 2020-05-17 04:41:32 +02:00
Felix Cravic
ab71133b55 Fixed error relating to unloaded chunk in Entity#update 2020-05-17 01:42:07 +02:00
Felix Cravic
b97b75f13c Added a lot of comments 2020-05-15 18:03:28 +02:00
Felix Cravic
498384d2f4 Added permission level + option for a reduced debug screen 2020-05-13 18:43:54 +02:00
Felix Cravic
be0311a874 Added PlayerPreEatEvent for more customisation, separate the default eating time and the individual ones. Also a InventoryOpenEvent#setInventory to change the inventory to open 2020-05-12 18:40:04 +02:00
Felix Cravic
a1b427bf83 Added InventoryOpenEvent 2020-05-12 17:12:11 +02:00
Felix Cravic
4fa1d08fa5 End properly eat animation 2020-05-12 14:19:45 +02:00
Felix Cravic
37add239f8 Custom food animation delay + PlayerEatEvent 2020-05-12 14:12:17 +02:00
Felix Cravic
17856c36cf Fixed crash at player disconnection 2020-05-09 20:00:59 +02:00
Felix Cravic
f7badc021b WIP entities in unloaded chunk + PlayerChunkLoadEvent 2020-05-09 18:24:14 +02:00
Felix Cravic
39f0053ded Added PlayerChunkUnloadEvent 2020-05-09 04:05:57 +02:00
jglrxavpok
59c5bbdfe5 Send chunks to player when changing instance 2020-05-08 21:49:04 +02:00
jglrxavpok
5dd08cf19b Send different teleportIds for each packet 2020-05-08 18:42:04 +02:00