Anvil
Extends Transparent
Implements Fallable, HorizontalFacing
Constants
SLIGHTLY_DAMAGED
php
public const SLIGHTLY_DAMAGED = 1UNDAMAGED
php
public const UNDAMAGED = 0VERY_DAMAGED
php
public const VERY_DAMAGED = 2Methods
describeBlockItemState()
php
public function describeBlockItemState(\pocketmine\data\runtime\RuntimeDataDescriber $w) : voiddescribeBlockOnlyState() protected
php
protected function describeBlockOnlyState(\pocketmine\data\runtime\RuntimeDataDescriber $w) : voidgetDamage()
php
public function getDamage() : intgetFallDamagePerBlock()
php
public function getFallDamagePerBlock() : floatgetLandSound()
php
public function getLandSound() : ?\pocketmine\world\sound\SoundgetMaxFallDamage()
php
public function getMaxFallDamage() : floatgetSupportType()
php
public function getSupportType(int $facing) : \pocketmine\block\utils\SupportTypeonHitGround()
php
public function onHitGround(\pocketmine\entity\object\FallingBlock $blockEntity) : boolonInteract()
php
public function onInteract(\pocketmine\item\Item $item, int $face, \pocketmine\math\Vector3 $clickVector, ?\pocketmine\player\Player $player = null, array &$returnedItems = []) : boolplace()
php
public function place(\pocketmine\world\BlockTransaction $tx, \pocketmine\item\Item $item, \pocketmine\block\Block $blockReplace, \pocketmine\block\Block $blockClicked, int $face, \pocketmine\math\Vector3 $clickVector, ?\pocketmine\player\Player $player = null) : boolrecalculateCollisionBoxes() protected
php
protected function recalculateCollisionBoxes() : arraysetDamage()
php
public function setDamage(int $damage) : self