From 0be15a7403fb88f0fdc7887abd949057a87ddc1a Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Fri, 29 Aug 2025 12:33:04 +0100 Subject: [PATCH] Rename MultiFacing -> MultiAnyFacing to match the trait name --- src/block/GlowLichen.php | 4 ++-- src/block/ResinClump.php | 4 ++-- src/block/utils/{MultiFacing.php => MultiAnyFacing.php} | 2 +- .../bedrock/block/convert/property/CommonProperties.php | 8 ++++---- 4 files changed, 9 insertions(+), 9 deletions(-) rename src/block/utils/{MultiFacing.php => MultiAnyFacing.php} (97%) diff --git a/src/block/GlowLichen.php b/src/block/GlowLichen.php index 6ad8d3748..c9dfad7f4 100644 --- a/src/block/GlowLichen.php +++ b/src/block/GlowLichen.php @@ -25,7 +25,7 @@ namespace pocketmine\block; use pocketmine\block\utils\BlockEventHelper; use pocketmine\block\utils\MultiAnySupportTrait; -use pocketmine\block\utils\MultiFacing; +use pocketmine\block\utils\MultiAnyFacing; use pocketmine\block\utils\SupportType; use pocketmine\item\Fertilizer; use pocketmine\item\Item; @@ -36,7 +36,7 @@ use pocketmine\world\World; use function count; use function shuffle; -class GlowLichen extends Transparent implements MultiFacing{ +class GlowLichen extends Transparent implements MultiAnyFacing{ use MultiAnySupportTrait; public function getLightLevel() : int{ diff --git a/src/block/ResinClump.php b/src/block/ResinClump.php index 2855a7cc3..56b42fa4a 100644 --- a/src/block/ResinClump.php +++ b/src/block/ResinClump.php @@ -24,10 +24,10 @@ declare(strict_types=1); namespace pocketmine\block; use pocketmine\block\utils\MultiAnySupportTrait; -use pocketmine\block\utils\MultiFacing; +use pocketmine\block\utils\MultiAnyFacing; use pocketmine\block\utils\SupportType; -final class ResinClump extends Transparent implements MultiFacing{ +final class ResinClump extends Transparent implements MultiAnyFacing{ use MultiAnySupportTrait; public function isSolid() : bool{ diff --git a/src/block/utils/MultiFacing.php b/src/block/utils/MultiAnyFacing.php similarity index 97% rename from src/block/utils/MultiFacing.php rename to src/block/utils/MultiAnyFacing.php index 9bdb3640d..dafe041e4 100644 --- a/src/block/utils/MultiFacing.php +++ b/src/block/utils/MultiAnyFacing.php @@ -25,7 +25,7 @@ namespace pocketmine\block\utils; use pocketmine\math\Facing; -interface MultiFacing{ +interface MultiAnyFacing{ /** * @return int[] diff --git a/src/data/bedrock/block/convert/property/CommonProperties.php b/src/data/bedrock/block/convert/property/CommonProperties.php index 1a3224270..35d7e21b6 100644 --- a/src/data/bedrock/block/convert/property/CommonProperties.php +++ b/src/data/bedrock/block/convert/property/CommonProperties.php @@ -46,7 +46,7 @@ use pocketmine\block\utils\CoralType; use pocketmine\block\utils\DyeColor; use pocketmine\block\utils\HorizontalFacing; use pocketmine\block\utils\Lightable; -use pocketmine\block\utils\MultiFacing; +use pocketmine\block\utils\MultiAnyFacing; use pocketmine\block\utils\PillarRotation; use pocketmine\block\utils\SignLikeRotation; use pocketmine\block\utils\SlabType; @@ -80,7 +80,7 @@ final class CommonProperties{ /** @phpstan-var ValueFromIntProperty */ public readonly ValueFromIntProperty $anyFacingClassic; - /** @phpstan-var OptionSetFromIntProperty */ + /** @phpstan-var OptionSetFromIntProperty */ public readonly OptionSetFromIntProperty $multiFacingFlags; /** @phpstan-var IntProperty */ @@ -252,8 +252,8 @@ final class CommonProperties{ Facing::WEST => BlockLegacyMetadata::MULTI_FACE_DIRECTION_FLAG_WEST, Facing::EAST => BlockLegacyMetadata::MULTI_FACE_DIRECTION_FLAG_EAST ]), - fn(MultiFacing $b) => $b->getFaces(), - fn(MultiFacing $b, array $v) => $b->setFaces($v) + fn(MultiAnyFacing $b) => $b->getFaces(), + fn(MultiAnyFacing $b, array $v) => $b->setFaces($v) ); $this->floorSignLikeRotation = new IntProperty(StateNames::GROUND_SIGN_DIRECTION, 0, 15, fn(SignLikeRotation $b) => $b->getRotation(), fn(SignLikeRotation $b, int $v) => $b->setRotation($v));