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

Public Member Functions

 __construct (Creeper $creeper, Lightning $lightning=null, int $cause=self::CAUSE_LIGHTNING)
 
 getLightning ()
 
 getCause ()
 
- 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)
 

Data Fields

const CAUSE_SET_ON = 0
 
const CAUSE_SET_OFF = 1
 
const CAUSE_LIGHTNING = 2
 

Static Public Attributes

static $handlerList = null
 

Additional Inherited Members

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

Constructor & Destructor Documentation

◆ __construct()

__construct ( Creeper  $creeper,
Lightning  $lightning = null,
int  $cause = self::CAUSE_LIGHTNING 
)

CreeperPowerEvent constructor.

Parameters
Creeper$creeper
Lightning | null$lightning
int$cause
47  {
48  $this->entity = $creeper;
49  $this->lightning = $lightning;
50  $this->cause = $cause;
51  }

Member Function Documentation

◆ getCause()

getCause ( )
Returns
int
63  {
64  return $this->cause;
65  }

◆ getLightning()

getLightning ( )
Returns
Lightning
56  {
57  return $this->lightning;
58  }

Field Documentation

◆ $handlerList

$handlerList = null
static

◆ CAUSE_LIGHTNING

const CAUSE_LIGHTNING = 2

◆ CAUSE_SET_OFF

const CAUSE_SET_OFF = 1

◆ CAUSE_SET_ON

const CAUSE_SET_ON = 0

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