TheMode
1d2a647efa
Fix tickBuffer refCnt
2021-04-18 03:35:41 +02:00
TheMode
2e4a443bec
Use multiple instances in the demo server
2021-04-18 02:35:17 +02:00
TheMode
2c1084d97b
Use hashcode
2021-04-18 02:22:35 +02:00
TheMode
7dd6aa2360
Separate PerChunkThreadProvider from PerInstanceThreadProvider, support arbitrary ThreadProvider#findThread number
2021-04-18 01:55:35 +02:00
TheMode
dd88a14b90
Remove unused class
2021-04-18 00:19:57 +02:00
TheMode
f0607f776a
Remove unused class
2021-04-18 00:08:13 +02:00
TheMode
eb63681c37
better comment
2021-04-18 00:00:02 +02:00
TheMode
8123e839ec
Improve acquisition performance, fix current thread lock not being occupied
2021-04-17 23:51:23 +02:00
LeoDog896
ee590e8325
Add meta
2021-04-17 15:00:52 -04:00
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
8f3ee93191
Use literal as the default argument when generating a syntax
2021-04-16 21:51:33 +02:00
TheMode
be0c425dfc
Merge branch 'master' into acquirable
2021-04-16 02:36:46 +02:00
TheMode
502ec22b92
Reduce synchronization overhead when writing tick buffer
2021-04-16 01:52:46 +02:00
TheMode
bc04534290
Use a while loop to detect deadlocks
2021-04-15 22:56:09 +02:00
TheMode
4f05887f32
Send time packet on login
2021-04-15 21:03:21 +02:00
Eoghanmc22
1bb5c7e89b
fix deadlock
2021-04-15 14:23:18 -04:00
TheMode
2045ce5743
Override AcquirableCollection#forEach
2021-04-15 10:06:34 +02:00
TheMode
b5add32ad6
Added AcquirableCollection + waiting time monitor
2021-04-15 09:51:37 +02:00
TheMode
56cc33fcfa
Merge branch 'master' into acquirable
2021-04-15 09:13:20 +02:00
TheMode
e17ce94241
Fix build for real
2021-04-15 08:21:24 +02:00
TheMode
232e4b8a28
Fix build
2021-04-15 08:10:32 +02:00
TheMode
5cb4be26ff
Try to close the terminal when shutting down the server
2021-04-15 08:07:17 +02:00
TheMode
b066b6029a
Merge pull request #223 from thiccaxe/master
...
Add events for STATUS packets.
2021-04-15 07:10:32 +02:00
TheMode
aef05893e1
Fix high CPU usage on startup
2021-04-15 04:11:52 +02:00
TheMode
f4ee5505ca
Fix tick thread not being properly terminated
2021-04-15 04:06:55 +02:00
TheMode
b3a548287a
Improve thread safety
2021-04-15 03:53:18 +02:00
TheMode
2b79e91295
Add comment + todo
2021-04-15 03:38:27 +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
LeoDog896
c41c202589
Deepclone and cast
2021-04-14 18:19:07 -04:00
LeoDog896
7eb13de433
Compound and list tags
2021-04-14 18:12:41 -04:00
TheMode
fec36d4706
Run thread directly
2021-04-14 22:48:13 +02:00
TheMode
73cdfed5ce
Merge branch 'master' into acquirable
2021-04-14 22:29:55 +02:00
TheMode
250907df6c
Return constant empty set if the chunk is not loaded
2021-04-14 22:29:38 +02:00
TheMode
7dc0387ecf
Add a way to find the current threadid of a chunk
2021-04-14 22:22:46 +02:00
TheMode
79f0d97664
Cleanup tick preparation
2021-04-14 21:41:14 +02:00
TheMode
a55ea6d0c2
WIP per-chunk thread
2021-04-14 21:29:37 +02:00
TheMode
356150847e
Per-chunk batch management
2021-04-14 20:32:02 +02:00
TheMode
9b8dd6e768
Merge branch 'master' into acquirable
...
# Conflicts:
# src/main/java/net/minestom/server/thread/ThreadProvider.java
2021-04-14 20:13:26 +02:00
TheMode
ccab205a54
Initial acquirable API commit
2021-04-14 20:12:56 +02:00
TheMode
c1b278f4b9
Fix merge, remove unnecessary methods (for now)
...
Signed-off-by: TheMode <themode@outlook.fr>
2021-04-14 20:09:49 +02:00
TheMode
683a6d35fa
Merge branch 'master' into tickable
...
# Conflicts:
# src/main/java/net/minestom/server/entity/Entity.java
# src/main/java/net/minestom/server/instance/DynamicChunk.java
# src/main/java/net/minestom/server/instance/Instance.java
2021-04-14 20:06:35 +02:00
TheMode
dc5b764732
Inventory id generation cleanup
2021-04-14 07:25:51 +02:00
TheMode
97f2f3f06c
Fix inventory id overflow
2021-04-14 05:03:37 +02:00
TheMode
c57e35c58a
Add completable future return to AsyncUtils
2021-04-14 04:06:41 +02:00
TheMode
7d574317dc
ClientCloseWindowPacket window id is a byte, not a var int
2021-04-14 02:00:19 +02:00
TheMode
b68c30423c
Add BinaryWriter#write(ByteBuf)
2021-04-14 01:40:21 +02:00
TheMode
a3f1235df4
Stacking rule should be defaulted to vanilla if null
2021-04-13 23:15:51 +02:00
TheMode
6ba336ee73
Added hand inside eat events
2021-04-13 22:59:40 +02:00
TheMode
a55ae4d048
Cache unmodifiable players set, remove print
2021-04-13 21:39:42 +02:00
TheMode
49944fb651
Keep StackingRule across builders
2021-04-13 09:24:37 +02:00
TheMode
58a532ac03
Annotate ItemStackBuilder#stackingRule with Beta
2021-04-13 09:19:39 +02:00
TheMode
70b97951e4
Added setter for StackingRule
2021-04-13 05:50:11 +02:00
TheMode
fed4e6897a
Fix FireworkEffect byte reading
2021-04-13 04:14:32 +02:00
TheMode
61d2ef2f06
Fix ItemStack#fromNBT
2021-04-13 03:45:01 +02:00
TheMode
508659fd30
Fix potential race condition
2021-04-13 03:29:55 +02:00
TheMode
2b74d7697c
Added ItemStack#fromNBT
2021-04-13 03:27:51 +02:00
TheMode
32430882a5
ItemStack is final
2021-04-13 03:10:04 +02:00
TheMode
3b8ed1df32
Add api status annotations
2021-04-13 02:21:03 +02:00
TheMode
56439a2330
Merge branch 'master' into jline
2021-04-13 02:18:10 +02:00
TheMode
1b98a65869
Get entities from all instances when none is specified in an entity query
2021-04-13 02:08:09 +02:00
TheMode
20c947650f
Clear command cache after unregistering a command
2021-04-12 22:45:45 +02:00
TheMode
cdaef2b4f0
Remove LivingEntity outdated TODO
2021-04-12 19:56:40 +02:00
TheMode
2755add8df
Fix item tags not being saved when going through a builder
2021-04-12 17:11:28 +02:00
TheMode
1e99810451
Inventory title can be raw string
2021-04-12 16:42:57 +02:00
TheMode
6b165c7692
Fix MapMeta not being a provider
2021-04-12 16:29:15 +02:00
TheMode
2531161964
Fix drag click
2021-04-12 16:27:12 +02:00
TheMode
0fea9b39a2
Return AIR if the amount is 0 or below
2021-04-12 09:11:08 +02:00
TheMode
adfb487140
Fix entity currentChunk being null
2021-04-12 04:50:45 +02:00
TheMode
4932262750
Use chunk instead of instance to check if an entity is on ground
2021-04-12 04:45:11 +02:00
TheMode
bd90de0df2
Remove unnecessary string concat
2021-04-12 04:27:36 +02:00
TheMode
0ff9e3e435
Remove debug print
2021-04-12 04:05:18 +02:00
TheMode
8f6a651bda
Added StackingRule#apply with unary operator for amount
2021-04-12 01:27:33 +02:00
TheMode
aac32420de
Annotation cleanup
2021-04-12 01:07:05 +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
7e3035709f
Annotation, fix cursor item not being cleared
2021-04-12 00:42:32 +02:00
TheMode
8e9d7098e5
Allow custom transaction type, simplify inventory superclasses
2021-04-12 00:33:27 +02:00
TheMode
ecb77fc847
Rename FillOption to TransactionOption
2021-04-12 00:07:38 +02:00
TheMode
1100aa98a5
Annotation & comment
2021-04-12 00:04:40 +02:00
TheMode
17fcd23c77
Fix condition, add documentation
2021-04-11 23:52:12 +02:00
TheMode
d86a733b79
WIP FillOption
2021-04-11 23:43:35 +02:00
TheMode
db8f071633
Cleanup, make PingPlayer immutable
2021-04-11 20:46:48 +02:00
TheMode
9f3b7d4ca8
Update FakePlayerConnection.java
2021-04-11 20:32:09 +02:00
thiccaxe
fadbe39494
Getters for fields in HandshakeData
2021-04-11 10:46:09 -07:00
thiccaxe
c451d46ce0
document ServerListPingEvent
2021-04-11 10:30:47 -07:00
TheMode
c7cd8c332a
Rename meta package to metadata to limit breaking changes
2021-04-11 19:13:50 +02:00
TheMode
df20670ce8
Use AIR as default in CrossbowMeta instead of null
2021-04-11 17:12:28 +02:00
TheMode
ea3aedd76f
ItemMeta#getOrDefault annotation
2021-04-11 17:05:32 +02:00
TheMode
792dd9787f
Remove ItemStore API until a stable solution is found
2021-04-11 17:01:05 +02:00
TheMode
f7bf7c1321
Merge pull request #204 from kezz/send-packets-to-audience
...
Add util method to send a packet to an audience
2021-04-11 15:29:04 +02:00
TheMode
34a7c68e16
Merge pull request #237 from Minestom/update_structure_packet
...
Add update structure block packet
2021-04-11 15:26:19 +02:00
TheMode
2fadf1da94
Added varargs equivalent for canPlace/Destroy
2021-04-11 15:01:43 +02:00
TheMode
3b37987f15
Remove dead line
2021-04-11 14:55:27 +02:00
Matt Worzala
1f27f2e6cd
provide default location
2021-04-11 00:46:04 -04:00
Matt Worzala
11146186cc
add update structure block packet
2021-04-11 00:37:00 -04:00
thiccaxe
8a9abff98b
Remove Duplicate Code; unlinking ResponseData & ServerListPingEvent
...
Removed code that would cause maintaining more difficult after an update in ResponseData, and additionally PlayerConnection
Updated demo to reflect changes.
2021-04-10 21:14:36 -07:00
TheMode
2f53388b9f
Fix velocity IP forwarding
2021-04-11 05:46:52 +02:00
TheMode
6e0202c33b
Fix math, improve physics performance
2021-04-11 03:21:38 +02:00