Dylan K. Taylor
e6ff908e18
actions: update PHP versions
2021-05-04 21:52:17 +01:00
Dylan K. Taylor
176ca3fd2f
shut
2021-05-02 14:56:56 +01:00
Dylan K. Taylor
b8645f5c15
Clean up EnderChestInventory implementation
...
now, EnderChestInventory is just a temporary window, much like anvil/enchanting windows. It provides a gateway to the player's PlayerEnderInventory.
This removes one of the remaining obstacles to disallowing null World in Position constructor.
2021-05-02 14:26:27 +01:00
Dylan K. Taylor
129ca7fee0
Silence a PHPStan bug
...
I'm not able to reproduce this one on the playground, but it still shows up even when disabling certain phpdocs...
2021-05-02 13:55:32 +01:00
Dylan K. Taylor
4c783f1037
shut
2021-05-02 13:43:37 +01:00
Dylan K. Taylor
988c976459
Remove unused import
2021-05-02 13:40:18 +01:00
Dylan K. Taylor
9b8f32c584
Extract inventory helper methods from BaseInventory to a trait
...
this allows easier alternate implementations of Inventory that don't extend BaseInventory (e.g. double chest, or delegate inventory).
2021-05-02 13:38:49 +01:00
Dylan K. Taylor
c47ecb55c0
Sign: Do not allow edits by any player except the one who placed it, and only while that player is online
...
signs now become finalized if:
- the player quits and rejoins (because the entity runtime ID of the player will not be the same)
- the chunk is unloaded and reloaded (because the tagged entity runtime ID is not saved).
closes #4198
2021-05-02 13:22:31 +01:00
dependabot-preview[bot]
c19d2fe891
Bump phpstan/phpstan from 0.12.84 to 0.12.85 ( #4199 )
...
Bumps [phpstan/phpstan](https://github.com/phpstan/phpstan ) from 0.12.84 to 0.12.85.
- [Release notes](https://github.com/phpstan/phpstan/releases )
- [Commits](https://github.com/phpstan/phpstan/compare/0.12.84...0.12.85 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-05-01 23:24:49 +01:00
dependabot-preview[bot]
f195f24f4f
Upgrade to GitHub-native Dependabot ( #4201 )
2021-05-01 23:24:35 +01:00
Dylan K. Taylor
f538440bce
De-spaghettify the hierarchy for chest inventories
2021-04-30 13:44:39 +01:00
Dylan K. Taylor
d37016f43b
Vine: added API to get/set faces
2021-04-30 13:35:38 +01:00
Dylan K. Taylor
726978b8f1
Migrate all coloured blocks (except glazed terracotta) to dynamic colours
2021-04-29 20:11:03 +01:00
Dylan K. Taylor
593a8ac529
Added Loom blocks
...
these don't support doing patterns yet, but their inventories work.
2021-04-29 19:51:09 +01:00
Dylan K. Taylor
4b5f279a3e
UseItemOnEntityTransactionData: added missing type
2021-04-29 19:13:52 +01:00
Dylan K. Taylor
b33bf1f433
Unfuck banners ...
2021-04-28 18:44:21 +01:00
Dylan K. Taylor
d5e5a81cff
Don't explode when data contains invalid dye colour IDs
2021-04-28 13:39:03 +01:00
Dylan K. Taylor
a44203a3d4
Separate BannerPatternLayer from BannerPatternType
2021-04-28 12:47:42 +01:00
Dylan K. Taylor
2bc0f9f7a2
TimingsCommand: do not enable timings if they are already enabled
...
this causes timings to be reset, which is potentially undesirable (loss of already-collected timing data).
closes #4194
2021-04-27 22:39:13 +01:00
Dylan K. Taylor
8a3df1212a
Added a trait for blocks which face opposite their placing player
2021-04-27 21:28:26 +01:00
Dylan K. Taylor
72045b3d7e
CoralBlock: added setCoralType()
2021-04-27 21:03:23 +01:00
Dylan K. Taylor
2eb05a2420
Updated block factory consistency check
2021-04-27 21:00:22 +01:00
Dylan K. Taylor
f204d6b3dd
Make a trait for blocks which share the same horizontal facing metadata logic
2021-04-27 20:59:20 +01:00
Dylan K. Taylor
11263909ab
Added stripped logs (incomplete)
...
this isn't practical to fully implement right now due to limitations
imposed by the legacy shitfest system we're using. To make stripped
dynamic, we would need to switch the IDs _and_ variant info dynamically,
and I have no idea what bizarre side effects that might have.
2021-04-27 20:35:58 +01:00
Dylan K. Taylor
ed80490234
Added more APIs to Skull
...
setRotation() is conditionally useless, but there's not much we can do about this right now; and exposing it like this is better than having plugins interacting with tiles.
2021-04-27 19:31:08 +01:00
Dylan K. Taylor
c9cf33b21b
Skull: added block property APIs
...
I need these for my R13 block deserializer.
2021-04-27 19:22:45 +01:00
Dylan K. Taylor
0aa0d77307
Skull: recognize noDrops flag
2021-04-27 19:21:29 +01:00
Dylan K. Taylor
017ca55a58
Vine: use facing as both keys and values
2021-04-27 15:19:55 +01:00
Dylan K. Taylor
845819123d
Player: drop perm nulling
...
this is no longer necessary because the PermissibleBase doesn't keep a ref to the Player anymore.
2021-04-27 14:49:26 +01:00
Dylan K. Taylor
8364bc51ac
...
2021-04-27 14:47:11 +01:00
Dylan K. Taylor
7ce77713dd
InventoryManager: add a mechanism to allow plugins to inject their own container open packet creators
...
closes #4008
2021-04-27 14:40:43 +01:00
Dylan K. Taylor
f37c414298
Merge remote-tracking branch 'origin/stable'
2021-04-27 14:25:54 +01:00
Dylan K. Taylor
89260d788c
3.19.2 is next
2021-04-25 20:34:13 +01:00
Dylan K. Taylor
a7cd081002
Release 3.19.1
3.19.1
2021-04-25 20:34:13 +01:00
Dylan K. Taylor
361be8fe36
Normal: drop MOUNTAINS and SMALL_MOUNTAINS from biome selection
...
this would cause disruption to generation on a patch release, which is unacceptable.
This would be better for 3.20 or 4.0.
2021-04-25 20:27:19 +01:00
Dylan T
127b57048c
Allow plugins to use PSR-4 namespace mapping ( #4188 )
...
* Allow plugins to use PSR-4 namespace mapping
this is a reduced implementation which serves the 99% use case without being horribly breakable.
Plugins may now specify a `src-namespace-prefix`, which should be set to the namespace of the classes in `src`.
If the old system is used, `src-namespace-prefix` can be omitted, or set to an empty string.
Examples:
- If `src-namespace-prefix` is `dktapps\test`, `dktapps\test\Main` will be searched for in `src/Main.php`, instead of `src/dktapps/test/Main.php`.
* Migrate TesterPlugin to PSR-4
2021-04-23 19:34:46 +01:00
dependabot-preview[bot]
b01e4ab417
Bump phpstan/phpstan from 0.12.83 to 0.12.84 ( #4189 )
2021-04-21 18:49:08 +00:00
Dylan K. Taylor
fc01735b6f
Fixed infinite loop when placing two coral plants next to each other
...
the dead flag is not persisted in their metadata, so they forget their state when next read from the world.
2021-04-19 23:01:57 +01:00
Dylan K. Taylor
4e0bc6c98e
Scrub PHPStan baselines
2021-04-19 16:18:22 +01:00
Dylan K. Taylor
73f913e279
Modernize TesterPlugin
2021-04-19 14:16:05 +01:00
Dylan K. Taylor
dc51af8b66
changelog: mention CancelTaskException addition
...
[ci skip]
2021-04-19 14:00:54 +01:00
Dylan K. Taylor
94928c030a
Removed CancellableClosureTask
2021-04-19 14:00:23 +01:00
Covered123
9c1b4fd1cd
Added CancelTaskException ( #4186 )
2021-04-19 13:41:51 +01:00
Dylan K. Taylor
5872b2fe23
Merge remote-tracking branch 'origin/stable'
2021-04-19 13:32:15 +01:00
Dylan K. Taylor
177b963d8e
TaskScheduler: do not push cancelled repeating tasks back onto the queue
2021-04-19 13:23:31 +01:00
Dylan K. Taylor
66fdf526d4
Remove GarbageServerboundPacket
...
it's not the protocol implementation's job to decide what's garbage. It should only indicate that a packet MAY be sent by the client. It should then be up to the handler to decide what to do with it.
2021-04-19 01:07:21 +01:00
Dylan K. Taylor
6845cbb2b3
Silence LevelSoundEventPacket noise
2021-04-19 01:02:22 +01:00
Dylan K. Taylor
4f4069d403
World: remove another noisy debug message
2021-04-19 00:55:42 +01:00
Dylan K. Taylor
09a2402f01
Fixed precondition on double chunk send being useless
...
this is messy, but necessary for now.
2021-04-19 00:50:43 +01:00
Dylan K. Taylor
d19c21e2e1
Updated PHPStan baseline
2021-04-19 00:38:27 +01:00