Commit Graph

2152 Commits

Author SHA1 Message Date
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
94b737812d add converter from adventure enums to 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
4179e5b91e allow obtaining enum values from registries using adventure key 2021-03-26 17:34:38 +00:00
Kieran Wallbanks
89a962de9e remove more checker annotations 2021-03-26 17:34:38 +00:00
Kieran Wallbanks
f20d2ac273 prefer iterable audiences 2021-03-26 17:34:38 +00:00
Kieran Wallbanks
426b93db8f delegate hover event for items/entities to adventure, fixes #161 2021-03-26 17:34:38 +00:00
Kieran Wallbanks
b6dd2fa8f1 implement Keyed in generated enums 2021-03-26 17:34:38 +00:00
Kieran Wallbanks
d419bf9401 fix TeamColor allowing unsupported formats 2021-03-26 17:34:38 +00:00
Kieran Wallbanks
aa7703c056 make color take an RGBLike instead of a TextColor 2021-03-26 17:34:38 +00:00
Kieran Wallbanks
e3d135e1f2 update arguments to reflect new color options 2021-03-26 17:34:38 +00:00
Kieran Wallbanks
8b82d61c0c fix demo build 2021-03-26 17:34:38 +00:00
Kieran Wallbanks
abae740cbc fix javadocs 2021-03-26 17:34:38 +00:00
Kieran Wallbanks
35f9161d19 update demos 2021-03-26 17:34:38 +00:00
Kieran Wallbanks
f2897eedca fix title ticks 2021-03-26 17:34:38 +00:00
Kieran Wallbanks
87b30a8361 correct SerializationManager method contracts 2021-03-26 17:34:38 +00:00
Kieran Wallbanks
3b0aa2d63b Deprecate legacy chat functions 2021-03-26 17:34:38 +00:00
Kieran Wallbanks
edbd244a07 Optimise JsonMessage <-> Component 2021-03-26 17:34:38 +00:00
Kieran Wallbanks
3b2d5fd7d0 more colour cleanup 2021-03-26 17:34:38 +00:00
Kieran Wallbanks
5ebd9058e2 Update colours 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
82820bc40b Remove WrapperAudience 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
6095523d8a Deprecate old chat in packets 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
52831e7091 Add converter from Component to JsonMessage 2021-03-26 17:34:38 +00:00
Kieran Wallbanks
653859e784 Add SerializationManager 2021-03-26 17:34:38 +00:00
Kieran Wallbanks
d9c7f2cd61 Formatting changes 2021-03-26 17:34:38 +00:00
Kieran Wallbanks
be5b31e207 Add concurrencyLevel to the MapMaker 2021-03-26 17:34:38 +00:00
Kieran Wallbanks
ac57726a98 Make more classes implement Audience 2021-03-26 17:34:38 +00:00
Kieran Wallbanks
9fca53a8d3 Make JsonMessage a ComponentLike 2021-03-26 17:34:38 +00:00
Kieran Wallbanks
d4873e5e02 Make Team implement ForwardingAudience 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
cfa9cffe87 Clean up non-Player CommandSender 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
7c63099963
Merge pull request #180 from Project-Cepi/extension-exposing
Extension exposing and cleanup
2021-03-26 18:33:35 +01:00
themode
0d7d7ef453 Cleanup comment 2021-03-26 16:43:25 +01:00
themode
cef7e3d591 Optimize packet writing & reduce allocation 2021-03-26 15:58:46 +01:00
themode
9c8c8c8bf8 WIP packet allocation improvement 2021-03-26 13:08:05 +01:00
themode
6db1c34c50 Remove mention of deprecated class 2021-03-26 11:25:03 +01:00
themode
71f2e885a4 Remove unused field 2021-03-26 11:24:09 +01:00
themode
1ceffd8540 Do not write empty buffer 2021-03-26 11:09:30 +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
c92a7873db Only send velocity packet in #addViewer if required 2021-03-26 09:04:28 +01:00
themode
0eea491f9d Fix intellij warning 2021-03-26 08:52:16 +01:00
themode
c6c720e0c7 Use concurrent map instead of copyonwrite set for player's viewable entities 2021-03-26 08:49:27 +01:00
themode
e9d76cc742 Flush in netty event loop 2021-03-26 08:37:47 +01:00
themode
eb4a6baf8e Use a thread safe Set for EntityCreature ai groups 2021-03-25 21:36:18 +01:00
Kieran Wallbanks
845f41b88a Remove cast and instanceof check from Viewable#sendPacketToViewersAndSelf 2021-03-25 17:07:05 +00:00
themode
622f632989 Use heap buffer for short lived packets 2021-03-25 16:51:36 +01:00
themode
b3655ad82d Small style cleanup 2021-03-25 16:05:10 +01:00
Eoghanmc22
0f5bb0e4f2 Changes to networking 2021-03-25 10:44:02 -04:00
LeoDog896
c60b92394c jglr's notes 2021-03-24 15:55:48 -04:00
LeoDog896
1b6bf4f173 Comment fixes 2021-03-24 15:53:02 -04:00
LeoDog896
69efdfd63f Spacing, more annotations 2021-03-24 13:25:36 -04:00
LeoDog896
082330dcd4 Remove invalid TODO 2021-03-24 12:25:33 -04:00
LeoDog896
606079ea98 Move cleanup to front, don't discover if not necessary 2021-03-24 12:23:44 -04:00
LeoDog896
2de657bca6 Outsource classloader to DiscoveredExtension 2021-03-24 12:16:29 -04:00
LeoDog896
d2c1284459 Merge remote-tracking branch 'upstream/master' into extension-exposing 2021-03-24 11:59:01 -04:00
LeoDog896
0fe222ea85 Small docs cleanup 2021-03-24 11:58:51 -04:00
LeoDog896
faa53b3d48 Cleanup, renaming, and docs 2021-03-24 11:55:46 -04:00
LeoDog896
5e92e04c29 JavaDocs 2021-03-24 11:23:56 -04:00
themode
5320beddb8 Added ArgumentUUID 2021-03-24 15:13:25 +01:00
LeoDog896
d1e0247754 Merge remote-tracking branch 'upstream/master' into extension-exposing 2021-03-24 09:10:42 -04:00
themode
fe7b48df48 Added ArgumentResourceLocation 2021-03-24 13:58:44 +01:00
LeoDog896
5e52121f3b Use one LinkedHashMap instead of multiple lists 2021-03-24 08:48:55 -04:00
LeoDog896
f2924b37a1 Make logger public
Good for encompassing logs EX a hanging System.out log can be passed back to the extension that called it
2021-03-24 08:48:37 -04:00
LeoDog896
34a56cf00e Move to Map of Extension 2021-03-24 08:39:47 -04:00
LeoDog896
e9a5389680 More scoping 2021-03-23 20:13:15 -04:00
LeoDog896
b5728e2255 Scope the dependency map 2021-03-23 20:04:25 -04:00
LeoDog896
1de1fb062d Better mapping! 2021-03-23 19:59:40 -04:00
LeoDog896
3b5d066f44 Style and stream cleanup 2021-03-23 19:43:48 -04:00
themode
135ecf7b9c Fix block placement on item entity 2021-03-23 17:01:12 +01:00
LeoDog896
79a8f4bd93 General style alignment 2021-03-23 11:50:42 -04:00
LeoDog896
5adbbd8c45 Style cleanup
Note: Stream is nice to have in some places, just *please* don't abuse it
2021-03-23 11:42:32 -04:00
LeoDog896
701b1cb2e5 Move to DiscoveredExtension vs ExtensionDescription
For those who are wondering why I replaced some streams:

https://stackoverflow.com/questions/16635398/java-8-iterable-foreach-vs-foreach-loop
2021-03-23 11:35:52 -04:00
LeoDog896
a982c4f11e Add removePlayerInitialization func 2021-03-23 08:56:25 -04:00
themode
4c3215bf1b Fix packet writing when compression is disabled 2021-03-22 19:37:16 +01:00
themode
7cd2d1b896 Do not fill attributes by default 2021-03-22 15:20:24 +01:00
themode
169dbedea2 Fix entity head position, improve performance for Player#addViewer0 2021-03-22 14:54:52 +01:00
themode
5185a3efa6 Improve DynamicChunk cloning 2021-03-22 14:39:06 +01:00
themode
e2a94d40ae Merge remote-tracking branch 'origin/master' 2021-03-22 14:31:46 +01:00
themode
01e56636da Reduce the number of buffer copy 2021-03-22 14:31:38 +01:00
KrystilizeNevaDies
77af63772f Add getTask in SchedulerManager 2021-03-22 21:23:57 +10:00
themode
b6d8dd9f73 Style cleanup + increase food saturation limit to 20 2021-03-21 19:47:22 +01:00
themode
510f8d7733 Give a name to the tick scheduler thread 2021-03-21 15:44:37 +01:00
themode
95eddf47de Auto load chunk when spawning entities 2021-03-21 14:26:34 +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
126382f55d Reduce memory allocation 2021-03-21 13:22:49 +01:00
themode
2028009685 Temporarily disable traffic handler, improve chunk viewers set 2021-03-21 12:02:23 +01:00
themode
cd75740e41 Fix compilation 2021-03-21 11:46:04 +01:00
themode
aa2f29bbc2 Remove preventive write, only update cache when needed 2021-03-21 11:45:32 +01:00
themode
0fc8ae953f Improve entities caching inside instance & chunks 2021-03-21 11:38:48 +01:00
themode
9817919988 CommandParser#findCommand style cleanup 2021-03-21 09:25:22 +01:00
themode
1e138c5db9 Merge remote-tracking branch 'origin/master' 2021-03-21 09:09:52 +01:00
themode
3e3cb4b213 Fix command name recursion 2021-03-21 09:09:32 +01:00