Skip to content

BaseSign ​

abstract class · pocketmine\block\BaseSign · source

Extends Transparent
Implements WoodMaterial

Properties ​

$backText protected ​

php
protected \pocketmine\block\utils\SignText $backText

$editorEntityRuntimeId protected ​

php
protected ?int $editorEntityRuntimeId

$text protected ​

php
protected \pocketmine\block\utils\SignText $text

Methods ​

__construct() ​

php
public function __construct(\pocketmine\block\BlockIdentifier $idInfo, string $name, \pocketmine\block\BlockTypeInfo $typeInfo, \pocketmine\block\utils\WoodType $woodType, \Closure $asItemCallback)

asItem() ​

php
public function asItem() : \pocketmine\item\Item

getEditorEntityRuntimeId() ​

php
public function getEditorEntityRuntimeId() : ?int

Sets 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() ​

php
public function getFaceText(bool $frontFace) : \pocketmine\block\utils\SignText

getFacingDegrees() protected ​

php
protected function getFacingDegrees() : float

TODO: make this abstract (BC break)

getFuelTime() ​

php
public function getFuelTime() : int

getHitboxCenter() protected ​

php
protected function getHitboxCenter() : \pocketmine\math\Vector3

Returns the center of the sign's hitbox. Used to decide which face of the sign to open when a player interacts.

getMaxStackSize() ​

php
public function getMaxStackSize() : int

getSupportType() ​

php
public function getSupportType(int $facing) : \pocketmine\block\utils\SupportType

getSupportingFace() protected ​

php
abstract protected function getSupportingFace() : int

getText() ​

php
public function getText() : \pocketmine\block\utils\SignText

Deprecated

Deprecated.

Returns an object containing information about the sign text.

isSolid() ​

php
public function isSolid() : bool

isWaxed() ​

php
public function isWaxed() : bool

Returns whether the sign has been waxed using a honeycomb. If true, the sign cannot be edited by a player.

onInteract() ​

php
public function onInteract(\pocketmine\item\Item $item, int $face, \pocketmine\math\Vector3 $clickVector, ?\pocketmine\player\Player $player = null, array &$returnedItems = []) : bool

onNearbyBlockChange() ​

php
public function onNearbyBlockChange() : void

onPostPlace() ​

php
public function onPostPlace() : void

place() ​

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) : bool

readStateFromWorld() ​

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

recalculateCollisionBoxes() protected ​

php
protected function recalculateCollisionBoxes() : array

setEditorEntityRuntimeId() ​

php
public function setEditorEntityRuntimeId(?int $editorEntityRuntimeId) : self

setFaceText() ​

php
public function setFaceText(bool $frontFace, \pocketmine\block\utils\SignText $text) : self

setText() ​

php
public function setText(\pocketmine\block\utils\SignText $text) : self

Deprecated

Deprecated.

setWaxed() ​

php
public function setWaxed(bool $waxed) : self

updateFaceText() ​

php
public function updateFaceText(\pocketmine\player\Player $author, bool $frontFace, \pocketmine\block\utils\SignText $text) : bool

Called by the player controller (network session) to update the sign text, firing events as appropriate.

updateText() ​

php
public function updateText(\pocketmine\player\Player $author, \pocketmine\block\utils\SignText $text) : bool

Deprecated

Deprecated.

writeStateToWorld() ​

php
public function writeStateToWorld() : void

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