Skip to content

AgeableTrait ​

trait · pocketmine\block\utils\AgeableTrait · source

This trait is used for blocks that have an age property. Need to add to the block the constant MAX_AGE.

Properties ​

$age protected ​

php
protected int $age

Methods ​

describeBlockOnlyState() protected ​

php
protected function describeBlockOnlyState(\pocketmine\data\runtime\RuntimeDataDescriber $w) : void

getAge() ​

php
public function getAge() : int

getMaxAge() ​

php
public function getMaxAge() : int

setAge() ​

php
public function setAge(int $age) : self

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