Felix Cravic
90102e1562
Permission improvement
2020-12-11 21:42:32 +01:00
Felix Cravic
76c3ea52ac
Merge branch 'master' into nbt-permission
2020-12-11 21:37:00 +01:00
Felix Cravic
0a9ce664f3
Cleanup
2020-12-11 21:36:35 +01:00
Felix Cravic
38dc50bb1a
Optimise entity velocity (to do not send the packet every tick)
2020-12-11 20:17:33 +01:00
Felix Cravic
2f96a47270
Optimise GlobalEventHandler
2020-12-11 19:37:44 +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
c16a0234a3
Comment for PermissionHandler#getPermission
2020-12-11 03:24:30 +01:00
Felix Cravic
6017a902c3
fix typo
2020-12-11 03:22:07 +01:00
Felix Cravic
7700c718aa
Added PermissionHandler#getPermission
2020-12-11 03:19:25 +01:00
Felix Cravic
1b7f00f1b9
Merge branch 'master' into nbt-permission
2020-12-11 03:15:14 +01:00
Felix Cravic
62ab0a2007
Remove unnecessary shouldUpdate method in Entity
2020-12-10 18:12:05 +01:00
Felix Cravic
00c144b592
Rework of the permission API
2020-12-10 02:56:56 +01:00
Felix Cravic
30a7843018
Added #flush in comment
2020-12-10 00:08:35 +01:00
Felix Cravic
654a68092a
Simply MainDemo
2020-12-09 22:38:20 +01:00
Felix Cravic
54d3a6bace
fixed GlobalEventHandler getter name
2020-12-09 22:36:15 +01:00
Felix Cravic
6e3df970fa
Added GlobalEventHandler
2020-12-09 22:31:20 +01:00
Felix Cravic
30d257c847
Remove unnecessary #callEvent override in Entity
2020-12-09 22:18:11 +01:00
Felix Cravic
08f7b1c715
Event callback collections now use a set, and #add/removeCallback return a boolean to know if the action was successful
2020-12-09 22:05:11 +01:00
Felix Cravic
f7c05a445e
Remove #copy
2020-12-09 21:34:53 +01:00
Felix Cravic
f39f6444d7
PublicCloneable and support for ItemMeta#clone
2020-12-09 21:15:02 +01:00
Felix Cravic
cea3b8b593
WIP removal of #copy for #clone
2020-12-09 20:51:40 +01:00
KrystilizeNevaDies
f54dc4efe5
Style fixes + Imports
2020-12-10 01:10:46 +10:00
CmdrNorthpaw
df536f9aaf
Function in CommandSender to send ColoredText ( #75 )
...
* Send ColoredText messages to CommandSender
* Only send ColoredText if this is a player
* Documentation!
2020-12-10 01:09:29 +10:00
TheMode
ea3021ea69
Console command doesnt need to start with the command prefix
...
Signed-off-by: TheMode <themode@outlook.fr>
2020-12-09 06:30:15 +01:00
Felix Cravic
5576d11fce
Do not wait for worker thread shutdown
2020-12-08 18:14:10 +01:00
Felix Cravic
91a000ab31
heap buffers don't need to be released manually
2020-12-08 09:49:29 +01:00
Felix Cravic
b307a979c3
Added NotNull annotation for Sidebar
2020-12-08 09:39:51 +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
91dc4eb675
Remove unnecessary synchronized blocks
2020-12-08 03:37:00 +01:00
Felix Cravic
eca6a657c3
Execute InstanceTickEvent in Instance instead of InstanceContainer
2020-12-08 00:16:46 +01:00
Felix Cravic
c836bbc051
Merge remote-tracking branch 'origin/master'
2020-12-08 00:13:24 +01:00
Felix Cravic
716e2ea5ef
Remove unnecessary synchronized block and allow for custom drop amount
2020-12-08 00:12:49 +01:00
KrystilizeNevaDies
061c1600e7
Annotation and type fix
...
Just clean up annotations on primatives and instance v InstanceContainer
2020-12-08 09:12:42 +10:00
Felix Cravic
99f4c8f2d3
No item copy when swapping item hand
2020-12-08 00:08:27 +01:00
Felix Cravic
0de69ae2ad
Merge remote-tracking branch 'origin/master'
2020-12-07 23:58:34 +01:00
Felix Cravic
ff4580c41b
Prevent unnecessary item copy during drop
2020-12-07 23:57:57 +01:00
KrystilizeNevaDies
e8e30b1328
Fix first tick call
2020-12-08 07:52:46 +10:00
KrystilizeNevaDies
6cc8946963
Add instance tick event
2020-12-08 07:30:14 +10:00
Felix Cravic
40787902e3
Small demo code update
2020-12-06 20:20:05 +01:00
Felix Cravic
07990b26e9
Better comment for Entity#isAutoViewable
2020-12-06 20:11:14 +01:00
Felix Cravic
0f97930f79
Fix player gravity
2020-12-06 16:52:04 +01:00
Felix Cravic
43aca45c05
Fixed void promise on channel write
2020-12-06 05:52:36 +01:00
Felix Cravic
70000e75d5
Added gravity acceleration and terminal velocity (and an utils method to get the gravity tick count)
2020-12-06 01:36:37 +01:00
Felix Cravic
d5e5412309
Allow custom EntityCreature death animation time
2020-12-06 00:06:52 +01:00
Felix Cravic
3f487f4f4f
Entity with scheduled removal still execute tick until complete removal, added some comments
2020-12-05 23:57:07 +01:00
Felix Cravic
8966cc7ec8
Merge remote-tracking branch 'origin/master'
2020-12-05 20:55:04 +01:00
Felix Cravic
a58dab4f34
Disable netty errors processing by default
2020-12-05 20:54:39 +01:00
R0bbyYT
a1ef2b21c3
The leather armor pieces are now correctly colored
2020-12-05 20:45:54 +01:00
Felix Cravic
e3f6b73241
NettyPlayerConnection.java#write and flush should return a ChannelFuture
2020-12-05 20:35:43 +01:00
LeoDog896
e6c314a5e5
Ignore kotlin in classloader
2020-12-05 11:44:18 -05:00
Felix Cravic
1f1bd348b5
Fix player teleport being teleported inside a block
2020-12-05 17:14:10 +01:00
Felix Cravic
3c0fa42758
Precision in the documentation, syntax argument count needs to be higher than 0
2020-12-05 16:19:54 +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
6bd6d22651
Added EntityCreature#switchEntityType
2020-12-05 01:36:06 +01:00
Felix Cravic
cd44732cbc
Velocity cleanup
2020-12-04 19:19:30 +01:00
Felix Cravic
9b8579eaf4
Small cleanup
2020-12-04 18:25:24 +01:00
KrystilizeNevaDies
d6c0a24bed
Add Vector & BlockPosition copyCoordinates
2020-12-04 15:17:25 +10:00
Felix Cravic
ddf8cc383d
Fixed concurrent exception when shutting down the extension manager
2020-12-03 17:54:23 +01:00
Felix Cravic
6f8cbeb73b
Unload extensions when shutting down the server
2020-12-03 17:35:04 +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
Felix Cravic
5de6e466ee
Execute the shutdown tasks before closing the netty server
2020-12-02 20:55:05 +01:00
Felix Cravic
6748fbe6bf
Merge remote-tracking branch 'origin/master'
2020-12-02 20:35:23 +01:00
Felix Cravic
635d6f9f95
Fixed EntityCreeper metadata
2020-12-02 20:35:09 +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
369910aea4
Fixed a terrible typo
2020-12-01 18:52:37 +01:00
Felix Cravic
aa4ee97710
Added getter and setter for the entity in GoalSelector
2020-12-01 18:21:19 +01:00
KrystilizeNevaDies
92b06b6992
sendPacketToSelf
...
Added sendPacketToSelf for more utility on veiwable player
2020-11-30 10:25:12 +10:00
Felix Cravic
8675a90e9c
Added the NavigableEntity interface to use the pathfinder (instead of hardcoding it in EntityCreature)
2020-11-29 23:14:21 +01:00
Felix Cravic
75e3ffde8d
Comments for FollowTargetGoal
2020-11-29 22:19:13 +01:00
Felix Cravic
b6aa81bbbf
Prevent adding a command syntax without any argument
2020-11-29 21:34:54 +01:00
Felix Cravic
415bcda6fd
Allow custom Netty thread count
2020-11-29 17:49:02 +01:00
Felix Cravic
cabdb60370
Fix pathfinding NPE
2020-11-29 17:27:24 +01:00
Felix Cravic
bb3d57b1e5
WIP support for flying entities
2020-11-29 16:50:57 +01:00
Felix Cravic
d0ad143c0f
Prevent dropping air
2020-11-29 16:41:56 +01:00
Felix Cravic
1f2e4de0b3
Use of a ScheduledExecutorService for the server ticks (instead of Thread#sleep)
2020-11-28 21:50:34 +01:00
Felix Cravic
a7b6a20cae
Prevent enabling mojang auth multiple time + cleanup
2020-11-28 20:57:08 +01:00
Felix Cravic
bd49ae05f4
Prevent the generation of authentication service when mojang auth is disabled
2020-11-28 20:49:05 +01:00
Felix Cravic
c21acd97f3
Use unpooled buffer in ChunkDataPacket to reduce memory usage
2020-11-27 14:32:13 +01:00
Felix Cravic
1579bee693
Made Entity#generateId public and prevent writing null data to BinaryWriter
2020-11-27 13:29:38 +01:00
Felix Cravic
cac3c29e41
Added block command argument type
2020-11-27 11:24:32 +01:00
Felix Cravic
80d899a53a
EntityCreature scheduling priority for pathfinding can now be modified
2020-11-27 10:47:35 +01:00
Felix Cravic
8ae82a81a1
Cleanup
2020-11-27 00:08:32 +01:00
Felix Cravic
fe568abe70
Entity gravity fixed 2
2020-11-26 22:29:06 +01:00
Felix Cravic
3bc90fffd9
Prevent EntityCreature from ignoring gravity
2020-11-26 14:14:40 +01:00
Felix Cravic
e813037475
Fixed position fields update for netty connections
2020-11-26 13:38:52 +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
012e65337d
Improve follow target goal
2020-11-25 21:36:18 -05:00
Eoghanmc22
f8840cf7a9
Merge branch 'master' of https://github.com/Minestom/Minestom
2020-11-25 20:15:08 -05:00
Eoghanmc22
338a1737c7
wait for netty to finish shutting down
2020-11-25 20:13:38 -05:00
Felix Cravic
0fc494d9df
Fixed concurrent exception with attributes
2020-11-26 02:00:20 +01:00
Felix Cravic
79a5f99358
A few internal comments
2020-11-26 01:38:08 +01:00
Felix Cravic
ae845e38ab
Small cleanup
2020-11-26 01:24:43 +01:00
Eoghanmc22
6d203b975e
Merge branch 'master' of https://github.com/Minestom/Minestom
2020-11-25 19:06:45 -05:00
Felix Cravic
431d20ef73
Fixed syntax starting with an unspecified length argument
2020-11-26 00:57:01 +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
Eoghanmc22
d1138f9f81
Fix race condition
2020-11-25 11:28:37 -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
edf22fcb66
Prevent getting the cpu monitoring message if the benchmark manager is not enabled
2020-11-25 11:39:36 +01:00
Felix Cravic
df4dd762d9
Minestom is not really an alternative to Bukkit
2020-11-25 10:58:09 +01:00
Felix Cravic
24d4e9b7e4
Added BatchOption
2020-11-25 09:47:04 +01:00
Felix Cravic
7bbb095156
Fixed Player#setInstance not refreshing chunks when already in an instance
2020-11-24 22:56:12 +01:00
Felix Cravic
38bcb755c2
Fixed PotionEffect ids
2020-11-23 10:08:23 +01:00
Felix Cravic
daa72719a0
Specify that ASK_SERVER is required for dynamic write callback
2020-11-22 23:04:06 +01:00
Felix Cravic
0705ab34ed
Allow custom suggestion type with ArgumentDynamicWord
2020-11-22 22:58:14 +01:00
Felix Cravic
e09397a0e2
Use of a lock object to synchronize instance entities collections
2020-11-22 22:18:47 +01:00
Eoghanmc22
d056fceb8a
slightly improve performance and fix memory leak
2020-11-22 12:44:08 -05:00
themode
a8c1c73282
Use of a synchronized wrapper for InstanceContainer chunks map
2020-11-22 17:40:57 +01:00
Eoghanmc22
414245a1a6
Merge branch 'master' of https://github.com/Minestom/Minestom
2020-11-22 10:33:38 -05:00
themode
5966cdaa47
Reduced the number of garbage objects
2020-11-22 16:32:15 +01:00
Eoghanmc22
a934df2af2
Merge branch 'master' of https://github.com/Minestom/Minestom
2020-11-22 08:59:52 -05:00
themode
0a5349226e
Replaced CopyOnWriteArraySet to IntOpenHashSet for block entities
2020-11-22 14:58:01 +01:00
themode
fcb59ff7e7
Removed unnecessary biomes clone
2020-11-22 14:52:37 +01: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
themode
5d8b59c012
Fixed MinecraftServer#setChunkViewDistance making players show more chunks than what their option is
2020-11-22 13:23:53 +01:00
themode
aa2f8489b2
Fixed max string length
2020-11-22 11:16:21 +01:00
themode
8330abbc4b
Fixed mojang authentication
2020-11-21 23:33:06 +01:00
Eoghanmc22
1af58b1d96
fix Main
2020-11-21 17:08:56 -05: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
Eoghanmc22
926c02b7f5
Small optimizations to netty.
2020-11-21 13:09:03 -05:00
themode
ab98c11de3
ItemStack#isSimilar should return true if both items have the same identifier
2020-11-21 11:42:47 +01:00
themode
3087b120f9
Basic support for linux io_uring
2020-11-21 10:42:07 +01:00
themode
3193c0894e
Typo fix
2020-11-21 10:27:39 +01:00
themode
27414f65ab
Made packet caching optional (enabled by default)
2020-11-21 10:26:25 +01:00
themode
0e6bb6cc3d
Replaced Arrays.copyOf to native #clone
2020-11-21 09:35:50 +01: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
234ac6daf4
Fixed build error
2020-11-21 06:43:12 +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
58f035fc4a
Added lastUpdate param comment in TemporaryCache
2020-11-21 05:53:30 +01:00
Eoghanmc22
4e11b16ee1
improve performance by 5-10%
2020-11-20 21:58:00 -05:00
Eoghanmc22
cb013f8291
player init
2020-11-20 15:19:20 -05: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
1da7f5da78
Merge branch 'master' of https://github.com/Minestom/Minestom
...
Conflicts:
src/test/java/demo/PlayerInit.java
2020-11-20 12:28:52 -05:00
themode
8d0a24fd55
PlayerInit packet optimization
2020-11-20 18:23:46 +01:00
Eoghanmc22
c1c84217c2
Merge branch 'master' of https://github.com/Minestom/Minestom
2020-11-20 12:16:55 -05:00
Eoghanmc22
ee2e141673
implement pooled buffers
2020-11-20 12:16:45 -05:00
themode
206991ad0a
Fixed TemporaryCache#retrieve not taking the last update time
2020-11-20 18:15:37 +01:00
Eoghanmc22
035844787e
Merge branch 'master' of https://github.com/Minestom/Minestom
2020-11-20 11:39:15 -05:00
themode
7a1a43279a
Fixed empty chunk when connecting during its generation
2020-11-20 17:13:00 +01:00
themode
da4216a51f
Fixed chunk synchronization during generation and packet sending
2020-11-20 16:37:59 +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
themode
014bc8b0b5
Fixed DebugUtils
2020-11-20 14:21:20 +01:00
themode
871cb993b4
Do not send packet to empty collection
2020-11-20 14:14:55 +01:00
Eoghanmc22
6fd401589c
slightly optimize CommandManager
2020-11-20 08:07:09 -05:00
themode
98fe83c605
Comments for PacketUtils
2020-11-20 14:05:22 +01:00
TheMode
8c5d013990
Flush in the current thread
...
Signed-off-by: TheMode <themode@outlook.fr>
2020-11-20 13:48:45 +01:00
themode
f1c0c99781
Fixed TemporaryCache check
2020-11-20 11:59:58 +01:00
themode
075ff7600a
Added a whole new caching system for ChunkDataPacket and UpdateLightPacket
2020-11-20 11:14:15 +01:00
themode
e453a0f9b5
Added Chunk#getLastChangeTime
2020-11-20 08:39:06 +01:00
themode
02eab844a5
Fix logging when compression is disabled (not recommended)
2020-11-20 07:55:34 +01:00
themode
9f45cf11a3
Added todo to optimize buffer allocation
2020-11-20 05:50:52 +01:00
themode
4060f8d290
Added GroupedPacketHandler to prevent rewriting the same packet multiple times
2020-11-20 05:37:13 +01:00
themode
3455c77eb7
Explain the role of each handlers
2020-11-20 04:48:33 +01:00
themode
e8ddf44c39
Stop hardcoding handler names
2020-11-20 04:36:33 +01:00
themode
153f7215b3
Write packet only once when used with PacketUtils#sendGroupedPacket
2020-11-20 03:57:05 +01:00
themode
2d7159f888
Fixed javadoc
2020-11-20 03:50:41 +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
TheMode
a0fccca1c6
Merge pull request #69 from JesFot/master
...
Add code style checks
2020-11-20 02:55:33 +01:00
TheMode
60bb0fec73
Merge pull request #71 from LeoDog896/master
...
Add llama entity with hitbox
2020-11-20 02:55:02 +01:00
JesFot
2c18312988
Merge branch 'master' into master
2020-11-20 02:12:02 +01:00
LeoDog896
974372d2bd
Merge remote-tracking branch 'upstream/master'
2020-11-19 19:55:00 -05:00
LeoDog896
66f038113f
Added EntityLlama
2020-11-19 19:53:22 -05:00
themode
018786463d
Replaced the channel traffic handler to GlobalChannelTrafficShapingHandler
2020-11-19 15:37:12 +01:00
themode
533526d3a5
MainDemo does not require a default write and read speed
2020-11-19 08:48:33 +01:00
themode
099a8bafdc
Increase socket send buffer to 1MB
2020-11-19 08:29:34 +01:00
themode
c1e623eddc
Fix unmappable character
2020-11-19 08:19:16 +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
fae8e30272
Reduced compression level to 3
...
Signed-off-by: TheMode <themode@outlook.fr>
2020-11-19 04:54:54 +01:00
Eoghanmc22
f307303758
Netty improvements
2020-11-18 20:28:56 -05:00
Eoghanmc22
618fd2b536
Begin optimizing netty.
2020-11-18 13:39:06 -05:00
themode
f30330c59b
Added PlayerStartDiggingEvent warning
2020-11-18 13:22:23 +01:00
themode
408ce03cfb
Made PacketDecoder more readable
2020-11-18 11:15:58 +01:00
themode
e619dd6a8e
Set the default write & read limit to 75KB/s per connection
2020-11-18 11:11:21 +01:00
jglrxavpok
142b6a69a5
Post-merge fixes
2020-11-18 09:24:59 +01:00
jglrxavpok
0a4bb5ab08
Merge branch 'extensions-v2'
...
# Conflicts:
# src/main/java/net/minestom/server/extensions/Extension.java
# src/main/java/net/minestom/server/extensions/ExtensionManager.java
# src/main/java/net/minestom/server/extras/selfmodification/MinestomRootClassLoader.java
2020-11-18 09:13:30 +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
40d6a71697
Cleanup
2020-11-18 06:39:20 +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
themode
2405b7ae6f
KB, not MB
2020-11-17 16:11:59 +01:00
themode
7ebbb8bc6c
Added networking optimization code in MainDemo
2020-11-17 16:08:30 +01:00
themode
ccaf9b5c47
Reformat code
2020-11-17 15:58:36 +01:00
JësFot
3597af34f9
Add comments to attribute system
2020-11-17 15:52:20 +01:00
JesFot
b9ea934857
Changing shareWithClient defaults to `true
`
2020-11-17 15:10:48 +01:00
JësFot
d738f9fddd
Implement attribute instances
2020-11-17 14:59:47 +01:00
themode
089f9a30aa
Comments about write/read limit of 0
2020-11-17 08:15:05 +01:00
themode
f965c5b9c9
Added write and read limit
2020-11-17 05:27:05 +01:00
themode
37a626121b
Set the default thread provider thread count to PROCESSORS*2
2020-11-17 02:56:55 +01:00
themode
c755dcfb0c
Prevent permanent loop for console commands
2020-11-17 02:43:20 +01:00
themode
ddaa3a6678
Prevent potential synchronization issue while removing client cache
2020-11-17 01:33:12 +01:00
themode
8b526bcabe
Decrease compression level to 3
2020-11-16 17:42:37 +01:00
themode
12822c508f
Cleanup
2020-11-16 17:36:31 +01:00
themode
392e702108
Improving chunk generation performance
2020-11-16 17:02:40 +01:00
themode
d4637f328b
Fix server ping
2020-11-16 12:44:20 +01:00
themode
a5839ae1c8
PacketListenerManager#processServerPacket comment
2020-11-16 12:25:13 +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
310733b747
Fixed stacking not working with NbtDataImpl
2020-11-16 07:40:45 +01:00
themode
3db53a798f
Removed lombok dependency
2020-11-16 03:10:51 +01:00
themode
11f1a5380c
Fix data file not being generated in TestLootTables
2020-11-16 00:46:46 +01:00
themode
6fbea18b41
Javadoc clarification
2020-11-16 00:04:27 +01:00
themode
a8ef335ac5
Added docs folder for GitHub Pages
2020-11-15 23:39:49 +01:00
themode
beebf18af2
Fixed the chunk generator not being executed when no populator is defined
2020-11-15 10:44:11 +01:00
themode
f1d046753c
Added info about chunk potential memory leak
2020-11-15 08:33:03 +01:00
themode
2285c9622a
If the garbage collector is happy, everyone is - TheMode
2020-11-15 08:03:33 +01:00
themode
47a18fc305
Created PaletteStorage#clean
2020-11-15 05:12:28 +01:00
themode
f67328c7a7
Clarify that entity ids are unique server-wide
2020-11-14 23:24:16 +01:00
themode
44fbeaa2d8
Use player respawnPosition in the SpawnPosition packet
2020-11-14 23:21:47 +01:00
themode
4353e10741
Added bungee skin/uuid forwarding
2020-11-14 23:18:52 +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
da94942bad
Created PermissionHandler
2020-11-14 07:06:46 +01:00
themode
868f921b94
Better warning message when a packet is not fully read
2020-11-14 05:33:24 +01:00
themode
facc43e550
Added OptifineSupport for fast fix
2020-11-14 04:09:38 +01:00
themode
0d3ef8e7a3
Synchronize biome registration
2020-11-14 03:21:16 +01:00
themode
a56a9aba3e
Clarification for FakePlayer#initPlayer about player registration
2020-11-14 02:30:42 +01:00
themode
597f292c16
Synchronize BlockManager registration methods
2020-11-14 01:47:25 +01:00
themode
1a8baf36f6
Prevent command override using CommandManager
2020-11-14 01:39:51 +01:00
themode
669e7ea711
Prevent important biome fields from being null
2020-11-14 01:06:04 +01:00
themode
2ea2efb5a2
Comments for packet handler getter
2020-11-14 00:26:15 +01:00
themode
6586ca39bc
Added MinecraftServer#getPacketProcessor and allow to override client packet and instantiate packet instance from an id
2020-11-14 00:20:19 +01:00
themode
a1fd711b85
Created DebugUtils
2020-11-13 21:57:45 +01:00
themode
ade727cd0f
Cleanup + created SingleThreadProvider
2020-11-13 19:43:22 +01:00
themode
47045252e5
PacketUtils comment
2020-11-13 09:17:53 +01:00
themode
2d009e19a7
Added KQueue support on OSX + netty version update
2020-11-13 08:39:05 +01:00
themode
1bf8c5f89b
Fixed time packet being sent every tick (should be every second now)
2020-11-13 07:45:35 +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
3c2c7acb0b
Optimize PaletteStorage operations
2020-11-13 03:57:13 +01:00
themode
0ae656c1f2
Prevent placing blocks above y=255
2020-11-13 03:51:02 +01:00
themode
72d941bc74
Prevent corrupted item stack from crashing the server
2020-11-13 03:39:00 +01:00
themode
1e30283733
Fixed palette breaking with a Y below 0
2020-11-13 03:29:09 +01:00
themode
0ab9c79a28
Prevent array resizing during server tick
2020-11-13 03:26:35 +01:00
themode
f24ae00c8f
Enable packet rate limit by default with a value of 300
2020-11-13 02:07:01 +01:00
themode
a992dc1ff9
Removed confusing BinaryReader method
2020-11-13 02:02:52 +01:00
themode
02f507d5ad
Server shouldn't crash/lag when receiving a string too big
2020-11-13 01:53:55 +01:00
themode
674e1079dd
Added max packet size condition
2020-11-13 01:34:25 +01:00
themode
373a1cf3a7
Removed TODO
2020-11-13 00:31:04 +01:00
themode
13932a6ca3
Removed RichMessage format retention, should be done manually. + cleanup
2020-11-13 00:28:22 +01:00
themode
d3d3cc6553
Each chunk section gets its own palette, should decrease memory usage on vanilla-like worlds
2020-11-12 22:41:41 +01:00
themode
5d8b8666f2
More PaletteStorage comments
2020-11-12 08:23:37 +01:00
themode
6e77bb8358
Improved demo commands clarity
2020-11-12 03:09:36 +01:00
themode
60d01fab11
Fix main loop sleep
2020-11-12 00:56:36 +01:00
themode
041bc721c8
Cleanup UpdateManager
2020-11-12 00:18:36 +01:00
themode
46bf69c9e2
PaletteStorage comments
2020-11-11 21:44:32 +01:00
themode
1d7db5e211
Added dynamic palette resizing
2020-11-11 21:35:20 +01:00
Eoghanmc22
a7a390307c
Corrected bitwise palette code and some bugs.
2020-11-11 14:28:59 -05:00
themode
babc6e35ba
Fixed palette
2020-11-11 17:30:18 +01:00
themode
55cddf6b78
Added palette
2020-11-11 17:13:36 +01:00
themode
00656d96e0
Cleanup
2020-11-11 08:16:42 +01:00
themode
93bae25085
Custom blocks also use a PaletteStorage object, removed StaticChunk since memory is not an issue anymore
2020-11-11 07:29:07 +01:00
themode
4dfe01ea2f
WIP PaletteStorage (only works with Bits per entry of 15)
2020-11-11 06:06:28 +01:00
themode
b6bf6a17ba
Merge branch 'master' into test-palette
...
# Conflicts:
# src/main/java/net/minestom/server/instance/DynamicChunk.java
2020-11-11 04:27:03 +01:00
themode
dde3430010
ArgumentRelative comment
2020-11-11 04:24:09 +01:00
themode
d520a0ebc4
Created ArgumentRelativeVec to prevent code duplication
2020-11-11 03:31:15 +01:00
themode
6cbe656b15
Added "semi-relative" location argument support
2020-11-11 02:11:28 +01:00
themode
99d27b78c4
Fixed NbtDataImpl not working in creative mode
2020-11-11 00:29:06 +01:00
themode
78bf5dda05
Comments for the relative location arguments
2020-11-10 23:31:35 +01:00
themode
ad357d70fc
Added ArgumentRelativeBlockPosition, ArgumentRelativeVec3 and ArgumentRelativeVec2
2020-11-10 23:16:35 +01:00
themode
bbf9f92b52
Added bungee forwarding support
2020-11-10 21:38:08 +01:00
themode
bcee5424dc
Fixed copied packets and compression using velocity forwarding
2020-11-10 21:14:24 +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
3ddca82aaa
Cleanup 2
2020-11-10 08:01:27 +01:00
themode
68bb479f4a
Cleanup
2020-11-10 07:42:11 +01:00
themode
c6c8f6b9d6
Usage comments for VelocityProxy
2020-11-10 00:13:57 +01:00
themode
7db94f3a65
Support for velocity modern forwarding
2020-11-09 23:48:34 +01:00
themode
247a328a09
Annotations for the advancement API
2020-11-09 18:29:30 +01:00
TheMode
826533e5ee
Added some dots
...
Signed-off-by: TheMode <themode@outlook.fr>
2020-11-09 18:08:26 +01:00
themode
e583f21b74
Fixed client crashing when pinging with an older client
2020-11-09 03:21:18 +01:00
themode
f9035bf949
Param comments for NBTUtils#toNBT
2020-11-08 22:40:50 +01:00
themode
4412bea7b8
NBTUtils comments and contributors link in README.md
2020-11-08 20:13:24 +01:00
themode
11fc1e39bc
Cleanup InstanceContainer#copy
2020-11-08 17:39:03 +01:00
themode
682c660857
Fixed javadoc
2020-11-08 15:57:00 +01:00
themode
a574c1fe2a
Close the command scanner once stopped
2020-11-07 22:58:19 +01:00
themode
224626bdbd
Added NbtDataImpl to support writing custom item NBT data to the client
2020-11-07 19:39:22 +01:00
themode
7bdfc93334
Added some comments about exceptions
2020-11-07 04:42:48 +01:00
themode
1d30e6e953
Use the Validator interface when possible for readability
2020-11-07 04:28:50 +01:00
themode
b2097a338d
Added comments for Argument constructors
2020-11-07 03:45:25 +01:00
themode
66fc6779b6
Dynamic arguments now also have an optional dynamic restriction
2020-11-07 03:40:37 +01:00
themode
8c8ba37947
Added auto suggestion in the reload command
2020-11-06 23:35:31 +01:00
themode
cf6fbd3d34
Cleanup
2020-11-06 22:58:38 +01:00
themode
fc4501501b
Fix tasks not being canceled properly + annotations
2020-11-06 22:13:52 +01:00
jglrxavpok
69f424eb6a
Improve load command safety
2020-11-06 16:10:44 +01:00
jglrxavpok
d83bec4732
Let users change extension jar after unload, then load it again
2020-11-06 16:03:08 +01:00
themode
7ba1b9e174
Added additional information in InstanceContainer#cacheChunk about signaling
2020-11-05 22:53:46 +01:00
themode
73d99bf462
Made InstanceContainer#cacheChunk public
2020-11-05 22:42:03 +01:00
themode
0ee8eb7d45
Removed the instance from Chunk constructor
2020-11-05 22:37:04 +01:00
themode
46d008b595
Added annotations in PacketUtils
2020-11-05 22:20:51 +01:00
themode
dfa725800a
Merge remote-tracking branch 'origin/master'
2020-11-05 16:37:32 +01:00
themode
428cea625e
Removed Block empty duplicate
2020-11-05 16:37:16 +01:00
KrystilizeNevaDies
16051e09de
Minor typo fix
...
Forgot to remove reduntant hashtag
2020-11-06 01:15:06 +10:00
TheMode
d31c6e8c5f
Merge pull request #64 from Geolykt/patch-1
...
Added distanceSquared where applicable and changed BlockPosition distance calculation
2020-11-05 15:44:35 +01:00
KrystilizeNevaDies
b50530b4e7
Fix rgb byte overflow
...
Fix rgb byte overflow:
Changed from concatenation and logic to bitwise ops
2020-11-06 00:36:45 +10:00
Geolykt
3be5605126
Added distanceSquared where applicable
...
Warning: Also breaks current API-Implementation (API-specification remains the same) in a way that BlockPosition#getDistance(BlockPosition) no longer returns the manhattan distance, but the distance according to pythagoras.
2020-11-04 20:31:29 +01:00
themode
2c0f0a8f9e
Remove warning about MinecraftServer#setEntityViewDistance
2020-11-04 19:20:45 +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
ae1d089603
Rounded extensions loading time for readability purpose
2020-11-04 18:27:18 +01:00
themode
8612245ff9
Added precison to the InventoryModifier comments
2020-11-04 18:22:42 +01:00
themode
c03a2992ef
Stop the whole click process if the event is canceled
2020-11-04 15:41:56 +01:00
themode
097dcf0f6c
Log the proper warning message instead of a NPE
2020-11-04 14:18:02 +01:00
themode
b296b103c1
CommandCondition command string can be null if a new command packet is built
2020-11-04 05:19:30 +01:00
themode
9781e380b9
Command syntaxes can now contain a CommandCondition
2020-11-04 04:45:46 +01:00
themode
b84bcde84d
Fixed Argument#useRemaining creating an empty array
2020-11-03 23:31:26 +01:00
jglrxavpok
925f5fa614
Reloading extensions
2020-11-03 21:26:46 +01:00
themode
b575d6df57
Changed the wiki link in README.md
2020-11-03 18:22:36 +01:00
jglrxavpok
25cde2cde7
Mixin modifications between extensions is now possible
2020-11-03 10:26:31 +01:00
jglrxavpok
d09c2756aa
Fix ChunkDataPacket using doubles for block entity data instead of ints
2020-11-03 09:03:54 +01:00
jglrxavpok
547e7cf6e6
Cleanup TODOs
2020-11-03 08:59:23 +01:00
themode
96dcd0e27f
Incredibly hard update to 1.16.4
2020-11-03 02:16:32 +01:00
themode
1c6070a1b2
Added an unknown command callback
2020-11-02 04:13:43 +01:00
themode
2e0c5a72b7
Added optional additional data in Permission#isValidFor
2020-11-02 02:53:12 +01:00
themode
e65ab88a3b
WIP palette
2020-11-01 22:53:36 +01:00
themode
463e1f047f
Cleanup + added PlayerSettingsChangeEvent
2020-11-01 00:07:15 +01:00
themode
30b9ae2ac8
Added FakePlayer comments
2020-10-31 20:12:20 +01:00
themode
487e7a097c
Renamed scheduledCallback to spawnCallback
2020-10-31 20:01:02 +01:00
themode
fbff3a6b0b
Fixed the FakePlayer scheduled callback being called in an external thread
2020-10-31 19:59:02 +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
6e36f3242d
Added InstanceContainer#copy and Chunk#copy
2020-10-31 19:22:23 +01:00
themode
0184ada9a0
Renamed #clone to #copy
2020-10-31 18:03:15 +01:00
themode
af3d742b13
Comments for UuidProvider and PlayerProvider
2020-10-31 13:30:11 +01:00
themode
c4f36a9cea
Cleanup + comments
2020-10-31 05:09:30 +01:00
themode
2e4a2f57cf
Cleanup and catch some NPE
2020-10-31 04:38:53 +01:00
themode
00ce2be258
Fixed shared instances tick being called 2 times
2020-10-31 02:55:55 +01:00
themode
4375a8734d
Add comment to signal how to make a "null" ItemStack
2020-10-31 01:41:46 +01:00
themode
f328a9cb2b
Added a few constructors to specify the instance directly
2020-10-31 01:38:57 +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
f334df0028
Chunk#UNSAFE_setBlock can have a custom block id sets to 0
2020-10-30 22:49:57 +01:00
themode
6d29f955e4
More comments for the command API, Arguments methods are NotNull since id should not be decided at runtime
2020-10-30 18:43:14 +01:00
Nathan M
10eba951fd
Fix Armor Stand Metadata
2020-10-30 03:30:33 -04:00
themode
872dccd7ce
Small cleanup
2020-10-29 22:52:07 +01:00
themode
c887392a91
CommandDispatcher comments for maintenance purpose and fixed all code warnings
2020-10-29 19:51:10 +01:00