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

Public Member Functions

 __construct (Position $pos, int $entityType, int $cause=self::CAUSE_MOB_SPAWNER)
 
 getPosition ()
 
 setPosition (Position $pos)
 
 getType ()
 
 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_AI_HOLDER = 0
 
const CAUSE_MOB_SPAWNER = 1
 

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 ( Position  $pos,
int  $entityType,
int  $cause = self::CAUSE_MOB_SPAWNER 
)

EntityGenerateEvent constructor.

Parameters
Position$pos
int$entityType
int$cause
46  {
47  $this->position = $pos;
48  $this->entityType = $entityType;
49  $this->cause = $cause;
50  }

Member Function Documentation

◆ getCause()

getCause ( )
Returns
int
76  : int{
77  return $this->cause;
78  }

◆ getPosition()

getPosition ( )
Returns
Position
55  {
56  return $this->position;
57  }

◆ getType()

getType ( )
Returns
int
69  : int{
70  return $this->entityType;
71  }

◆ setPosition()

setPosition ( Position  $pos)
Parameters
Position$pos
62  {
63  $this->position = $pos;
64  }

Field Documentation

◆ $handlerList

$handlerList = null
static

◆ CAUSE_AI_HOLDER

const CAUSE_AI_HOLDER = 0

◆ CAUSE_MOB_SPAWNER

const CAUSE_MOB_SPAWNER = 1

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