Skip to content

FallingBlock ​

class · pocketmine\entity\object\FallingBlock · source

Extends Entity

Properties ​

$block protected ​

php
protected \pocketmine\block\Block $block

Methods ​

__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) : void

canBeMovedByCurrents() ​

php
public function canBeMovedByCurrents() : bool

canCollideWith() ​

php
public function canCollideWith(\pocketmine\entity\Entity $entity) : bool

entityBaseTick() protected ​

php
protected function entityBaseTick(int $tickDiff = 1) : bool

getBlock() ​

php
public function getBlock() : \pocketmine\block\Block

getInitialDragMultiplier() protected ​

php
protected function getInitialDragMultiplier() : float

getInitialGravity() protected ​

php
protected function getInitialGravity() : float

getInitialSizeInfo() protected ​

php
protected function getInitialSizeInfo() : \pocketmine\entity\EntitySizeInfo

getNetworkTypeId() ​

php
public static function getNetworkTypeId() : string

getOffsetPosition() ​

php
public function getOffsetPosition(\pocketmine\math\Vector3 $vector3) : \pocketmine\math\Vector3

getPickedItem() ​

php
public function getPickedItem() : ?\pocketmine\item\Item

onHitGround() protected ​

php
protected function onHitGround() : ?float

parseBlockNBT() ​

php
public static function parseBlockNBT(\pocketmine\block\RuntimeBlockStateRegistry $factory, \pocketmine\nbt\tag\CompoundTag $nbt) : \pocketmine\block\Block

saveNBT() ​

php
public function saveNBT() : \pocketmine\nbt\tag\CompoundTag

syncNetworkData() protected ​

php
protected function syncNetworkData(\pocketmine\network\mcpe\protocol\types\entity\EntityMetadataCollection $properties) : void

VanillaMine is a fork of PocketMine-MP, maintained by Luxury Nodes. Not affiliated with the PMMP team or Mojang.