Documentation

Explosion
in package

Table of Contents

$affectedBlocks  : array<string|int, Block>
$size  : float
$source  : Position
$stepLen  : float
$world  : World
$rays  : int
$subChunkExplorer  : SubChunkExplorer
$what  : Entity|Block|null
__construct()  : mixed
explodeA()  : bool
Calculates which blocks will be destroyed by this explosion. If explodeB() is called without calling this, no blocks will be destroyed.
explodeB()  : bool
Executes the explosion's effects on the world. This includes destroying blocks (if any), harming and knocking back entities, and creating sounds and particles.

Properties

Methods

explodeA()

Calculates which blocks will be destroyed by this explosion. If explodeB() is called without calling this, no blocks will be destroyed.

public explodeA() : bool
Return values
bool

explodeB()

Executes the explosion's effects on the world. This includes destroying blocks (if any), harming and knocking back entities, and creating sounds and particles.

public explodeB() : bool
Return values
bool

Search results