Commit Graph

221 Commits

Author SHA1 Message Date
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
themode
2ae602df87 Rollback teleportation to respawn point 2020-11-20 19:23:50 +01:00
themode
d7d610ffef Fixed the player receiving multiple self position packet 2020-11-20 14:39:10 +01: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
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