Property | Type | Description | |
---|---|---|---|
$id |
Method | Description | |
---|---|---|
__construct ( $meta ) | ||
canBeReplaced ( ) | ||
getDrops ( |
||
getLightLevel ( ) | ||
getName ( ) : string | ||
getTickRate ( ) : integer | ||
hasEntityCollision ( ) | ||
isBreakable ( |
||
onEntityCollide ( |
||
onUpdate ( $type ) |
Method | Description | |
---|---|---|
getChanceOfNeighborsEncouragingFire ( |
||
tryToCatchBlockOnFire ( |
*public function onUpdate($type){ if($type === Level::BLOCK_UPDATE_NORMAL){ for($s = 0; $s <= 5; ++$s){ $side = $this->getSide($s); if($side->getId() !== self::AIR and !($side instanceof Liquid)){ return false; } } $this->getLevel()->setBlock($this, new Air(), true); |
public onEntityCollide ( |
||
$entity |