Painting
Extends Entity
Constants
DATA_TO_FACING
php
public const DATA_TO_FACING = [0 => \pocketmine\math\Facing::SOUTH, 1 => \pocketmine\math\Facing::WEST, 2 => \pocketmine\math\Facing::NORTH, 3 => \pocketmine\math\Facing::EAST]TAG_DIRECTION_BE
php
public const TAG_DIRECTION_BE = "Direction"TAG_FACING_JE
php
public const TAG_FACING_JE = "Facing"TAG_MOTIVE
php
public const TAG_MOTIVE = "Motive"TAG_TILE_X
php
public const TAG_TILE_X = "TileX"TAG_TILE_Y
php
public const TAG_TILE_Y = "TileY"TAG_TILE_Z
php
public const TAG_TILE_Z = "TileZ"Properties
$blockIn protected
php
protected \pocketmine\math\Vector3 $blockIn$facing protected
php
protected int $facing$motive protected
php
protected \pocketmine\entity\object\PaintingMotive $motiveMethods
__construct()
php
public function __construct(\pocketmine\entity\Location $location, \pocketmine\math\Vector3 $blockIn, int $facing, \pocketmine\entity\object\PaintingMotive $motive, ?\pocketmine\nbt\tag\CompoundTag $nbt = null)canBeCollidedWith()
php
public function canBeCollidedWith() : boolcanFit()
php
public static function canFit(\pocketmine\world\World $world, \pocketmine\math\Vector3 $blockIn, int $facing, bool $checkOverlap, \pocketmine\entity\object\PaintingMotive $motive) : boolReturns whether a painting with the specified motive can be placed at the given position.
getFacing()
php
public function getFacing() : intgetInitialDragMultiplier() protected
php
protected function getInitialDragMultiplier() : floatgetInitialGravity() protected
php
protected function getInitialGravity() : floatgetInitialSizeInfo() protected
php
protected function getInitialSizeInfo() : \pocketmine\entity\EntitySizeInfogetMotive()
php
public function getMotive() : \pocketmine\entity\object\PaintingMotiveReturns the painting motive (which image is displayed on the painting)
getNetworkTypeId()
php
public static function getNetworkTypeId() : stringgetPickedItem()
php
public function getPickedItem() : ?\pocketmine\item\ItemhasMovementUpdate()
php
public function hasMovementUpdate() : boolinitEntity() protected
php
protected function initEntity(\pocketmine\nbt\tag\CompoundTag $nbt) : voidonDeath() protected
php
protected function onDeath() : voidonNearbyBlockChange()
php
public function onNearbyBlockChange() : voidonRandomUpdate()
php
public function onRandomUpdate() : voidrecalculateBoundingBox() protected
php
protected function recalculateBoundingBox() : voidsaveNBT()
php
public function saveNBT() : \pocketmine\nbt\tag\CompoundTagsendSpawnPacket() protected
php
protected function sendSpawnPacket(\pocketmine\player\Player $player) : voidupdateMovement() protected
php
protected function updateMovement(bool $teleport = false) : void