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

Public Member Functions

 __construct (Entity $entity, $force, bool $dropItem)
 
 setDropItem (bool $dropItem)
 
 dropItem ()
 
 getForce ()
 
 setForce ($force)
 
 isBlockBreaking ()
 
 setBlockBreaking ($affectsBlocks)
 
- 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

 $force
 
- Protected Attributes inherited from EntityEvent
 $entity
 
- Protected Attributes inherited from Event
 $eventName = null
 

Detailed Description

Called when a entity decides to explode

Constructor & Destructor Documentation

◆ __construct()

__construct ( Entity  $entity,
  $force,
bool  $dropItem 
)
Parameters
Entity$entity
float$force
bool$dropItem
42  {
43  $this->entity = $entity;
44  $this->force = $force;
45  $this->blockBreaking = true;
46  $this->dropItem = $dropItem;
47  }

Member Function Documentation

◆ dropItem()

dropItem ( )
Returns
bool
59  : bool{
60  return $this->dropItem;
61  }

◆ getForce()

getForce ( )
Returns
float
66  {
67  return $this->force;
68  }

◆ isBlockBreaking()

isBlockBreaking ( )
Returns
bool
80  {
81  return $this->blockBreaking;
82  }

◆ setBlockBreaking()

setBlockBreaking (   $affectsBlocks)
Parameters
bool$affectsBlocks
87  {
88  $this->blockBreaking = (bool) $affectsBlocks;
89  }

◆ setDropItem()

setDropItem ( bool  $dropItem)
Parameters
bool$dropItem
52  {
53  $this->dropItem = $dropItem;
54  }

◆ setForce()

setForce (   $force)
Parameters
$force
73  {
74  $this->force = (float) $force;
75  }

Field Documentation

◆ $force

$force
protected

◆ $handlerList

$handlerList = null
static

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