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

Public Member Functions

 __construct (Entity $entity)
 
 getType ()
 
 isCreature ()
 
 isHuman ()
 
 isProjectile ()
 
 isVehicle ()
 
 isItem ()
 
- 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
 

Detailed Description

Called when a entity is despawned

Constructor & Destructor Documentation

◆ __construct()

__construct ( Entity  $entity)
Parameters
Entity$entity
42  {
43  $this->entity = $entity;
44  $this->entityType = $entity::NETWORK_ID;
45  }

Member Function Documentation

◆ getType()

getType ( )
Returns
int
50  {
51  return $this->entityType;
52  }

◆ isCreature()

isCreature ( )
Returns
bool
57  {
58  return $this->entity instanceof Creature;
59  }

◆ isHuman()

isHuman ( )
Returns
bool
64  {
65  return $this->entity instanceof Human;
66  }

◆ isItem()

isItem ( )
Returns
bool
85  {
86  return $this->entity instanceof Item;
87  }

◆ isProjectile()

isProjectile ( )
Returns
bool
71  {
72  return $this->entity instanceof Projectile;
73  }

◆ isVehicle()

isVehicle ( )
Returns
bool
78  {
79  return $this->entity instanceof Vehicle;
80  }

Field Documentation

◆ $handlerList

$handlerList = null
static

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