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

Public Member Functions

 __construct (Entity $entity, Potion $potion)
 
 getEffects ()
 
 getPotion ()
 
- 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)
 

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 ( Entity  $entity,
Potion  $potion 
)

EntityDrinkPotionEvent constructor.

Parameters
Entity$entity
Potion$potion
45  {
46  $this->entity = $entity;
47  $this->potion = $potion;
48  $this->effects = $potion->getEffects();
49  }

Member Function Documentation

◆ getEffects()

getEffects ( )
Returns
array|Effect[]
54  {
55  return $this->effects;
56  }

◆ getPotion()

getPotion ( )
Returns
Potion
61  {
62  return $this->potion;
63  }

Field Documentation

◆ $handlerList

$handlerList = null
static

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