45 Commits

Author SHA1 Message Date
Dylan K. Taylor
f88ae93897
BC break: Replaced webmozart/path-util with symfony/filesystem, closes #5332 2022-10-13 16:43:36 +01:00
Dylan K. Taylor
43a3151de3
Merge branch 'next-minor' into next-major 2022-08-14 18:49:19 +01:00
Dylan K. Taylor
15586ed80e
Fix CS 2022-08-12 21:09:15 +01:00
Dylan K. Taylor
0f8ad8ecf7
Update permission doc output format 2022-08-12 20:47:38 +01:00
Dylan K. Taylor
82b9afef77
Allow generating RST permission summaries, to be used on doc.pmmp.io 2022-08-12 18:00:52 +01:00
Dylan K. Taylor
ccb3c3cb05
BlockStateData: use array<Tag> instead of CompoundTag to store state properties
this reduces the footprint of RuntimeBlockMapping by a further 1 MB, as well as simplifying various parts of the code, and solidifying the immutability guarantee of BlockStateData.
2022-07-09 16:03:51 +01:00
Dylan K. Taylor
a8728a02f6
BlockStateDictionary: extract a more generic helper method for decoding block palette files 2022-07-06 14:37:46 +01:00
Dylan K. Taylor
dc8f65c0dd
Remove unnecessary BlockStateDictionary usages 2022-07-06 14:33:27 +01:00
Dylan K. Taylor
227a481473
generate-block-palette-spec: include blocks with no properties 2022-07-03 02:01:28 +01:00
Dylan K. Taylor
7994da07be
Crafting recipe network serialization no longer depends on PM's internal legacy metadata
WOOOOOOOOOOOOOOOOOOOOOOHOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO!!!!!!!!!!!!!!!!!!!!!
2022-07-02 16:37:43 +01:00
Dylan K. Taylor
680615eed8
Namespace rename 2022-06-08 15:54:45 +01:00
Dylan K. Taylor
e78f20391e
seriously? ... 2022-06-08 14:21:57 +01:00
Dylan K. Taylor
0a22e4606d
Wow, I'm really getting sloppy... 2022-06-08 13:51:15 +01:00
Dylan K. Taylor
cf7d42b3ea
Fix CS according to new rules 2022-06-07 20:02:24 +01:00
Dylan K. Taylor
1ff69136a3
Merge branch 'next-major' into modern-world-support 2022-06-07 20:01:40 +01:00
Dylan K. Taylor
1f8009954c
Fix PHPStan errors 2022-06-07 19:52:16 +01:00
Dylan K. Taylor
3a9e4bc357
Fix CS 2022-06-07 19:40:00 +01:00
Dylan K. Taylor
3ce1be2a23
Added script to generate incremental item upgrade schemas 2022-06-07 19:39:06 +01:00
Dylan K. Taylor
fe4ff3325b
Add tool to dump JSON specification for block palettes
this makes for easier reading to determine available properties.
2022-06-07 19:05:49 +01:00
Dylan K. Taylor
38d6284671
Use PHP-CS-Fixer to enforce file header presence 2022-06-04 17:34:49 +01:00
Dylan K. Taylor
2f2ffe0aa4
fix phpstan 2022-05-13 21:03:49 +01:00
Dylan K. Taylor
45150f1a52
fix CS 2022-02-10 13:47:20 +00:00
Dylan K. Taylor
0f07b2499c
Added blockstate upgrade schema generator 2022-02-10 13:45:39 +00:00
Dylan K. Taylor
4d55935bd8
Replace disallowed operators in tools/ 2022-01-20 16:48:06 +00:00
Dylan K. Taylor
7a385ddc8b
simulate-chunk-selector: remove unused colour allocation 2021-12-08 20:04:03 +00:00
Dylan K. Taylor
2254f31bec
Use Utils::assumeNotFalse() in tools/ 2021-12-08 20:01:19 +00:00
Dylan K. Taylor
300d194185
CS again 2021-12-05 01:09:03 +00:00
Dylan K. Taylor
13340a21d3
fix CS 2021-12-05 01:01:16 +00:00
Dylan K. Taylor
27f599793a
tools: added old-but-gold server-ping.php 2021-12-05 01:00:24 +00:00
Dylan K. Taylor
269231c228
Ban foreach(arrayWithStringKeys as k => v)
this is not as good as phpstan/phpstan-src#769 (e.g. array_key_first()/array_key_last() aren't covered by this, nor is array_rand()) but it does eliminate the most infuriating cases where this usually crops up.
2021-11-15 22:52:05 +00:00
Dylan K. Taylor
8abc952c74
simulate-chunk-selector: do not reallocate colours on every frame 2021-11-04 19:38:40 +00:00
Dylan K. Taylor
4f8501ff34
Added a tool to visualise behaviour of ChunkSelector
I actually intended to write a tool for debugging generation, but it turns out this, as an intermediary step, is also useful and a whole bunch of fun to play with.
2021-11-04 14:14:55 +00:00
Dylan K. Taylor
a794d24c81
Added a tool to generate a Markdown document of all core permissions 2021-10-17 17:02:18 +01:00
Dylan K. Taylor
43b2e1a0e8
tools/convert-world: improve error messages and exit codes
die with a string exits with zero? wtf?
2021-09-16 15:28:20 +01:00
Dylan K. Taylor
4b06e19d28
Cover tools/ in php-cs-fixer 2021-08-29 23:33:07 +01:00
Dylan K. Taylor
ee8b854f30
Add tools/ to PHPStan analysis 2021-08-29 23:31:24 +01:00
Dylan K. Taylor
533b0d0724
Updated convert-world CLI tool 2021-08-29 21:04:59 +01:00
Dylan K. Taylor
5d83f4670a
RegionLoader: Switch to using named constructors
this makes the code more self-descriptive, and also helps to detect potential bugs.
2021-04-15 21:57:23 +01:00
Dylan K. Taylor
32c4a165cf
Removed RegionLoader::open()
this is nothing but a source of bugs.
2021-04-15 15:38:18 +01:00
Dylan K. Taylor
4bf40df770 tools: added a script to remove garbage from region files 2020-05-31 15:10:28 +01:00
Dylan K. Taylor
c93038f574 Inject WorldProviderManager to WorldManager's constructor, no longer singleton 2020-05-24 19:22:04 +01:00
Dylan K. Taylor
c9af5ce7a9 Convert GeneratorManager to singleton 2020-05-23 10:13:03 +01:00
Dylan K. Taylor
640428c415 Convert WorldProviderManager to singleton 2020-05-23 10:02:09 +01:00
Dylan K. Taylor
1df345ba6f tools/convert-world: do not redefine RESOURCE_PATH
this is now defined automatically when including the autoloader.
2020-04-24 20:55:57 +01:00
Dylan K. Taylor
1de5d35dfc add a CLI tool for conversion 2019-08-26 19:03:48 +01:00