diff --git a/src/block/BaseBanner.php b/src/block/BaseBanner.php index dd5ac3f93..e09f72dbb 100644 --- a/src/block/BaseBanner.php +++ b/src/block/BaseBanner.php @@ -26,7 +26,6 @@ namespace pocketmine\block; use Ds\Deque; use pocketmine\block\tile\Banner as TileBanner; use pocketmine\block\utils\BannerPattern; -use pocketmine\block\utils\BlockDataSerializer; use pocketmine\block\utils\DyeColor; use pocketmine\data\bedrock\DyeColorIdMap; use pocketmine\item\Banner as ItemBanner; @@ -34,12 +33,10 @@ use pocketmine\item\Item; use pocketmine\item\ItemFactory; use pocketmine\item\ItemIds; use pocketmine\math\AxisAlignedBB; -use pocketmine\math\Facing; use pocketmine\math\Vector3; use pocketmine\player\Player; use pocketmine\world\BlockTransaction; use function assert; -use function floor; abstract class BaseBanner extends Transparent{ /** @var DyeColor */ diff --git a/src/entity/Entity.php b/src/entity/Entity.php index 22e94962a..d49e9c0d5 100644 --- a/src/entity/Entity.php +++ b/src/entity/Entity.php @@ -63,8 +63,8 @@ use function cos; use function count; use function deg2rad; use function floor; +use function fmod; use function get_class; -use function is_array; use function is_infinite; use function is_nan; use function lcg_value; diff --git a/src/item/Banner.php b/src/item/Banner.php index a86adec2d..1ceeeb369 100644 --- a/src/item/Banner.php +++ b/src/item/Banner.php @@ -28,7 +28,6 @@ use pocketmine\block\Block; use pocketmine\block\tile\Banner as TileBanner; use pocketmine\block\utils\BannerPattern; use pocketmine\block\utils\DyeColor; -use pocketmine\block\VanillaBlocks; use pocketmine\data\bedrock\DyeColorIdMap; use pocketmine\nbt\tag\CompoundTag; use pocketmine\nbt\tag\ListTag; diff --git a/src/item/VanillaItems.php b/src/item/VanillaItems.php index 1ff4f944c..581b27d19 100644 --- a/src/item/VanillaItems.php +++ b/src/item/VanillaItems.php @@ -24,7 +24,6 @@ declare(strict_types=1); namespace pocketmine\item; use pocketmine\utils\CloningRegistryTrait; -use pocketmine\utils\RegistryTrait; use function assert; /** diff --git a/src/network/mcpe/handler/InGamePacketHandler.php b/src/network/mcpe/handler/InGamePacketHandler.php index 5c25d5422..1c253d90e 100644 --- a/src/network/mcpe/handler/InGamePacketHandler.php +++ b/src/network/mcpe/handler/InGamePacketHandler.php @@ -64,7 +64,6 @@ use pocketmine\network\mcpe\protocol\InteractPacket; use pocketmine\network\mcpe\protocol\InventoryTransactionPacket; use pocketmine\network\mcpe\protocol\ItemFrameDropItemPacket; use pocketmine\network\mcpe\protocol\LabTablePacket; -use pocketmine\network\mcpe\protocol\LevelSoundEventPacket; use pocketmine\network\mcpe\protocol\LevelSoundEventPacketV1; use pocketmine\network\mcpe\protocol\MapInfoRequestPacket; use pocketmine\network\mcpe\protocol\MobArmorEquipmentPacket; diff --git a/src/world/format/Chunk.php b/src/world/format/Chunk.php index 59602ce5a..f2a89b7ef 100644 --- a/src/world/format/Chunk.php +++ b/src/world/format/Chunk.php @@ -40,6 +40,7 @@ use function array_fill; use function array_filter; use function array_map; use function count; +use function max; use function str_repeat; class Chunk{ diff --git a/src/world/generator/noise/Noise.php b/src/world/generator/noise/Noise.php index f4d722f2d..fde81d10b 100644 --- a/src/world/generator/noise/Noise.php +++ b/src/world/generator/noise/Noise.php @@ -294,7 +294,6 @@ abstract class Noise{ } } - /** * The following code originally called trilinearLerp() in a loop, but it was later inlined to elide function * call overhead.