GenisysPro  for Minecraft PE/Windows 10 v1.1.x
Feature-rich server software for Minecraft PE and Windows 10 Edition
EntityExplodeEvent Class Reference

Public Member Functions

 __construct (Entity $entity, Position $position, array $blocks, $yield)
 
 getPosition ()
 
 getBlockList ()
 
 setBlockList (array $blocks)
 
 getYield ()
 
 setYield ($yield)
 
- Public Member Functions inherited from EntityEvent
 getEntity ()
 
- Public Member Functions inherited from Event
 getEventName ()
 
 getHandlers ()
 
- Public Member Functions inherited from Cancellable
 isCancelled ()
 
 setCancelled ($forceCancel=false)
 

Static Public Attributes

static $handlerList = null
 

Protected Attributes

 $position
 
 $blocks
 
 $yield
 
- Protected Attributes inherited from EntityEvent
 $entity
 
- Protected Attributes inherited from Event
 $eventName = null
 

Detailed Description

Called when a entity explodes

Constructor & Destructor Documentation

◆ __construct()

__construct ( Entity  $entity,
Position  $position,
array  $blocks,
  $yield 
)
Parameters
Entity$entity
Position$position
Block[]$blocks
float$yield
52  {
53  $this->entity = $entity;
54  $this->position = $position;
55  $this->blocks = $blocks;
56  $this->yield = $yield;
57  }

Member Function Documentation

◆ getBlockList()

getBlockList ( )
Returns
Block[]
69  {
70  return $this->blocks;
71  }

◆ getPosition()

getPosition ( )
Returns
Position
62  {
63  return $this->position;
64  }

◆ getYield()

getYield ( )
Returns
float
83  {
84  return $this->yield;
85  }

◆ setBlockList()

setBlockList ( array  $blocks)
Parameters
Block[]$blocks
76  {
77  $this->blocks = $blocks;
78  }

◆ setYield()

setYield (   $yield)
Parameters
float$yield
90  {
91  $this->yield = $yield;
92  }

Field Documentation

◆ $blocks

$blocks
protected

◆ $handlerList

$handlerList = null
static

◆ $position

$position
protected

◆ $yield

$yield
protected

The documentation for this class was generated from the following file: