mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-04 00:55:14 +00:00
Rename MultiFacing -> MultiAnyFacing
to match the trait name
This commit is contained in:
@ -25,7 +25,7 @@ namespace pocketmine\block;
|
|||||||
|
|
||||||
use pocketmine\block\utils\BlockEventHelper;
|
use pocketmine\block\utils\BlockEventHelper;
|
||||||
use pocketmine\block\utils\MultiAnySupportTrait;
|
use pocketmine\block\utils\MultiAnySupportTrait;
|
||||||
use pocketmine\block\utils\MultiFacing;
|
use pocketmine\block\utils\MultiAnyFacing;
|
||||||
use pocketmine\block\utils\SupportType;
|
use pocketmine\block\utils\SupportType;
|
||||||
use pocketmine\item\Fertilizer;
|
use pocketmine\item\Fertilizer;
|
||||||
use pocketmine\item\Item;
|
use pocketmine\item\Item;
|
||||||
@ -36,7 +36,7 @@ use pocketmine\world\World;
|
|||||||
use function count;
|
use function count;
|
||||||
use function shuffle;
|
use function shuffle;
|
||||||
|
|
||||||
class GlowLichen extends Transparent implements MultiFacing{
|
class GlowLichen extends Transparent implements MultiAnyFacing{
|
||||||
use MultiAnySupportTrait;
|
use MultiAnySupportTrait;
|
||||||
|
|
||||||
public function getLightLevel() : int{
|
public function getLightLevel() : int{
|
||||||
|
@ -24,10 +24,10 @@ declare(strict_types=1);
|
|||||||
namespace pocketmine\block;
|
namespace pocketmine\block;
|
||||||
|
|
||||||
use pocketmine\block\utils\MultiAnySupportTrait;
|
use pocketmine\block\utils\MultiAnySupportTrait;
|
||||||
use pocketmine\block\utils\MultiFacing;
|
use pocketmine\block\utils\MultiAnyFacing;
|
||||||
use pocketmine\block\utils\SupportType;
|
use pocketmine\block\utils\SupportType;
|
||||||
|
|
||||||
final class ResinClump extends Transparent implements MultiFacing{
|
final class ResinClump extends Transparent implements MultiAnyFacing{
|
||||||
use MultiAnySupportTrait;
|
use MultiAnySupportTrait;
|
||||||
|
|
||||||
public function isSolid() : bool{
|
public function isSolid() : bool{
|
||||||
|
@ -25,7 +25,7 @@ namespace pocketmine\block\utils;
|
|||||||
|
|
||||||
use pocketmine\math\Facing;
|
use pocketmine\math\Facing;
|
||||||
|
|
||||||
interface MultiFacing{
|
interface MultiAnyFacing{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return int[]
|
* @return int[]
|
@ -46,7 +46,7 @@ use pocketmine\block\utils\CoralType;
|
|||||||
use pocketmine\block\utils\DyeColor;
|
use pocketmine\block\utils\DyeColor;
|
||||||
use pocketmine\block\utils\HorizontalFacing;
|
use pocketmine\block\utils\HorizontalFacing;
|
||||||
use pocketmine\block\utils\Lightable;
|
use pocketmine\block\utils\Lightable;
|
||||||
use pocketmine\block\utils\MultiFacing;
|
use pocketmine\block\utils\MultiAnyFacing;
|
||||||
use pocketmine\block\utils\PillarRotation;
|
use pocketmine\block\utils\PillarRotation;
|
||||||
use pocketmine\block\utils\SignLikeRotation;
|
use pocketmine\block\utils\SignLikeRotation;
|
||||||
use pocketmine\block\utils\SlabType;
|
use pocketmine\block\utils\SlabType;
|
||||||
@ -80,7 +80,7 @@ final class CommonProperties{
|
|||||||
/** @phpstan-var ValueFromIntProperty<AnyFacing, int> */
|
/** @phpstan-var ValueFromIntProperty<AnyFacing, int> */
|
||||||
public readonly ValueFromIntProperty $anyFacingClassic;
|
public readonly ValueFromIntProperty $anyFacingClassic;
|
||||||
|
|
||||||
/** @phpstan-var OptionSetFromIntProperty<MultiFacing, int> */
|
/** @phpstan-var OptionSetFromIntProperty<MultiAnyFacing, int> */
|
||||||
public readonly OptionSetFromIntProperty $multiFacingFlags;
|
public readonly OptionSetFromIntProperty $multiFacingFlags;
|
||||||
|
|
||||||
/** @phpstan-var IntProperty<SignLikeRotation> */
|
/** @phpstan-var IntProperty<SignLikeRotation> */
|
||||||
@ -252,8 +252,8 @@ final class CommonProperties{
|
|||||||
Facing::WEST => BlockLegacyMetadata::MULTI_FACE_DIRECTION_FLAG_WEST,
|
Facing::WEST => BlockLegacyMetadata::MULTI_FACE_DIRECTION_FLAG_WEST,
|
||||||
Facing::EAST => BlockLegacyMetadata::MULTI_FACE_DIRECTION_FLAG_EAST
|
Facing::EAST => BlockLegacyMetadata::MULTI_FACE_DIRECTION_FLAG_EAST
|
||||||
]),
|
]),
|
||||||
fn(MultiFacing $b) => $b->getFaces(),
|
fn(MultiAnyFacing $b) => $b->getFaces(),
|
||||||
fn(MultiFacing $b, array $v) => $b->setFaces($v)
|
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));
|
$this->floorSignLikeRotation = new IntProperty(StateNames::GROUND_SIGN_DIRECTION, 0, 15, fn(SignLikeRotation $b) => $b->getRotation(), fn(SignLikeRotation $b, int $v) => $b->setRotation($v));
|
||||||
|
Reference in New Issue
Block a user