FallingBlock
Extends Entity
Properties
$block protected
php
protected \pocketmine\block\Block $blockMethods
__construct()
php
public function __construct(\pocketmine\entity\Location $location, \pocketmine\block\Block $block, ?\pocketmine\nbt\tag\CompoundTag $nbt = null)attack()
php
public function attack(\pocketmine\event\entity\EntityDamageEvent $source) : voidcanBeMovedByCurrents()
php
public function canBeMovedByCurrents() : boolcanCollideWith()
php
public function canCollideWith(\pocketmine\entity\Entity $entity) : boolentityBaseTick() protected
php
protected function entityBaseTick(int $tickDiff = 1) : boolgetBlock()
php
public function getBlock() : \pocketmine\block\BlockgetInitialDragMultiplier() protected
php
protected function getInitialDragMultiplier() : floatgetInitialGravity() protected
php
protected function getInitialGravity() : floatgetInitialSizeInfo() protected
php
protected function getInitialSizeInfo() : \pocketmine\entity\EntitySizeInfogetNetworkTypeId()
php
public static function getNetworkTypeId() : stringgetOffsetPosition()
php
public function getOffsetPosition(\pocketmine\math\Vector3 $vector3) : \pocketmine\math\Vector3getPickedItem()
php
public function getPickedItem() : ?\pocketmine\item\ItemonHitGround() protected
php
protected function onHitGround() : ?floatparseBlockNBT()
php
public static function parseBlockNBT(\pocketmine\block\RuntimeBlockStateRegistry $factory, \pocketmine\nbt\tag\CompoundTag $nbt) : \pocketmine\block\BlocksaveNBT()
php
public function saveNBT() : \pocketmine\nbt\tag\CompoundTagsyncNetworkData() protected
php
protected function syncNetworkData(\pocketmine\network\mcpe\protocol\types\entity\EntityMetadataCollection $properties) : void