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
$affectedBlocks
    public
        array<string|int, Block>
    $affectedBlocks
     = []
    
    
    
$size
    public
        float
    $size
    
    
    
    
$source
    public
        Position
    $source
    
    
    
    
$stepLen
    public
        float
    $stepLen
     = 0.3
    
    
    
$world
    public
        World
    $world
    
    
    
    
$rays
    private
        int
    $rays
     = 16
    
    
    
$subChunkExplorer
    private
        SubChunkExplorer
    $subChunkExplorer
    
    
    
    
$what
    private
        Entity|Block|null
    $what
    
    
    
    
Methods
__construct()
    public
                    __construct(Position $center, float $size[, Entity|Block|null $what = null ]) : mixed
    
        Parameters
Return values
mixed —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