Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split glow lichen multi face logic into traits #6396

Merged
merged 7 commits into from
Nov 15, 2024

Conversation

ipad54
Copy link
Member

@ipad54 ipad54 commented Jul 10, 2024

Introduction

This PR splits glow lichen multi face logiс into 2 traits like it's done with other blocks (such as HorizontalFacingTrait, StaticSupportTrait, etc).

These changes are necessary to remove code duplication and make easier implementing other blocks that have multi face logic (such as sculk vein, but Mojang can add more blocks in the future updates).

Changes

API changes

Added MultiFacingTrait, MultiSupportTrait

Tests

PHPStan tests are OK.
In-game multi face logic also works fine.

@jasonw4331 jasonw4331 added Category: API Related to the plugin API Category: Core Related to internal functionality Type: Enhancement Contributes features or other improvements to PocketMine-MP labels Jul 18, 2024
dktapps
dktapps previously approved these changes Nov 12, 2024
@dktapps dktapps requested a review from a team as a code owner November 12, 2024 23:15
github-actions[bot]
github-actions bot previously approved these changes Nov 12, 2024
@dktapps
Copy link
Member

dktapps commented Nov 14, 2024

Can we change these to MultiAnyFacingTrait and similar? I can bet there'll be a day when we need to have MultiHorizontalFacingTrait with the functionality from classic vines.

@dktapps dktapps merged commit 0b0c425 into pmmp:minor-next Nov 15, 2024
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category: API Related to the plugin API Category: Core Related to internal functionality Type: Enhancement Contributes features or other improvements to PocketMine-MP
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants