From 7449ad5637621661dba33d88b87b8d6f21dcfb1f Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Fri, 29 Aug 2025 23:12:58 +0100 Subject: [PATCH] tidy --- src/block/CocoaBlock.php | 1 - src/block/Ladder.php | 1 - src/block/OminousWallBanner.php | 1 - src/block/Pumpkin.php | 1 - src/block/RedstoneComparator.php | 2 -- src/block/RedstoneRepeater.php | 3 --- src/block/TripwireHook.php | 1 - src/block/Vine.php | 2 -- src/block/WallBanner.php | 1 - src/block/WallCoralFan.php | 1 - src/block/WallSign.php | 1 - src/block/utils/HorizontalFacingTrait.php | 2 -- 12 files changed, 17 deletions(-) diff --git a/src/block/CocoaBlock.php b/src/block/CocoaBlock.php index f149dd153..8cc60872c 100644 --- a/src/block/CocoaBlock.php +++ b/src/block/CocoaBlock.php @@ -34,7 +34,6 @@ use pocketmine\data\runtime\RuntimeDataDescriber; use pocketmine\item\Fertilizer; use pocketmine\item\Item; use pocketmine\item\VanillaItems; -use pocketmine\math\Axis; use pocketmine\math\AxisAlignedBB; use pocketmine\math\Facing; use pocketmine\math\Vector3; diff --git a/src/block/Ladder.php b/src/block/Ladder.php index 40d234051..03c9ea57f 100644 --- a/src/block/Ladder.php +++ b/src/block/Ladder.php @@ -30,7 +30,6 @@ use pocketmine\block\utils\SupportType; use pocketmine\entity\Entity; use pocketmine\entity\Living; use pocketmine\item\Item; -use pocketmine\math\Axis; use pocketmine\math\AxisAlignedBB; use pocketmine\math\Facing; use pocketmine\math\Vector3; diff --git a/src/block/OminousWallBanner.php b/src/block/OminousWallBanner.php index 3f59d82fb..78b9e9024 100644 --- a/src/block/OminousWallBanner.php +++ b/src/block/OminousWallBanner.php @@ -27,7 +27,6 @@ use pocketmine\block\utils\HorizontalFacing; use pocketmine\block\utils\HorizontalFacingOption; use pocketmine\block\utils\HorizontalFacingTrait; use pocketmine\item\Item; -use pocketmine\math\Axis; use pocketmine\math\Facing; use pocketmine\math\Vector3; use pocketmine\player\Player; diff --git a/src/block/Pumpkin.php b/src/block/Pumpkin.php index 8a21b66de..668b10b98 100644 --- a/src/block/Pumpkin.php +++ b/src/block/Pumpkin.php @@ -30,7 +30,6 @@ use pocketmine\item\VanillaItems; use pocketmine\math\Facing; use pocketmine\math\Vector3; use pocketmine\player\Player; -use function in_array; class Pumpkin extends Opaque{ diff --git a/src/block/RedstoneComparator.php b/src/block/RedstoneComparator.php index 18300982c..ad00fc8b3 100644 --- a/src/block/RedstoneComparator.php +++ b/src/block/RedstoneComparator.php @@ -28,7 +28,6 @@ use pocketmine\block\utils\AnalogRedstoneSignalEmitter; use pocketmine\block\utils\AnalogRedstoneSignalEmitterTrait; use pocketmine\block\utils\FacesOppositePlacingPlayerTrait; use pocketmine\block\utils\HorizontalFacing; -use pocketmine\block\utils\HorizontalFacingTrait; use pocketmine\block\utils\PoweredByRedstone; use pocketmine\block\utils\PoweredByRedstoneTrait; use pocketmine\block\utils\StaticSupportTrait; @@ -39,7 +38,6 @@ use pocketmine\math\AxisAlignedBB; use pocketmine\math\Facing; use pocketmine\math\Vector3; use pocketmine\player\Player; -use pocketmine\world\BlockTransaction; use function assert; class RedstoneComparator extends Flowable implements AnalogRedstoneSignalEmitter, PoweredByRedstone, HorizontalFacing{ diff --git a/src/block/RedstoneRepeater.php b/src/block/RedstoneRepeater.php index 3e65d3090..1b9ee249b 100644 --- a/src/block/RedstoneRepeater.php +++ b/src/block/RedstoneRepeater.php @@ -25,8 +25,6 @@ namespace pocketmine\block; use pocketmine\block\utils\FacesOppositePlacingPlayerTrait; use pocketmine\block\utils\HorizontalFacing; -use pocketmine\block\utils\HorizontalFacingOption; -use pocketmine\block\utils\HorizontalFacingTrait; use pocketmine\block\utils\PoweredByRedstone; use pocketmine\block\utils\PoweredByRedstoneTrait; use pocketmine\block\utils\StaticSupportTrait; @@ -37,7 +35,6 @@ use pocketmine\math\AxisAlignedBB; use pocketmine\math\Facing; use pocketmine\math\Vector3; use pocketmine\player\Player; -use pocketmine\world\BlockTransaction; class RedstoneRepeater extends Flowable implements PoweredByRedstone, HorizontalFacing{ use FacesOppositePlacingPlayerTrait; diff --git a/src/block/TripwireHook.php b/src/block/TripwireHook.php index 89ceea60c..3f82985b0 100644 --- a/src/block/TripwireHook.php +++ b/src/block/TripwireHook.php @@ -28,7 +28,6 @@ use pocketmine\block\utils\HorizontalFacingOption; use pocketmine\block\utils\HorizontalFacingTrait; use pocketmine\data\runtime\RuntimeDataDescriber; use pocketmine\item\Item; -use pocketmine\math\Axis; use pocketmine\math\Facing; use pocketmine\math\Vector3; use pocketmine\player\Player; diff --git a/src/block/Vine.php b/src/block/Vine.php index 8a83ba28f..8dfb0520e 100644 --- a/src/block/Vine.php +++ b/src/block/Vine.php @@ -23,12 +23,10 @@ declare(strict_types=1); namespace pocketmine\block; -use pocketmine\block\utils\HorizontalFacing; use pocketmine\block\utils\HorizontalFacingOption; use pocketmine\data\runtime\RuntimeDataDescriber; use pocketmine\entity\Entity; use pocketmine\item\Item; -use pocketmine\math\Axis; use pocketmine\math\Facing; use pocketmine\math\Vector3; use pocketmine\player\Player; diff --git a/src/block/WallBanner.php b/src/block/WallBanner.php index b367ab3d9..5b3c3dc1c 100644 --- a/src/block/WallBanner.php +++ b/src/block/WallBanner.php @@ -27,7 +27,6 @@ use pocketmine\block\utils\HorizontalFacing; use pocketmine\block\utils\HorizontalFacingOption; use pocketmine\block\utils\HorizontalFacingTrait; use pocketmine\item\Item; -use pocketmine\math\Axis; use pocketmine\math\Facing; use pocketmine\math\Vector3; use pocketmine\player\Player; diff --git a/src/block/WallCoralFan.php b/src/block/WallCoralFan.php index 89d76cf17..b6bfac73f 100644 --- a/src/block/WallCoralFan.php +++ b/src/block/WallCoralFan.php @@ -29,7 +29,6 @@ use pocketmine\block\utils\HorizontalFacingTrait; use pocketmine\data\runtime\RuntimeDataDescriber; use pocketmine\item\Item; use pocketmine\item\VanillaItems; -use pocketmine\math\Axis; use pocketmine\math\Facing; use pocketmine\math\Vector3; use pocketmine\player\Player; diff --git a/src/block/WallSign.php b/src/block/WallSign.php index 007c504a5..2df05f97f 100644 --- a/src/block/WallSign.php +++ b/src/block/WallSign.php @@ -27,7 +27,6 @@ use pocketmine\block\utils\HorizontalFacing; use pocketmine\block\utils\HorizontalFacingOption; use pocketmine\block\utils\HorizontalFacingTrait; use pocketmine\item\Item; -use pocketmine\math\Axis; use pocketmine\math\Facing; use pocketmine\math\Vector3; use pocketmine\player\Player; diff --git a/src/block/utils/HorizontalFacingTrait.php b/src/block/utils/HorizontalFacingTrait.php index d10eb0d3b..fb950b4f2 100644 --- a/src/block/utils/HorizontalFacingTrait.php +++ b/src/block/utils/HorizontalFacingTrait.php @@ -24,8 +24,6 @@ declare(strict_types=1); namespace pocketmine\block\utils; use pocketmine\data\runtime\RuntimeDataDescriber; -use pocketmine\math\Axis; -use pocketmine\math\Facing; trait HorizontalFacingTrait{ protected HorizontalFacingOption $facing = HorizontalFacingOption::NORTH;