PHP Class pocketmine\block\Liquid

Inheritance: extends Transparent
Afficher le fichier Open project: iTXTech/Genisys Class Usage Examples

Méthodes publiques

Свойство Type Description
$adjacentSources
$flowCost
$isOptimalFlowDirection

Méthodes publiques

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

Méthodes protégées

Méthode 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

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

Method Details

addVelocityToEntity() public méthode

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

canBeReplaced() public méthode

public canBeReplaced ( )

getBoundingBox() public méthode

public getBoundingBox ( )

getDrops() public méthode

public getDrops ( Item $item ) : array
$item pocketmine\item\Item
Résultat array

getEffectiveFlowDecay() protected méthode

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

getFlowDecay() protected méthode

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

getFlowVector() public méthode

public getFlowVector ( )

getFluidHeightPercent() public méthode

getHardness() public méthode

public getHardness ( )

hasEntityCollision() public méthode

public hasEntityCollision ( )

isBreakable() public méthode

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

isSolid() public méthode

public isSolid ( )

onUpdate() public méthode

public onUpdate ( $type )

tickRate() public méthode

public tickRate ( ) : integer
Résultat integer

triggerLavaMixEffects() protected méthode

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