PHP Class pocketmine\block\Fire

Inheritance: extends Flowable
Exibir arquivo Open project: iTXTech/Genisys Class Usage Examples

Protected Properties

Property Type Description
$id

Public Methods

Method Description
__construct ( $meta )
canBeReplaced ( )
getDrops ( Item $item ) : array
getLightLevel ( )
getName ( ) : string
getTickRate ( ) : integer
hasEntityCollision ( )
isBreakable ( Item $item )
onEntityCollide ( Entity $entity )
onUpdate ( $type )

Private Methods

Method Description
getChanceOfNeighborsEncouragingFire ( Block $block )
tryToCatchBlockOnFire ( Block $block, integer $bound, integer $damage ) *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);

Method Details

__construct() public method

public __construct ( $meta )

canBeReplaced() public method

public canBeReplaced ( )

getDrops() public method

public getDrops ( Item $item ) : array
$item pocketmine\item\Item
return array

getLightLevel() public method

public getLightLevel ( )

getName() public method

public getName ( ) : string
return string

getTickRate() public method

public getTickRate ( ) : integer
return integer

hasEntityCollision() public method

public hasEntityCollision ( )

isBreakable() public method

public isBreakable ( Item $item )
$item pocketmine\item\Item

onEntityCollide() public method

public onEntityCollide ( Entity $entity )
$entity pocketmine\entity\Entity

onUpdate() public method

public onUpdate ( $type )

Property Details

$id protected_oe property

protected $id