Skip to content

NameableTrait ​

trait · pocketmine\block\tile\NameableTrait · source

This trait implements most methods in the Nameable interface. It should only be used by Tiles.

Methods ​

addAdditionalSpawnData() ​

php
public function addAdditionalSpawnData(\pocketmine\nbt\tag\CompoundTag $nbt) : void

copyDataFromItem() ​

php
public function copyDataFromItem(\pocketmine\item\Item $item) : void

getDefaultName() ​

php
abstract public function getDefaultName() : string

getName() ​

php
public function getName() : string

hasName() ​

php
public function hasName() : bool

loadName() protected ​

php
protected function loadName(\pocketmine\nbt\tag\CompoundTag $tag) : void

saveName() protected ​

php
protected function saveName(\pocketmine\nbt\tag\CompoundTag $tag) : void

setName() ​

php
public function setName(string $name) : void

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