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

Public Member Functions

 __construct (Living $entity, array $drops=[])
 
 getEntity ()
 
 getDrops ()
 
 setDrops (array $drops)
 
- Public Member Functions inherited from EntityEvent
 getEntity ()
 
- Public Member Functions inherited from Event
 getEventName ()
 
 getHandlers ()
 

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 ( Living  $entity,
array  $drops = [] 
)
Parameters
Living$entity
Item[]$drops
38  {
39  $this->entity = $entity;
40  $this->drops = $drops;
41  }

Member Function Documentation

◆ getDrops()

getDrops ( )
Returns
[]
53  {
54  return $this->drops;
55  }

◆ getEntity()

getEntity ( )
Returns
Living
46  {
47  return $this->entity;
48  }

◆ setDrops()

setDrops ( array  $drops)
Parameters
Item[]$drops
60  {
61  $this->drops = $drops;
62  }

Field Documentation

◆ $handlerList

$handlerList = null
static

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