PHP Class pocketmine\block\Liquid

Inheritance: extends Transparent
Mostra file Open project: iTXTech/Genisys Class Usage Examples

Public Properties

Property Type Description
$adjacentSources
$flowCost
$isOptimalFlowDirection

Public Methods

Method Description
addVelocityToEntity ( Entity $entity, Vector3 $vector )
canBeReplaced ( )
getBoundingBox ( )
getDrops ( Item $item ) : array
getFlowVector ( )
getFluidHeightPercent ( )
getHardness ( )
hasEntityCollision ( )
isBreakable ( Item $item )
isSolid ( )
onUpdate ( $type )
tickRate ( ) : integer

Protected Methods

Method Description
getEffectiveFlowDecay ( Vector3 $pos )
getFlowDecay ( Vector3 $pos )
triggerLavaMixEffects ( Vector3 $pos ) Creates fizzing sound and smoke. Used when lava flows over block or mixes with water.

Private Methods

Method Description
calculateFlowCost ( Block $block, $accumulatedCost, $previousDirection )
checkForHarden ( )
flowIntoBlock ( Block $block, $newFlowDecay )
getOptimalFlowDirections ( )
getSmallestFlowDecay ( Vector3 $pos, $decay )

Method Details

addVelocityToEntity() public method

public addVelocityToEntity ( Entity $entity, Vector3 $vector )
$entity pocketmine\entity\Entity
$vector pocketmine\math\Vector3

canBeReplaced() public method

public canBeReplaced ( )

getBoundingBox() public method

public getBoundingBox ( )

getDrops() public method

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

getEffectiveFlowDecay() protected method

protected getEffectiveFlowDecay ( Vector3 $pos )
$pos pocketmine\math\Vector3

getFlowDecay() protected method

protected getFlowDecay ( Vector3 $pos )
$pos pocketmine\math\Vector3

getFlowVector() public method

public getFlowVector ( )

getFluidHeightPercent() public method

getHardness() public method

public getHardness ( )

hasEntityCollision() public method

public hasEntityCollision ( )

isBreakable() public method

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

isSolid() public method

public isSolid ( )

onUpdate() public method

public onUpdate ( $type )

tickRate() public method

public tickRate ( ) : integer
return integer

triggerLavaMixEffects() protected method

Creates fizzing sound and smoke. Used when lava flows over block or mixes with water.
protected triggerLavaMixEffects ( Vector3 $pos )
$pos pocketmine\math\Vector3

Property Details

$adjacentSources public_oe property

public $adjacentSources

$flowCost public_oe property

public $flowCost

$isOptimalFlowDirection public_oe property

public $isOptimalFlowDirection