Property | Type | Description | |
---|---|---|---|
$activateTime | |||
$canActivate |
Method | Description | |
---|---|---|
__construct ( $meta ) | ||
checkActivation ( ) | ||
getHardness ( ) | ||
getResistance ( ) | ||
hasEntityCollision ( ) | ||
isActivated ( |
||
onBreak ( |
||
onEntityCollide ( |
||
onUpdate ( $type ) | ||
place ( |
*public function isCollided(){ foreach($this->getLevel()->getEntities() as $p){ $blocks = $p->getBlocksAround(); if(isset($blocks[Level::blockHash($this->x, $this->y, $this->z)])) return true; } return false; } |
public onEntityCollide ( |
||
$entity |
public place ( |
||
$item | ||
$block | ||
$target | ||
$player |