|
| | __construct (Entity $damager, Entity $childEntity, Entity $entity, $cause, $damage) |
| |
| | getChild () |
| |
| | __construct (Entity $damager, Entity $entity, $cause, $damage, $knockBack=0.4) |
| |
| | getDamager () |
| |
| | getKnockBack () |
| |
| | setKnockBack ($knockBack) |
| |
| | __construct (Entity $entity, $cause, $damage) |
| |
| | getCause () |
| |
| | getOriginalDamage ($type=self::MODIFIER_BASE) |
| |
| | getDamage ($type=self::MODIFIER_BASE) |
| |
| | setDamage ($damage, $type=self::MODIFIER_BASE) |
| |
| | isApplicable ($type) |
| |
| | getFinalDamage () |
| |
|
| getEntity () |
| |
| | getEventName () |
| |
| | getHandlers () |
| |
|
| isCancelled () |
| |
|
| setCancelled ($value=true) |
| |
|
|
const | MODIFIER_BASE = 0 |
| |
|
const | MODIFIER_ARMOR = 1 |
| |
|
const | MODIFIER_STRENGTH = 2 |
| |
|
const | MODIFIER_WEAKNESS = 3 |
| |
|
const | MODIFIER_RESISTANCE = 4 |
| |
|
const | CAUSE_CONTACT = 0 |
| |
|
const | CAUSE_ENTITY_ATTACK = 1 |
| |
|
const | CAUSE_PROJECTILE = 2 |
| |
|
const | CAUSE_SUFFOCATION = 3 |
| |
|
const | CAUSE_FALL = 4 |
| |
|
const | CAUSE_FIRE = 5 |
| |
|
const | CAUSE_FIRE_TICK = 6 |
| |
|
const | CAUSE_LAVA = 7 |
| |
|
const | CAUSE_DROWNING = 8 |
| |
|
const | CAUSE_BLOCK_EXPLOSION = 9 |
| |
|
const | CAUSE_ENTITY_EXPLOSION = 10 |
| |
|
const | CAUSE_VOID = 11 |
| |
|
const | CAUSE_SUICIDE = 12 |
| |
|
const | CAUSE_MAGIC = 13 |
| |
|
const | CAUSE_CUSTOM = 14 |
| |
|
static | $handlerList = null |
| |
|
| addAttackerModifiers (Entity $damager) |
| |
|
| $entity |
| |
| | $eventName = null |
| |
- Parameters
-
| Entity | $damager | |
| Entity | $childEntity | |
| Entity | $entity | |
| int | $cause | |
| int|int[] | $damage |
The documentation for this class was generated from the following file:
- /Users/Kids/Desktop/Doxygen/pocketmine/event/entity/EntityDamageByChildEntityEvent.php