BaseSign
Extends Transparent
Implements WoodMaterial
Properties
$backText protected
protected \pocketmine\block\utils\SignText $backText$editorEntityRuntimeId protected
protected ?int $editorEntityRuntimeId$text protected
protected \pocketmine\block\utils\SignText $textMethods
__construct()
public function __construct(\pocketmine\block\BlockIdentifier $idInfo, string $name, \pocketmine\block\BlockTypeInfo $typeInfo, \pocketmine\block\utils\WoodType $woodType, \Closure $asItemCallback)asItem()
public function asItem() : \pocketmine\item\ItemgetEditorEntityRuntimeId()
public function getEditorEntityRuntimeId() : ?intSets the runtime entity ID of the player editing this sign. Only this player will be able to edit the sign. This is used to prevent multiple players from editing the same sign at the same time, and to prevent players from editing signs they didn't place.
getFaceText()
public function getFaceText(bool $frontFace) : \pocketmine\block\utils\SignTextgetFacingDegrees() protected
protected function getFacingDegrees() : floatTODO: make this abstract (BC break)
getFuelTime()
public function getFuelTime() : intgetHitboxCenter() protected
protected function getHitboxCenter() : \pocketmine\math\Vector3Returns the center of the sign's hitbox. Used to decide which face of the sign to open when a player interacts.
getMaxStackSize()
public function getMaxStackSize() : intgetSupportType()
public function getSupportType(int $facing) : \pocketmine\block\utils\SupportTypegetSupportingFace() protected
abstract protected function getSupportingFace() : intgetText()
public function getText() : \pocketmine\block\utils\SignTextDeprecated
Deprecated.
Returns an object containing information about the sign text.
isSolid()
public function isSolid() : boolisWaxed()
public function isWaxed() : boolReturns whether the sign has been waxed using a honeycomb. If true, the sign cannot be edited by a player.
onInteract()
public function onInteract(\pocketmine\item\Item $item, int $face, \pocketmine\math\Vector3 $clickVector, ?\pocketmine\player\Player $player = null, array &$returnedItems = []) : boolonNearbyBlockChange()
public function onNearbyBlockChange() : voidonPostPlace()
public function onPostPlace() : voidplace()
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) : boolreadStateFromWorld()
public function readStateFromWorld() : \pocketmine\block\BlockrecalculateCollisionBoxes() protected
protected function recalculateCollisionBoxes() : arraysetEditorEntityRuntimeId()
public function setEditorEntityRuntimeId(?int $editorEntityRuntimeId) : selfsetFaceText()
public function setFaceText(bool $frontFace, \pocketmine\block\utils\SignText $text) : selfsetText()
public function setText(\pocketmine\block\utils\SignText $text) : selfDeprecated
Deprecated.
setWaxed()
public function setWaxed(bool $waxed) : selfupdateFaceText()
public function updateFaceText(\pocketmine\player\Player $author, bool $frontFace, \pocketmine\block\utils\SignText $text) : boolCalled by the player controller (network session) to update the sign text, firing events as appropriate.
updateText()
public function updateText(\pocketmine\player\Player $author, \pocketmine\block\utils\SignText $text) : boolDeprecated
Deprecated.
writeStateToWorld()
public function writeStateToWorld() : void