◆ __construct()
__construct |
( |
Position |
$pos, |
|
|
int |
$entityType, |
|
|
int |
$cause = self::CAUSE_MOB_SPAWNER |
|
) |
| |
EntityGenerateEvent constructor.
- Parameters
-
Position | $pos | |
int | $entityType | |
int | $cause | |
47 $this->position = $pos;
48 $this->entityType = $entityType;
49 $this->cause = $cause;
◆ getCause()
◆ getPosition()
- Returns
- Position
56 return $this->position;
◆ getType()
- Returns
- int
70 return $this->entityType;
◆ setPosition()
- Parameters
-
63 $this->position = $pos;
◆ $handlerList
◆ 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:
- src/pocketmine/event/entity/EntityGenerateEvent.php