7def3db781
Fixed generate-known-translation-apis script not getting PHPStan'd
2021-08-29 23:32:08 +01:00
ee8b854f30
Add tools/ to PHPStan analysis
2021-08-29 23:31:24 +01:00
6bbc0aae7d
Merge branch 'stable'
2021-08-29 23:23:30 +01:00
f506c922b5
phpstan.neon.dist: fix indentation inconsistency
...
fuck you, phpstorm!
it doesn't have an option to use tabs for indentation in YAML, and YAML is the closest thing to NEON, so ...
2021-08-29 23:19:35 +01:00
994a2c9eb9
Clean up entity/tile data loading from world providers
2021-08-29 23:11:18 +01:00
533b0d0724
Updated convert-world CLI tool
2021-08-29 21:04:59 +01:00
b4e23a57d2
CraftingDataCache: Replace hardcoded recipe block names with constants from BedrockProtocol
2021-08-29 16:26:18 +01:00
510b75ef38
Use tagged version of BedrockProtocol
2021-08-29 16:23:56 +01:00
8847aa2d7f
LegacyStringToItemParser: mark as deprecated, and point people towards StringToItemParser, which is much nicer
2021-08-29 16:13:19 +01:00
dee2062b1b
CraftingManager: Reduce footprint of recipe keys
...
this was using json before, which is horribly inefficient.
This saved about 200 KB of memory on initial startup (which isn't much, but for more complex recipes, it might have been significantly worse.
2021-08-29 15:49:18 +01:00
c2558573e2
Fix offhand pickup ( #4412 )
2021-08-29 12:45:23 +01:00
2139171a55
added BlockItemPickupEvent class ( #4402 )
2021-08-29 00:40:09 +01:00
3fe6ce7d1f
[ci skip] changelog: mention StructureGrowEvent
2021-08-27 21:02:52 +01:00
43d90d621d
[ci skip] update changelog
2021-08-27 20:55:19 +01:00
938e430b0f
Convert Populator into an interface
2021-08-27 20:41:54 +01:00
c7f78bec15
Added missing change to complete beba0ffe15
2021-08-27 20:33:17 +01:00
6c1fec8a29
Tree: renamed generateChunkHeight to generateTrunkHeight
...
I guess it must have been late at night when I originally wrote this code.
2021-08-27 20:32:07 +01:00
beba0ffe15
Remove circular dependency between Tree and its children
2021-08-27 20:25:21 +01:00
4778c1483a
Tree: fixed formatting error
2021-08-27 20:14:31 +01:00
8f89c04c51
Refactor Tree classes ( #4407 )
2021-08-27 20:11:05 +01:00
a5b08fc8f2
Rewrite CONTRIBUTING.md to be more developer-oriented
2021-08-27 15:05:57 +01:00
c3c4c80b70
SECURITY: drop supported versions table
...
this isn't actively maintained, so it's misleading.
[ci skip]
2021-08-27 13:53:01 +01:00
5695fa9086
CONTRIBUTING: fixed a broken link
...
[ci skip]
2021-08-27 13:51:16 +01:00
ee16a00c57
World: do not attempt placement of itemblock if stack size is zero ( #4410 )
...
This doesn't make any sense, and also caused a crash.
2021-08-27 13:14:56 +01:00
d9b9aed2cc
Fixed CS
2021-08-26 15:31:28 +01:00
7919a1a1c5
Drop support for commands with spaces in the names
...
the use case for this is basically zero, since the community prefers implementing their own subcommand systems instead (which are much more flexible).
In addition, allowing spaces in command names makes it extra complicated to display helpful information to the user, such as the command that was actually accepted by the command map (which would be useful for identifying accidental invisible characters / control characters when sending commands).
2021-08-26 15:24:35 +01:00
e140614a63
Localize /gc
2021-08-26 15:06:43 +01:00
239534995f
Update preprocessor submodule to pmmp/PreProcessor@8a3163aad6
2021-08-26 13:32:50 +01:00
47120022c2
Localize messages for /op and /deop
2021-08-26 13:31:19 +01:00
f78808bad0
Bump phpstan/phpstan-strict-rules from 0.12.10 to 0.12.11 ( #4401 )
...
Bumps [phpstan/phpstan-strict-rules](https://github.com/phpstan/phpstan-strict-rules ) from 0.12.10 to 0.12.11.
- [Release notes](https://github.com/phpstan/phpstan-strict-rules/releases )
- [Commits](https://github.com/phpstan/phpstan-strict-rules/compare/0.12.10...0.12.11 )
---
updated-dependencies:
- dependency-name: phpstan/phpstan-strict-rules
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-25 20:41:11 +01:00
4189fbdaef
Added StructureGrowEvent ( #4354 )
...
This event is currently fired for tree and bamboo growth. Its intended use is for any plant growth that affects multiple blocks at once.
TODO: We could explore using this for cacti and sugarcane?
2021-08-25 14:05:30 +01:00
6e68e99ec0
Added PlayerEntityInteractEvent ( #4374 )
2021-08-24 11:56:10 +01:00
224d71f272
World: renamed getChunks() to getLoadedChunks() ( #4393 )
2021-08-23 21:23:35 +01:00
2d025bf02f
Populate StringToItemParser with some names from VanillaBlocks
...
this makes just about everything easily accessible via commands.
There are some stuff that shouldn't be here due to not being actual items (e.g. door blocks, bed blocks, wall coral fans) but since there were legacy aliases for all those things already, I figured what the heck - it's more effort to exclude them, so whatever.
2021-08-23 14:49:30 +01:00
78b0275a6c
StringToItemParser: added a bunch of nice new aliases
...
this should especially make potions less cancerous to /give.
2021-08-23 14:25:00 +01:00
7fd712c1ff
Refactor Block & Tile: getPos() to getPosition() ( #4395 )
...
this also changes the name of the class property 'pos' to 'position' as well as Block->getPosOffset() to Block->getPositionOffset()
2021-08-23 14:01:32 +01:00
dc0082162b
Bump phpstan/phpstan from 0.12.95 to 0.12.96 ( #4397 )
...
Bumps [phpstan/phpstan](https://github.com/phpstan/phpstan ) from 0.12.95 to 0.12.96.
- [Release notes](https://github.com/phpstan/phpstan/releases )
- [Commits](https://github.com/phpstan/phpstan/compare/0.12.95...0.12.96 )
---
updated-dependencies:
- dependency-name: phpstan/phpstan
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-23 13:53:20 +01:00
22316976fa
Introduce next-generation StringToItemParser
...
this isn't specced up with some of the finer features of LegacyStringToItemParser such as metadata parsing, but those are still a work in progress (and probably limited to specific items like durable stuff).
The goal is to unbind these aliases from legacy internal IDs, while also providing a nice flexible way for plugins to add their own items and aliases to the existing system.
This system allows mapping a string to any item at all, irrespective of state, internal IDs, or any of that nonsense. This means it's finally possible to have stuff like lapis_lazuli and bone_meal aliases in commands.
2021-08-23 00:39:20 +01:00
044b2f54ac
Fixed build
2021-08-22 23:13:25 +01:00
270ee5c085
Simplify registry method generation
2021-08-22 23:02:36 +01:00
1ce9474fce
Picked up items can now be added to offhand slots. ( #4360 )
2021-08-22 20:36:12 +01:00
cd9af7f9f6
Utils: be explicit about class existence checking in testValidInstance()
2021-08-21 15:57:57 +01:00
4d73c93886
fix CS
2021-08-21 15:54:11 +01:00
7d9f8ff4ed
World: do not use static:: for private property access
2021-08-21 15:46:19 +01:00
5f3c9e6f19
Timezone: fix some implicit boolean type conversions
2021-08-21 15:43:30 +01:00
686bf398d5
BlockFactory: simplify get() code
2021-08-21 15:41:00 +01:00
4023a024ce
[ci skip] update changelog
2021-08-21 00:15:38 +01:00
14577daae3
fixed build
2021-08-20 23:52:34 +01:00
668df85e3f
Merge branch 'stable'
2021-08-20 23:08:17 +01:00
f5a4baf3cf
AsyncTask: regroup some methods into more sensible places
...
how the fuck is anyone supposed to find anything??
2021-08-20 23:00:39 +01:00