diff --git a/src/block/Anvil.php b/src/block/Anvil.php index a2aef21611..06a782ae81 100644 --- a/src/block/Anvil.php +++ b/src/block/Anvil.php @@ -24,12 +24,12 @@ declare(strict_types=1); namespace pocketmine\block; use pocketmine\block\inventory\AnvilInventory; -use pocketmine\block\utils\BlockDataReader; -use pocketmine\block\utils\BlockDataWriter; use pocketmine\block\utils\Fallable; use pocketmine\block\utils\FallableTrait; use pocketmine\block\utils\HorizontalFacingTrait; use pocketmine\block\utils\SupportType; +use pocketmine\data\runtime\block\BlockDataReader; +use pocketmine\data\runtime\block\BlockDataWriter; use pocketmine\item\Item; use pocketmine\math\AxisAlignedBB; use pocketmine\math\Facing; diff --git a/src/block/Bamboo.php b/src/block/Bamboo.php index 61284cfdd4..6011b88a16 100644 --- a/src/block/Bamboo.php +++ b/src/block/Bamboo.php @@ -23,9 +23,9 @@ declare(strict_types=1); namespace pocketmine\block; -use pocketmine\block\utils\BlockDataReader; -use pocketmine\block\utils\BlockDataWriter; use pocketmine\block\utils\SupportType; +use pocketmine\data\runtime\block\BlockDataReader; +use pocketmine\data\runtime\block\BlockDataWriter; use pocketmine\event\block\StructureGrowEvent; use pocketmine\item\Bamboo as ItemBamboo; use pocketmine\item\Fertilizer; diff --git a/src/block/BambooSapling.php b/src/block/BambooSapling.php index 6171657c4d..05addc0579 100644 --- a/src/block/BambooSapling.php +++ b/src/block/BambooSapling.php @@ -23,8 +23,8 @@ declare(strict_types=1); namespace pocketmine\block; -use pocketmine\block\utils\BlockDataReader; -use pocketmine\block\utils\BlockDataWriter; +use pocketmine\data\runtime\block\BlockDataReader; +use pocketmine\data\runtime\block\BlockDataWriter; use pocketmine\event\block\StructureGrowEvent; use pocketmine\item\Bamboo as ItemBamboo; use pocketmine\item\Fertilizer; diff --git a/src/block/Barrel.php b/src/block/Barrel.php index 748bfd3357..e26b4aa8e6 100644 --- a/src/block/Barrel.php +++ b/src/block/Barrel.php @@ -25,8 +25,8 @@ namespace pocketmine\block; use pocketmine\block\tile\Barrel as TileBarrel; use pocketmine\block\utils\AnyFacingTrait; -use pocketmine\block\utils\BlockDataReader; -use pocketmine\block\utils\BlockDataWriter; +use pocketmine\data\runtime\block\BlockDataReader; +use pocketmine\data\runtime\block\BlockDataWriter; use pocketmine\item\Item; use pocketmine\math\Facing; use pocketmine\math\Vector3; diff --git a/src/block/Bed.php b/src/block/Bed.php index 46d21a23a7..e58163c05a 100644 --- a/src/block/Bed.php +++ b/src/block/Bed.php @@ -24,12 +24,12 @@ declare(strict_types=1); namespace pocketmine\block; use pocketmine\block\tile\Bed as TileBed; -use pocketmine\block\utils\BlockDataReader; -use pocketmine\block\utils\BlockDataWriter; use pocketmine\block\utils\ColoredTrait; use pocketmine\block\utils\DyeColor; use pocketmine\block\utils\HorizontalFacingTrait; use pocketmine\block\utils\SupportType; +use pocketmine\data\runtime\block\BlockDataReader; +use pocketmine\data\runtime\block\BlockDataWriter; use pocketmine\entity\Entity; use pocketmine\entity\Living; use pocketmine\item\Item; diff --git a/src/block/Bedrock.php b/src/block/Bedrock.php index 3528e8d421..8a187b7412 100644 --- a/src/block/Bedrock.php +++ b/src/block/Bedrock.php @@ -23,8 +23,8 @@ declare(strict_types=1); namespace pocketmine\block; -use pocketmine\block\utils\BlockDataReader; -use pocketmine\block\utils\BlockDataWriter; +use pocketmine\data\runtime\block\BlockDataReader; +use pocketmine\data\runtime\block\BlockDataWriter; class Bedrock extends Opaque{ private bool $burnsForever = false; diff --git a/src/block/Bell.php b/src/block/Bell.php index 3388bb5169..175be9d47b 100644 --- a/src/block/Bell.php +++ b/src/block/Bell.php @@ -25,12 +25,12 @@ namespace pocketmine\block; use pocketmine\block\tile\Bell as TileBell; use pocketmine\block\utils\BellAttachmentType; -use pocketmine\block\utils\BlockDataReader; -use pocketmine\block\utils\BlockDataReaderHelper; -use pocketmine\block\utils\BlockDataWriter; -use pocketmine\block\utils\BlockDataWriterHelper; use pocketmine\block\utils\HorizontalFacingTrait; use pocketmine\block\utils\SupportType; +use pocketmine\data\runtime\block\BlockDataReader; +use pocketmine\data\runtime\block\BlockDataReaderHelper; +use pocketmine\data\runtime\block\BlockDataWriter; +use pocketmine\data\runtime\block\BlockDataWriterHelper; use pocketmine\item\Item; use pocketmine\math\AxisAlignedBB; use pocketmine\math\Facing; diff --git a/src/block/Block.php b/src/block/Block.php index 6d9b2bd72b..2c1ae51997 100644 --- a/src/block/Block.php +++ b/src/block/Block.php @@ -28,9 +28,9 @@ namespace pocketmine\block; use pocketmine\block\tile\Spawnable; use pocketmine\block\tile\Tile; -use pocketmine\block\utils\BlockDataReader; -use pocketmine\block\utils\BlockDataWriter; use pocketmine\block\utils\SupportType; +use pocketmine\data\runtime\block\BlockDataReader; +use pocketmine\data\runtime\block\BlockDataWriter; use pocketmine\entity\Entity; use pocketmine\item\enchantment\VanillaEnchantments; use pocketmine\item\Item; diff --git a/src/block/BrewingStand.php b/src/block/BrewingStand.php index 5c732689ea..cee9d0cc3a 100644 --- a/src/block/BrewingStand.php +++ b/src/block/BrewingStand.php @@ -24,12 +24,12 @@ declare(strict_types=1); namespace pocketmine\block; use pocketmine\block\tile\BrewingStand as TileBrewingStand; -use pocketmine\block\utils\BlockDataReader; -use pocketmine\block\utils\BlockDataReaderHelper; -use pocketmine\block\utils\BlockDataWriter; -use pocketmine\block\utils\BlockDataWriterHelper; use pocketmine\block\utils\BrewingStandSlot; use pocketmine\block\utils\SupportType; +use pocketmine\data\runtime\block\BlockDataReader; +use pocketmine\data\runtime\block\BlockDataReaderHelper; +use pocketmine\data\runtime\block\BlockDataWriter; +use pocketmine\data\runtime\block\BlockDataWriterHelper; use pocketmine\item\Item; use pocketmine\math\Axis; use pocketmine\math\AxisAlignedBB; diff --git a/src/block/Button.php b/src/block/Button.php index 82db565efd..7e813af267 100644 --- a/src/block/Button.php +++ b/src/block/Button.php @@ -24,8 +24,8 @@ declare(strict_types=1); namespace pocketmine\block; use pocketmine\block\utils\AnyFacingTrait; -use pocketmine\block\utils\BlockDataReader; -use pocketmine\block\utils\BlockDataWriter; +use pocketmine\data\runtime\block\BlockDataReader; +use pocketmine\data\runtime\block\BlockDataWriter; use pocketmine\item\Item; use pocketmine\math\Facing; use pocketmine\math\Vector3; diff --git a/src/block/Cactus.php b/src/block/Cactus.php index 3b69e0f436..83b8dcca44 100644 --- a/src/block/Cactus.php +++ b/src/block/Cactus.php @@ -23,9 +23,9 @@ declare(strict_types=1); namespace pocketmine\block; -use pocketmine\block\utils\BlockDataReader; -use pocketmine\block\utils\BlockDataWriter; use pocketmine\block\utils\SupportType; +use pocketmine\data\runtime\block\BlockDataReader; +use pocketmine\data\runtime\block\BlockDataWriter; use pocketmine\entity\Entity; use pocketmine\event\block\BlockGrowEvent; use pocketmine\event\entity\EntityDamageByBlockEvent; diff --git a/src/block/Cake.php b/src/block/Cake.php index 40b100f0b3..1bd28aa57f 100644 --- a/src/block/Cake.php +++ b/src/block/Cake.php @@ -23,9 +23,9 @@ declare(strict_types=1); namespace pocketmine\block; -use pocketmine\block\utils\BlockDataReader; -use pocketmine\block\utils\BlockDataWriter; use pocketmine\block\utils\SupportType; +use pocketmine\data\runtime\block\BlockDataReader; +use pocketmine\data\runtime\block\BlockDataWriter; use pocketmine\entity\effect\EffectInstance; use pocketmine\entity\FoodSource; use pocketmine\entity\Living; diff --git a/src/block/CocoaBlock.php b/src/block/CocoaBlock.php index 572a098ee9..1e06517fc5 100644 --- a/src/block/CocoaBlock.php +++ b/src/block/CocoaBlock.php @@ -23,11 +23,11 @@ declare(strict_types=1); namespace pocketmine\block; -use pocketmine\block\utils\BlockDataReader; -use pocketmine\block\utils\BlockDataWriter; use pocketmine\block\utils\HorizontalFacingTrait; use pocketmine\block\utils\SupportType; use pocketmine\block\utils\TreeType; +use pocketmine\data\runtime\block\BlockDataReader; +use pocketmine\data\runtime\block\BlockDataWriter; use pocketmine\event\block\BlockGrowEvent; use pocketmine\item\Fertilizer; use pocketmine\item\Item; diff --git a/src/block/Crops.php b/src/block/Crops.php index a4976f0442..15fc757522 100644 --- a/src/block/Crops.php +++ b/src/block/Crops.php @@ -23,8 +23,8 @@ declare(strict_types=1); namespace pocketmine\block; -use pocketmine\block\utils\BlockDataReader; -use pocketmine\block\utils\BlockDataWriter; +use pocketmine\data\runtime\block\BlockDataReader; +use pocketmine\data\runtime\block\BlockDataWriter; use pocketmine\event\block\BlockGrowEvent; use pocketmine\item\Fertilizer; use pocketmine\item\Item; diff --git a/src/block/DaylightSensor.php b/src/block/DaylightSensor.php index da4c034a87..f2f2fd6c81 100644 --- a/src/block/DaylightSensor.php +++ b/src/block/DaylightSensor.php @@ -24,9 +24,9 @@ declare(strict_types=1); namespace pocketmine\block; use pocketmine\block\utils\AnalogRedstoneSignalEmitterTrait; -use pocketmine\block\utils\BlockDataReader; -use pocketmine\block\utils\BlockDataWriter; use pocketmine\block\utils\SupportType; +use pocketmine\data\runtime\block\BlockDataReader; +use pocketmine\data\runtime\block\BlockDataWriter; use pocketmine\item\Item; use pocketmine\math\AxisAlignedBB; use pocketmine\math\Facing; diff --git a/src/block/DetectorRail.php b/src/block/DetectorRail.php index ecf7ee50d3..61667e9b81 100644 --- a/src/block/DetectorRail.php +++ b/src/block/DetectorRail.php @@ -23,8 +23,8 @@ declare(strict_types=1); namespace pocketmine\block; -use pocketmine\block\utils\BlockDataReader; -use pocketmine\block\utils\BlockDataWriter; +use pocketmine\data\runtime\block\BlockDataReader; +use pocketmine\data\runtime\block\BlockDataWriter; class DetectorRail extends StraightOnlyRail{ protected bool $activated = false; diff --git a/src/block/Dirt.php b/src/block/Dirt.php index 735e665275..f77baafc2b 100644 --- a/src/block/Dirt.php +++ b/src/block/Dirt.php @@ -23,8 +23,8 @@ declare(strict_types=1); namespace pocketmine\block; -use pocketmine\block\utils\BlockDataReader; -use pocketmine\block\utils\BlockDataWriter; +use pocketmine\data\runtime\block\BlockDataReader; +use pocketmine\data\runtime\block\BlockDataWriter; use pocketmine\item\Hoe; use pocketmine\item\Item; use pocketmine\math\Facing; diff --git a/src/block/Door.php b/src/block/Door.php index 7843a9377c..c00b6d1711 100644 --- a/src/block/Door.php +++ b/src/block/Door.php @@ -23,10 +23,10 @@ declare(strict_types=1); namespace pocketmine\block; -use pocketmine\block\utils\BlockDataReader; -use pocketmine\block\utils\BlockDataWriter; use pocketmine\block\utils\HorizontalFacingTrait; use pocketmine\block\utils\SupportType; +use pocketmine\data\runtime\block\BlockDataReader; +use pocketmine\data\runtime\block\BlockDataWriter; use pocketmine\item\Item; use pocketmine\math\AxisAlignedBB; use pocketmine\math\Facing; diff --git a/src/block/DoublePlant.php b/src/block/DoublePlant.php index add4fce8ee..29f567d12a 100644 --- a/src/block/DoublePlant.php +++ b/src/block/DoublePlant.php @@ -23,8 +23,8 @@ declare(strict_types=1); namespace pocketmine\block; -use pocketmine\block\utils\BlockDataReader; -use pocketmine\block\utils\BlockDataWriter; +use pocketmine\data\runtime\block\BlockDataReader; +use pocketmine\data\runtime\block\BlockDataWriter; use pocketmine\item\Item; use pocketmine\math\Facing; use pocketmine\math\Vector3; diff --git a/src/block/EndPortalFrame.php b/src/block/EndPortalFrame.php index aace740a63..f69262c976 100644 --- a/src/block/EndPortalFrame.php +++ b/src/block/EndPortalFrame.php @@ -23,10 +23,10 @@ declare(strict_types=1); namespace pocketmine\block; -use pocketmine\block\utils\BlockDataReader; -use pocketmine\block\utils\BlockDataWriter; use pocketmine\block\utils\FacesOppositePlacingPlayerTrait; use pocketmine\block\utils\HorizontalFacingTrait; +use pocketmine\data\runtime\block\BlockDataReader; +use pocketmine\data\runtime\block\BlockDataWriter; use pocketmine\math\AxisAlignedBB; use pocketmine\math\Facing; diff --git a/src/block/Farmland.php b/src/block/Farmland.php index 97a24fa72b..fbd2212d08 100644 --- a/src/block/Farmland.php +++ b/src/block/Farmland.php @@ -23,8 +23,8 @@ declare(strict_types=1); namespace pocketmine\block; -use pocketmine\block\utils\BlockDataReader; -use pocketmine\block\utils\BlockDataWriter; +use pocketmine\data\runtime\block\BlockDataReader; +use pocketmine\data\runtime\block\BlockDataWriter; use pocketmine\entity\Entity; use pocketmine\entity\Living; use pocketmine\event\entity\EntityTrampleFarmlandEvent; diff --git a/src/block/FenceGate.php b/src/block/FenceGate.php index 1541322bb5..6f5f1c9a41 100644 --- a/src/block/FenceGate.php +++ b/src/block/FenceGate.php @@ -23,10 +23,10 @@ declare(strict_types=1); namespace pocketmine\block; -use pocketmine\block\utils\BlockDataReader; -use pocketmine\block\utils\BlockDataWriter; use pocketmine\block\utils\HorizontalFacingTrait; use pocketmine\block\utils\SupportType; +use pocketmine\data\runtime\block\BlockDataReader; +use pocketmine\data\runtime\block\BlockDataWriter; use pocketmine\item\Item; use pocketmine\math\AxisAlignedBB; use pocketmine\math\Facing; diff --git a/src/block/Fire.php b/src/block/Fire.php index d13ca247ab..8805c5653a 100644 --- a/src/block/Fire.php +++ b/src/block/Fire.php @@ -23,8 +23,8 @@ declare(strict_types=1); namespace pocketmine\block; -use pocketmine\block\utils\BlockDataReader; -use pocketmine\block\utils\BlockDataWriter; +use pocketmine\data\runtime\block\BlockDataReader; +use pocketmine\data\runtime\block\BlockDataWriter; use pocketmine\entity\Entity; use pocketmine\entity\projectile\Arrow; use pocketmine\event\block\BlockBurnEvent; diff --git a/src/block/FloorCoralFan.php b/src/block/FloorCoralFan.php index 6dcd5420ad..3a37af7490 100644 --- a/src/block/FloorCoralFan.php +++ b/src/block/FloorCoralFan.php @@ -23,8 +23,8 @@ declare(strict_types=1); namespace pocketmine\block; -use pocketmine\block\utils\BlockDataReader; -use pocketmine\block\utils\BlockDataWriter; +use pocketmine\data\runtime\block\BlockDataReader; +use pocketmine\data\runtime\block\BlockDataWriter; use pocketmine\item\Item; use pocketmine\item\VanillaItems; use pocketmine\math\Axis; diff --git a/src/block/FrostedIce.php b/src/block/FrostedIce.php index be19be5b48..184f2ba871 100644 --- a/src/block/FrostedIce.php +++ b/src/block/FrostedIce.php @@ -23,8 +23,8 @@ declare(strict_types=1); namespace pocketmine\block; -use pocketmine\block\utils\BlockDataReader; -use pocketmine\block\utils\BlockDataWriter; +use pocketmine\data\runtime\block\BlockDataReader; +use pocketmine\data\runtime\block\BlockDataWriter; use pocketmine\event\block\BlockMeltEvent; use function mt_rand; diff --git a/src/block/Furnace.php b/src/block/Furnace.php index 0dc1e0d1c2..46bd76081b 100644 --- a/src/block/Furnace.php +++ b/src/block/Furnace.php @@ -24,10 +24,10 @@ declare(strict_types=1); namespace pocketmine\block; use pocketmine\block\tile\Furnace as TileFurnace; -use pocketmine\block\utils\BlockDataReader; -use pocketmine\block\utils\BlockDataWriter; use pocketmine\block\utils\FacesOppositePlacingPlayerTrait; use pocketmine\block\utils\HorizontalFacingTrait; +use pocketmine\data\runtime\block\BlockDataReader; +use pocketmine\data\runtime\block\BlockDataWriter; use pocketmine\item\Item; use pocketmine\math\Vector3; use pocketmine\player\Player; diff --git a/src/block/Hopper.php b/src/block/Hopper.php index f8ce02fd7e..bba31f3145 100644 --- a/src/block/Hopper.php +++ b/src/block/Hopper.php @@ -24,11 +24,11 @@ declare(strict_types=1); namespace pocketmine\block; use pocketmine\block\tile\Hopper as TileHopper; -use pocketmine\block\utils\BlockDataReader; -use pocketmine\block\utils\BlockDataWriter; use pocketmine\block\utils\InvalidBlockStateException; use pocketmine\block\utils\PoweredByRedstoneTrait; use pocketmine\block\utils\SupportType; +use pocketmine\data\runtime\block\BlockDataReader; +use pocketmine\data\runtime\block\BlockDataWriter; use pocketmine\item\Item; use pocketmine\math\AxisAlignedBB; use pocketmine\math\Facing; diff --git a/src/block/ItemFrame.php b/src/block/ItemFrame.php index 762b5d6b0f..38ac5fc441 100644 --- a/src/block/ItemFrame.php +++ b/src/block/ItemFrame.php @@ -25,8 +25,8 @@ namespace pocketmine\block; use pocketmine\block\tile\ItemFrame as TileItemFrame; use pocketmine\block\utils\AnyFacingTrait; -use pocketmine\block\utils\BlockDataReader; -use pocketmine\block\utils\BlockDataWriter; +use pocketmine\data\runtime\block\BlockDataReader; +use pocketmine\data\runtime\block\BlockDataWriter; use pocketmine\item\Item; use pocketmine\math\Facing; use pocketmine\math\Vector3; diff --git a/src/block/Lantern.php b/src/block/Lantern.php index 54a7e1b8cd..db560584cb 100644 --- a/src/block/Lantern.php +++ b/src/block/Lantern.php @@ -23,9 +23,9 @@ declare(strict_types=1); namespace pocketmine\block; -use pocketmine\block\utils\BlockDataReader; -use pocketmine\block\utils\BlockDataWriter; use pocketmine\block\utils\SupportType; +use pocketmine\data\runtime\block\BlockDataReader; +use pocketmine\data\runtime\block\BlockDataWriter; use pocketmine\item\Item; use pocketmine\math\Axis; use pocketmine\math\AxisAlignedBB; diff --git a/src/block/Leaves.php b/src/block/Leaves.php index 1283f912ac..550afa3225 100644 --- a/src/block/Leaves.php +++ b/src/block/Leaves.php @@ -23,10 +23,10 @@ declare(strict_types=1); namespace pocketmine\block; -use pocketmine\block\utils\BlockDataReader; -use pocketmine\block\utils\BlockDataWriter; use pocketmine\block\utils\SupportType; use pocketmine\block\utils\TreeType; +use pocketmine\data\runtime\block\BlockDataReader; +use pocketmine\data\runtime\block\BlockDataWriter; use pocketmine\event\block\LeavesDecayEvent; use pocketmine\item\Item; use pocketmine\item\VanillaItems; diff --git a/src/block/Lectern.php b/src/block/Lectern.php index 708dcd47db..e17d299613 100644 --- a/src/block/Lectern.php +++ b/src/block/Lectern.php @@ -24,11 +24,11 @@ declare(strict_types=1); namespace pocketmine\block; use pocketmine\block\tile\Lectern as TileLectern; -use pocketmine\block\utils\BlockDataReader; -use pocketmine\block\utils\BlockDataWriter; use pocketmine\block\utils\FacesOppositePlacingPlayerTrait; use pocketmine\block\utils\HorizontalFacingTrait; use pocketmine\block\utils\SupportType; +use pocketmine\data\runtime\block\BlockDataReader; +use pocketmine\data\runtime\block\BlockDataWriter; use pocketmine\item\Item; use pocketmine\item\WritableBookBase; use pocketmine\math\AxisAlignedBB; diff --git a/src/block/Lever.php b/src/block/Lever.php index 652dd72862..d65b478496 100644 --- a/src/block/Lever.php +++ b/src/block/Lever.php @@ -23,11 +23,11 @@ declare(strict_types=1); namespace pocketmine\block; -use pocketmine\block\utils\BlockDataReader; -use pocketmine\block\utils\BlockDataReaderHelper; -use pocketmine\block\utils\BlockDataWriter; -use pocketmine\block\utils\BlockDataWriterHelper; use pocketmine\block\utils\LeverFacing; +use pocketmine\data\runtime\block\BlockDataReader; +use pocketmine\data\runtime\block\BlockDataReaderHelper; +use pocketmine\data\runtime\block\BlockDataWriter; +use pocketmine\data\runtime\block\BlockDataWriterHelper; use pocketmine\item\Item; use pocketmine\math\Axis; use pocketmine\math\Facing; diff --git a/src/block/Liquid.php b/src/block/Liquid.php index dca825ad80..1ad1c112a9 100644 --- a/src/block/Liquid.php +++ b/src/block/Liquid.php @@ -23,10 +23,10 @@ declare(strict_types=1); namespace pocketmine\block; -use pocketmine\block\utils\BlockDataReader; -use pocketmine\block\utils\BlockDataWriter; use pocketmine\block\utils\MinimumCostFlowCalculator; use pocketmine\block\utils\SupportType; +use pocketmine\data\runtime\block\BlockDataReader; +use pocketmine\data\runtime\block\BlockDataWriter; use pocketmine\entity\Entity; use pocketmine\event\block\BlockFormEvent; use pocketmine\event\block\BlockSpreadEvent; diff --git a/src/block/NetherPortal.php b/src/block/NetherPortal.php index 5317de232f..883eb28996 100644 --- a/src/block/NetherPortal.php +++ b/src/block/NetherPortal.php @@ -23,9 +23,9 @@ declare(strict_types=1); namespace pocketmine\block; -use pocketmine\block\utils\BlockDataReader; -use pocketmine\block\utils\BlockDataWriter; use pocketmine\block\utils\SupportType; +use pocketmine\data\runtime\block\BlockDataReader; +use pocketmine\data\runtime\block\BlockDataWriter; use pocketmine\entity\Entity; use pocketmine\item\Item; use pocketmine\math\Axis; diff --git a/src/block/NetherWartPlant.php b/src/block/NetherWartPlant.php index 9cd1516576..5d6bc8a31a 100644 --- a/src/block/NetherWartPlant.php +++ b/src/block/NetherWartPlant.php @@ -23,8 +23,8 @@ declare(strict_types=1); namespace pocketmine\block; -use pocketmine\block\utils\BlockDataReader; -use pocketmine\block\utils\BlockDataWriter; +use pocketmine\data\runtime\block\BlockDataReader; +use pocketmine\data\runtime\block\BlockDataWriter; use pocketmine\event\block\BlockGrowEvent; use pocketmine\item\Item; use pocketmine\math\Facing; diff --git a/src/block/Rail.php b/src/block/Rail.php index dc93f15d66..74f3886472 100644 --- a/src/block/Rail.php +++ b/src/block/Rail.php @@ -23,10 +23,10 @@ declare(strict_types=1); namespace pocketmine\block; -use pocketmine\block\utils\BlockDataReader; -use pocketmine\block\utils\BlockDataWriter; use pocketmine\block\utils\InvalidBlockStateException; use pocketmine\block\utils\RailConnectionInfo; +use pocketmine\data\runtime\block\BlockDataReader; +use pocketmine\data\runtime\block\BlockDataWriter; use pocketmine\math\Facing; use function array_keys; use function implode; diff --git a/src/block/RedMushroomBlock.php b/src/block/RedMushroomBlock.php index 22a141d2a2..2a4b9906bf 100644 --- a/src/block/RedMushroomBlock.php +++ b/src/block/RedMushroomBlock.php @@ -23,11 +23,11 @@ declare(strict_types=1); namespace pocketmine\block; -use pocketmine\block\utils\BlockDataReader; -use pocketmine\block\utils\BlockDataReaderHelper; -use pocketmine\block\utils\BlockDataWriter; -use pocketmine\block\utils\BlockDataWriterHelper; use pocketmine\block\utils\MushroomBlockType; +use pocketmine\data\runtime\block\BlockDataReader; +use pocketmine\data\runtime\block\BlockDataReaderHelper; +use pocketmine\data\runtime\block\BlockDataWriter; +use pocketmine\data\runtime\block\BlockDataWriterHelper; use pocketmine\item\Item; use function mt_rand; diff --git a/src/block/RedstoneComparator.php b/src/block/RedstoneComparator.php index cc2dbaa89a..a531889d15 100644 --- a/src/block/RedstoneComparator.php +++ b/src/block/RedstoneComparator.php @@ -25,11 +25,11 @@ namespace pocketmine\block; use pocketmine\block\tile\Comparator; use pocketmine\block\utils\AnalogRedstoneSignalEmitterTrait; -use pocketmine\block\utils\BlockDataReader; -use pocketmine\block\utils\BlockDataWriter; use pocketmine\block\utils\HorizontalFacingTrait; use pocketmine\block\utils\PoweredByRedstoneTrait; use pocketmine\block\utils\SupportType; +use pocketmine\data\runtime\block\BlockDataReader; +use pocketmine\data\runtime\block\BlockDataWriter; use pocketmine\item\Item; use pocketmine\math\AxisAlignedBB; use pocketmine\math\Facing; diff --git a/src/block/RedstoneLamp.php b/src/block/RedstoneLamp.php index 6a6919edc1..e81f8e805e 100644 --- a/src/block/RedstoneLamp.php +++ b/src/block/RedstoneLamp.php @@ -23,9 +23,9 @@ declare(strict_types=1); namespace pocketmine\block; -use pocketmine\block\utils\BlockDataReader; -use pocketmine\block\utils\BlockDataWriter; use pocketmine\block\utils\PoweredByRedstoneTrait; +use pocketmine\data\runtime\block\BlockDataReader; +use pocketmine\data\runtime\block\BlockDataWriter; class RedstoneLamp extends Opaque{ use PoweredByRedstoneTrait; diff --git a/src/block/RedstoneOre.php b/src/block/RedstoneOre.php index 7695218574..e0a183860c 100644 --- a/src/block/RedstoneOre.php +++ b/src/block/RedstoneOre.php @@ -23,8 +23,8 @@ declare(strict_types=1); namespace pocketmine\block; -use pocketmine\block\utils\BlockDataReader; -use pocketmine\block\utils\BlockDataWriter; +use pocketmine\data\runtime\block\BlockDataReader; +use pocketmine\data\runtime\block\BlockDataWriter; use pocketmine\item\Item; use pocketmine\item\VanillaItems; use pocketmine\math\Vector3; diff --git a/src/block/RedstoneRepeater.php b/src/block/RedstoneRepeater.php index c56869f9a1..5e3ff6ba25 100644 --- a/src/block/RedstoneRepeater.php +++ b/src/block/RedstoneRepeater.php @@ -23,11 +23,11 @@ declare(strict_types=1); namespace pocketmine\block; -use pocketmine\block\utils\BlockDataReader; -use pocketmine\block\utils\BlockDataWriter; use pocketmine\block\utils\HorizontalFacingTrait; use pocketmine\block\utils\PoweredByRedstoneTrait; use pocketmine\block\utils\SupportType; +use pocketmine\data\runtime\block\BlockDataReader; +use pocketmine\data\runtime\block\BlockDataWriter; use pocketmine\item\Item; use pocketmine\math\AxisAlignedBB; use pocketmine\math\Facing; diff --git a/src/block/RedstoneTorch.php b/src/block/RedstoneTorch.php index ada02e26c6..de6f1c92f0 100644 --- a/src/block/RedstoneTorch.php +++ b/src/block/RedstoneTorch.php @@ -23,8 +23,8 @@ declare(strict_types=1); namespace pocketmine\block; -use pocketmine\block\utils\BlockDataReader; -use pocketmine\block\utils\BlockDataWriter; +use pocketmine\data\runtime\block\BlockDataReader; +use pocketmine\data\runtime\block\BlockDataWriter; class RedstoneTorch extends Torch{ protected bool $lit = true; diff --git a/src/block/Sapling.php b/src/block/Sapling.php index f2bfd2af44..39aaba3ba5 100644 --- a/src/block/Sapling.php +++ b/src/block/Sapling.php @@ -23,9 +23,9 @@ declare(strict_types=1); namespace pocketmine\block; -use pocketmine\block\utils\BlockDataReader; -use pocketmine\block\utils\BlockDataWriter; use pocketmine\block\utils\TreeType; +use pocketmine\data\runtime\block\BlockDataReader; +use pocketmine\data\runtime\block\BlockDataWriter; use pocketmine\event\block\StructureGrowEvent; use pocketmine\item\Fertilizer; use pocketmine\item\Item; diff --git a/src/block/SeaPickle.php b/src/block/SeaPickle.php index c85d700a91..3dd1f74ad4 100644 --- a/src/block/SeaPickle.php +++ b/src/block/SeaPickle.php @@ -23,9 +23,9 @@ declare(strict_types=1); namespace pocketmine\block; -use pocketmine\block\utils\BlockDataReader; -use pocketmine\block\utils\BlockDataWriter; use pocketmine\block\utils\SupportType; +use pocketmine\data\runtime\block\BlockDataReader; +use pocketmine\data\runtime\block\BlockDataWriter; use pocketmine\item\Item; use pocketmine\math\AxisAlignedBB; use pocketmine\math\Vector3; diff --git a/src/block/ShulkerBox.php b/src/block/ShulkerBox.php index bec196838a..49aa3ae85c 100644 --- a/src/block/ShulkerBox.php +++ b/src/block/ShulkerBox.php @@ -25,8 +25,8 @@ namespace pocketmine\block; use pocketmine\block\tile\ShulkerBox as TileShulkerBox; use pocketmine\block\utils\AnyFacingTrait; -use pocketmine\block\utils\BlockDataReader; -use pocketmine\block\utils\BlockDataWriter; +use pocketmine\data\runtime\block\BlockDataReader; +use pocketmine\data\runtime\block\BlockDataWriter; use pocketmine\item\Item; use pocketmine\math\Vector3; use pocketmine\player\Player; diff --git a/src/block/SimplePressurePlate.php b/src/block/SimplePressurePlate.php index 7bdfc71186..ad60f6ba5f 100644 --- a/src/block/SimplePressurePlate.php +++ b/src/block/SimplePressurePlate.php @@ -23,8 +23,8 @@ declare(strict_types=1); namespace pocketmine\block; -use pocketmine\block\utils\BlockDataReader; -use pocketmine\block\utils\BlockDataWriter; +use pocketmine\data\runtime\block\BlockDataReader; +use pocketmine\data\runtime\block\BlockDataWriter; abstract class SimplePressurePlate extends PressurePlate{ protected bool $pressed = false; diff --git a/src/block/Skull.php b/src/block/Skull.php index 5eb2749e77..140c715741 100644 --- a/src/block/Skull.php +++ b/src/block/Skull.php @@ -24,12 +24,12 @@ declare(strict_types=1); namespace pocketmine\block; use pocketmine\block\tile\Skull as TileSkull; -use pocketmine\block\utils\BlockDataReader; -use pocketmine\block\utils\BlockDataReaderHelper; -use pocketmine\block\utils\BlockDataWriter; -use pocketmine\block\utils\BlockDataWriterHelper; use pocketmine\block\utils\InvalidBlockStateException; use pocketmine\block\utils\SkullType; +use pocketmine\data\runtime\block\BlockDataReader; +use pocketmine\data\runtime\block\BlockDataReaderHelper; +use pocketmine\data\runtime\block\BlockDataWriter; +use pocketmine\data\runtime\block\BlockDataWriterHelper; use pocketmine\item\Item; use pocketmine\item\VanillaItems; use pocketmine\math\AxisAlignedBB; diff --git a/src/block/Slab.php b/src/block/Slab.php index 6abab61f6c..e562c7adbb 100644 --- a/src/block/Slab.php +++ b/src/block/Slab.php @@ -23,12 +23,12 @@ declare(strict_types=1); namespace pocketmine\block; -use pocketmine\block\utils\BlockDataReader; -use pocketmine\block\utils\BlockDataReaderHelper; -use pocketmine\block\utils\BlockDataWriter; -use pocketmine\block\utils\BlockDataWriterHelper; use pocketmine\block\utils\SlabType; use pocketmine\block\utils\SupportType; +use pocketmine\data\runtime\block\BlockDataReader; +use pocketmine\data\runtime\block\BlockDataReaderHelper; +use pocketmine\data\runtime\block\BlockDataWriter; +use pocketmine\data\runtime\block\BlockDataWriterHelper; use pocketmine\item\Item; use pocketmine\math\AxisAlignedBB; use pocketmine\math\Facing; diff --git a/src/block/SnowLayer.php b/src/block/SnowLayer.php index 9894dd43a6..6642faaa8c 100644 --- a/src/block/SnowLayer.php +++ b/src/block/SnowLayer.php @@ -23,11 +23,11 @@ declare(strict_types=1); namespace pocketmine\block; -use pocketmine\block\utils\BlockDataReader; -use pocketmine\block\utils\BlockDataWriter; use pocketmine\block\utils\Fallable; use pocketmine\block\utils\FallableTrait; use pocketmine\block\utils\SupportType; +use pocketmine\data\runtime\block\BlockDataReader; +use pocketmine\data\runtime\block\BlockDataWriter; use pocketmine\event\block\BlockMeltEvent; use pocketmine\item\Item; use pocketmine\item\VanillaItems; diff --git a/src/block/Sponge.php b/src/block/Sponge.php index 9fca8e9dc6..c9624cde3a 100644 --- a/src/block/Sponge.php +++ b/src/block/Sponge.php @@ -23,8 +23,8 @@ declare(strict_types=1); namespace pocketmine\block; -use pocketmine\block\utils\BlockDataReader; -use pocketmine\block\utils\BlockDataWriter; +use pocketmine\data\runtime\block\BlockDataReader; +use pocketmine\data\runtime\block\BlockDataWriter; class Sponge extends Opaque{ protected bool $wet = false; diff --git a/src/block/Stair.php b/src/block/Stair.php index 9242b36ab7..6ccfb13127 100644 --- a/src/block/Stair.php +++ b/src/block/Stair.php @@ -23,11 +23,11 @@ declare(strict_types=1); namespace pocketmine\block; -use pocketmine\block\utils\BlockDataReader; -use pocketmine\block\utils\BlockDataWriter; use pocketmine\block\utils\HorizontalFacingTrait; use pocketmine\block\utils\StairShape; use pocketmine\block\utils\SupportType; +use pocketmine\data\runtime\block\BlockDataReader; +use pocketmine\data\runtime\block\BlockDataWriter; use pocketmine\item\Item; use pocketmine\math\Axis; use pocketmine\math\AxisAlignedBB; diff --git a/src/block/StraightOnlyRail.php b/src/block/StraightOnlyRail.php index c2c171642e..93af1c4cc5 100644 --- a/src/block/StraightOnlyRail.php +++ b/src/block/StraightOnlyRail.php @@ -23,10 +23,10 @@ declare(strict_types=1); namespace pocketmine\block; -use pocketmine\block\utils\BlockDataReader; -use pocketmine\block\utils\BlockDataWriter; use pocketmine\block\utils\InvalidBlockStateException; use pocketmine\block\utils\RailConnectionInfo; +use pocketmine\data\runtime\block\BlockDataReader; +use pocketmine\data\runtime\block\BlockDataWriter; use function array_keys; use function implode; diff --git a/src/block/Sugarcane.php b/src/block/Sugarcane.php index 320a484f8b..9643b7c4f7 100644 --- a/src/block/Sugarcane.php +++ b/src/block/Sugarcane.php @@ -23,8 +23,8 @@ declare(strict_types=1); namespace pocketmine\block; -use pocketmine\block\utils\BlockDataReader; -use pocketmine\block\utils\BlockDataWriter; +use pocketmine\data\runtime\block\BlockDataReader; +use pocketmine\data\runtime\block\BlockDataWriter; use pocketmine\event\block\BlockGrowEvent; use pocketmine\item\Fertilizer; use pocketmine\item\Item; diff --git a/src/block/SweetBerryBush.php b/src/block/SweetBerryBush.php index a8c302d611..0220125c42 100644 --- a/src/block/SweetBerryBush.php +++ b/src/block/SweetBerryBush.php @@ -23,8 +23,8 @@ declare(strict_types=1); namespace pocketmine\block; -use pocketmine\block\utils\BlockDataReader; -use pocketmine\block\utils\BlockDataWriter; +use pocketmine\data\runtime\block\BlockDataReader; +use pocketmine\data\runtime\block\BlockDataWriter; use pocketmine\entity\Entity; use pocketmine\entity\Living; use pocketmine\event\block\BlockGrowEvent; diff --git a/src/block/TNT.php b/src/block/TNT.php index bd7d13b433..b5f663a725 100644 --- a/src/block/TNT.php +++ b/src/block/TNT.php @@ -23,8 +23,8 @@ declare(strict_types=1); namespace pocketmine\block; -use pocketmine\block\utils\BlockDataReader; -use pocketmine\block\utils\BlockDataWriter; +use pocketmine\data\runtime\block\BlockDataReader; +use pocketmine\data\runtime\block\BlockDataWriter; use pocketmine\entity\Entity; use pocketmine\entity\Location; use pocketmine\entity\object\PrimedTNT; diff --git a/src/block/Torch.php b/src/block/Torch.php index 02cbec2d29..6d887f2c46 100644 --- a/src/block/Torch.php +++ b/src/block/Torch.php @@ -23,10 +23,10 @@ declare(strict_types=1); namespace pocketmine\block; -use pocketmine\block\utils\BlockDataReader; -use pocketmine\block\utils\BlockDataWriter; use pocketmine\block\utils\InvalidBlockStateException; use pocketmine\block\utils\SupportType; +use pocketmine\data\runtime\block\BlockDataReader; +use pocketmine\data\runtime\block\BlockDataWriter; use pocketmine\item\Item; use pocketmine\math\Axis; use pocketmine\math\Facing; diff --git a/src/block/Trapdoor.php b/src/block/Trapdoor.php index 42f973a4b3..4291e4ba4b 100644 --- a/src/block/Trapdoor.php +++ b/src/block/Trapdoor.php @@ -23,10 +23,10 @@ declare(strict_types=1); namespace pocketmine\block; -use pocketmine\block\utils\BlockDataReader; -use pocketmine\block\utils\BlockDataWriter; use pocketmine\block\utils\HorizontalFacingTrait; use pocketmine\block\utils\SupportType; +use pocketmine\data\runtime\block\BlockDataReader; +use pocketmine\data\runtime\block\BlockDataWriter; use pocketmine\item\Item; use pocketmine\math\AxisAlignedBB; use pocketmine\math\Facing; diff --git a/src/block/Tripwire.php b/src/block/Tripwire.php index 954fa888aa..025f218ce3 100644 --- a/src/block/Tripwire.php +++ b/src/block/Tripwire.php @@ -23,8 +23,8 @@ declare(strict_types=1); namespace pocketmine\block; -use pocketmine\block\utils\BlockDataReader; -use pocketmine\block\utils\BlockDataWriter; +use pocketmine\data\runtime\block\BlockDataReader; +use pocketmine\data\runtime\block\BlockDataWriter; class Tripwire extends Flowable{ protected bool $triggered = false; diff --git a/src/block/TripwireHook.php b/src/block/TripwireHook.php index 2f76f184fb..76cfa931c1 100644 --- a/src/block/TripwireHook.php +++ b/src/block/TripwireHook.php @@ -23,9 +23,9 @@ declare(strict_types=1); namespace pocketmine\block; -use pocketmine\block\utils\BlockDataReader; -use pocketmine\block\utils\BlockDataWriter; use pocketmine\block\utils\HorizontalFacingTrait; +use pocketmine\data\runtime\block\BlockDataReader; +use pocketmine\data\runtime\block\BlockDataWriter; use pocketmine\item\Item; use pocketmine\math\Axis; use pocketmine\math\Facing; diff --git a/src/block/Vine.php b/src/block/Vine.php index 1ac2157efd..e0bb154dc6 100644 --- a/src/block/Vine.php +++ b/src/block/Vine.php @@ -23,8 +23,8 @@ declare(strict_types=1); namespace pocketmine\block; -use pocketmine\block\utils\BlockDataReader; -use pocketmine\block\utils\BlockDataWriter; +use pocketmine\data\runtime\block\BlockDataReader; +use pocketmine\data\runtime\block\BlockDataWriter; use pocketmine\entity\Entity; use pocketmine\item\Item; use pocketmine\math\Axis; diff --git a/src/block/Wall.php b/src/block/Wall.php index ae781b32d0..15b6b64863 100644 --- a/src/block/Wall.php +++ b/src/block/Wall.php @@ -23,10 +23,10 @@ declare(strict_types=1); namespace pocketmine\block; -use pocketmine\block\utils\BlockDataReader; -use pocketmine\block\utils\BlockDataWriter; use pocketmine\block\utils\SupportType; use pocketmine\block\utils\WallConnectionType; +use pocketmine\data\runtime\block\BlockDataReader; +use pocketmine\data\runtime\block\BlockDataWriter; use pocketmine\math\Axis; use pocketmine\math\AxisAlignedBB; use pocketmine\math\Facing; diff --git a/src/block/WallCoralFan.php b/src/block/WallCoralFan.php index 4ab9251c07..a0d710d706 100644 --- a/src/block/WallCoralFan.php +++ b/src/block/WallCoralFan.php @@ -23,9 +23,9 @@ declare(strict_types=1); namespace pocketmine\block; -use pocketmine\block\utils\BlockDataReader; -use pocketmine\block\utils\BlockDataWriter; use pocketmine\block\utils\HorizontalFacingTrait; +use pocketmine\data\runtime\block\BlockDataReader; +use pocketmine\data\runtime\block\BlockDataWriter; use pocketmine\item\Item; use pocketmine\item\VanillaItems; use pocketmine\math\Axis; diff --git a/src/block/utils/AnalogRedstoneSignalEmitterTrait.php b/src/block/utils/AnalogRedstoneSignalEmitterTrait.php index aa037f1ca7..513ca47768 100644 --- a/src/block/utils/AnalogRedstoneSignalEmitterTrait.php +++ b/src/block/utils/AnalogRedstoneSignalEmitterTrait.php @@ -23,6 +23,9 @@ declare(strict_types=1); namespace pocketmine\block\utils; +use pocketmine\data\runtime\block\BlockDataReader; +use pocketmine\data\runtime\block\BlockDataWriter; + trait AnalogRedstoneSignalEmitterTrait{ protected int $signalStrength = 0; diff --git a/src/block/utils/AnyFacingTrait.php b/src/block/utils/AnyFacingTrait.php index 982d5623c0..580dbbd661 100644 --- a/src/block/utils/AnyFacingTrait.php +++ b/src/block/utils/AnyFacingTrait.php @@ -23,6 +23,8 @@ declare(strict_types=1); namespace pocketmine\block\utils; +use pocketmine\data\runtime\block\BlockDataReader; +use pocketmine\data\runtime\block\BlockDataWriter; use pocketmine\math\Facing; trait AnyFacingTrait{ diff --git a/src/block/utils/ColoredTrait.php b/src/block/utils/ColoredTrait.php index afd060229a..04d8996fd1 100644 --- a/src/block/utils/ColoredTrait.php +++ b/src/block/utils/ColoredTrait.php @@ -25,6 +25,10 @@ namespace pocketmine\block\utils; use pocketmine\block\Block; use pocketmine\data\bedrock\DyeColorIdMap; +use pocketmine\data\runtime\block\BlockDataReader; +use pocketmine\data\runtime\block\BlockDataReaderHelper; +use pocketmine\data\runtime\block\BlockDataWriter; +use pocketmine\data\runtime\block\BlockDataWriterHelper; trait ColoredTrait{ /** @var DyeColor */ diff --git a/src/block/utils/CoralTypeTrait.php b/src/block/utils/CoralTypeTrait.php index 5cc3f08755..ab6fd66f1e 100644 --- a/src/block/utils/CoralTypeTrait.php +++ b/src/block/utils/CoralTypeTrait.php @@ -24,6 +24,10 @@ declare(strict_types=1); namespace pocketmine\block\utils; use pocketmine\block\Block; +use pocketmine\data\runtime\block\BlockDataReader; +use pocketmine\data\runtime\block\BlockDataReaderHelper; +use pocketmine\data\runtime\block\BlockDataWriter; +use pocketmine\data\runtime\block\BlockDataWriterHelper; trait CoralTypeTrait{ protected CoralType $coralType; diff --git a/src/block/utils/HorizontalFacingTrait.php b/src/block/utils/HorizontalFacingTrait.php index 0da0a9ca12..cadcf2ede3 100644 --- a/src/block/utils/HorizontalFacingTrait.php +++ b/src/block/utils/HorizontalFacingTrait.php @@ -23,6 +23,8 @@ declare(strict_types=1); namespace pocketmine\block\utils; +use pocketmine\data\runtime\block\BlockDataReader; +use pocketmine\data\runtime\block\BlockDataWriter; use pocketmine\math\Axis; use pocketmine\math\Facing; diff --git a/src/block/utils/PillarRotationTrait.php b/src/block/utils/PillarRotationTrait.php index 1d4503ff76..03176ed921 100644 --- a/src/block/utils/PillarRotationTrait.php +++ b/src/block/utils/PillarRotationTrait.php @@ -24,6 +24,8 @@ declare(strict_types=1); namespace pocketmine\block\utils; use pocketmine\block\Block; +use pocketmine\data\runtime\block\BlockDataReader; +use pocketmine\data\runtime\block\BlockDataWriter; use pocketmine\item\Item; use pocketmine\math\Axis; use pocketmine\math\Facing; diff --git a/src/block/utils/RailPoweredByRedstoneTrait.php b/src/block/utils/RailPoweredByRedstoneTrait.php index 9bc98303a9..7a402d8e27 100644 --- a/src/block/utils/RailPoweredByRedstoneTrait.php +++ b/src/block/utils/RailPoweredByRedstoneTrait.php @@ -23,6 +23,9 @@ declare(strict_types=1); namespace pocketmine\block\utils; +use pocketmine\data\runtime\block\BlockDataReader; +use pocketmine\data\runtime\block\BlockDataWriter; + trait RailPoweredByRedstoneTrait{ use PoweredByRedstoneTrait; diff --git a/src/block/utils/SignLikeRotationTrait.php b/src/block/utils/SignLikeRotationTrait.php index e4ee5f8689..b678294927 100644 --- a/src/block/utils/SignLikeRotationTrait.php +++ b/src/block/utils/SignLikeRotationTrait.php @@ -23,6 +23,8 @@ declare(strict_types=1); namespace pocketmine\block\utils; +use pocketmine\data\runtime\block\BlockDataReader; +use pocketmine\data\runtime\block\BlockDataWriter; use function floor; trait SignLikeRotationTrait{ diff --git a/src/block/utils/BlockDataReader.php b/src/data/runtime/block/BlockDataReader.php similarity index 97% rename from src/block/utils/BlockDataReader.php rename to src/data/runtime/block/BlockDataReader.php index dbb3f93860..5434c05b47 100644 --- a/src/block/utils/BlockDataReader.php +++ b/src/data/runtime/block/BlockDataReader.php @@ -21,8 +21,9 @@ declare(strict_types=1); -namespace pocketmine\block\utils; +namespace pocketmine\data\runtime\block; +use pocketmine\block\utils\WallConnectionType; use pocketmine\math\Axis; use pocketmine\math\Facing; use pocketmine\utils\AssumptionFailedError; diff --git a/src/block/utils/BlockDataReaderHelper.php b/src/data/runtime/block/BlockDataReaderHelper.php similarity index 94% rename from src/block/utils/BlockDataReaderHelper.php rename to src/data/runtime/block/BlockDataReaderHelper.php index c0dba20ef2..b8a3f7703d 100644 --- a/src/block/utils/BlockDataReaderHelper.php +++ b/src/data/runtime/block/BlockDataReaderHelper.php @@ -21,7 +21,17 @@ declare(strict_types=1); -namespace pocketmine\block\utils; +namespace pocketmine\data\runtime\block; + +use pocketmine\block\utils\BellAttachmentType; +use pocketmine\block\utils\CoralType; +use pocketmine\block\utils\DyeColor; +use pocketmine\block\utils\LeverFacing; +use pocketmine\block\utils\MushroomBlockType; +use pocketmine\block\utils\SkullType; +use pocketmine\block\utils\SlabType; +use pocketmine\block\utils\StairShape; +use pocketmine\block\utils\TreeType; final class BlockDataReaderHelper{ diff --git a/src/block/utils/BlockDataWriter.php b/src/data/runtime/block/BlockDataWriter.php similarity index 97% rename from src/block/utils/BlockDataWriter.php rename to src/data/runtime/block/BlockDataWriter.php index 774a584841..a4d87a5dfc 100644 --- a/src/block/utils/BlockDataWriter.php +++ b/src/data/runtime/block/BlockDataWriter.php @@ -21,8 +21,9 @@ declare(strict_types=1); -namespace pocketmine\block\utils; +namespace pocketmine\data\runtime\block; +use pocketmine\block\utils\WallConnectionType; use pocketmine\math\Axis; use pocketmine\math\Facing; use pocketmine\utils\AssumptionFailedError; diff --git a/src/block/utils/BlockDataWriterHelper.php b/src/data/runtime/block/BlockDataWriterHelper.php similarity index 94% rename from src/block/utils/BlockDataWriterHelper.php rename to src/data/runtime/block/BlockDataWriterHelper.php index f8f00060db..1a49fac722 100644 --- a/src/block/utils/BlockDataWriterHelper.php +++ b/src/data/runtime/block/BlockDataWriterHelper.php @@ -21,7 +21,17 @@ declare(strict_types=1); -namespace pocketmine\block\utils; +namespace pocketmine\data\runtime\block; + +use pocketmine\block\utils\BellAttachmentType; +use pocketmine\block\utils\CoralType; +use pocketmine\block\utils\DyeColor; +use pocketmine\block\utils\LeverFacing; +use pocketmine\block\utils\MushroomBlockType; +use pocketmine\block\utils\SkullType; +use pocketmine\block\utils\SlabType; +use pocketmine\block\utils\StairShape; +use pocketmine\block\utils\TreeType; final class BlockDataWriterHelper{