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

Open
wants to merge 2 commits into
base: minor-next
Choose a base branch
from

Conversation

ipad54
Copy link
Contributor

@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
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.

2 participants