Grindstone 5.46.0
Extends Transparent
Implements HorizontalFacing
Grindstone. Repairs items by combining two of the same item and removes all non-curse enchantments, giving back some experience.
The attachment state uses the same values as the bell ("standing", "hanging", "side", "multiple"), so it reuses BellAttachmentType: FLOOR = standing, CEILING = hanging, ONE_WALL = side, TWO_WALLS = multiple. Like in vanilla, a grindstone does not need a supporting block.
Methods
describeBlockOnlyState() protected
php
protected function describeBlockOnlyState(\pocketmine\data\runtime\RuntimeDataDescriber $w) : voidgetAttachmentType()
php
public function getAttachmentType() : \pocketmine\block\utils\BellAttachmentTypegetSupportType()
php
public function getSupportType(int $facing) : \pocketmine\block\utils\SupportTypeonInteract()
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() : arraysetAttachmentType()
php
public function setAttachmentType(\pocketmine\block\utils\BellAttachmentType $attachmentType) : self