◆ __construct()
EntityArmorChangeEvent constructor.
- Parameters
-
Entity | $entity | |
Item | $oldItem | |
Item | $newItem | |
| $slot | |
45 $this->oldItem = $oldItem;
46 $this->newItem = $newItem;
47 $this->slot = (int) $slot;
◆ getNewItem()
- Returns
- Item
61 return $this->newItem;
◆ getOldItem()
- Returns
- Item
75 return $this->oldItem;
◆ getSlot()
◆ setNewItem()
- Parameters
-
68 $this->newItem = $item;
◆ $handlerList
The documentation for this class was generated from the following file:
- src/pocketmine/event/entity/EntityArmorChangeEvent.php