Skip to content

Medicine ​

class · pocketmine\item\Medicine · source

Extends Item
Implements ConsumableItem

Methods ​

canStartUsingItem() ​

php
public function canStartUsingItem(\pocketmine\player\Player $player) : bool

describeState() protected ​

php
protected function describeState(\pocketmine\data\runtime\RuntimeDataDescriber $w) : void

getAdditionalEffects() ​

php
public function getAdditionalEffects() : array

getMaxStackSize() ​

php
public function getMaxStackSize() : int

getResidue() ​

php
public function getResidue() : \pocketmine\item\Item

getType() ​

php
public function getType() : \pocketmine\item\MedicineType

onConsume() ​

php
public function onConsume(\pocketmine\entity\Living $consumer) : void

setType() ​

php
public function setType(\pocketmine\item\MedicineType $type) : self

VanillaMine is a fork of PocketMine-MP, maintained by Luxury Nodes. Not affiliated with the PMMP team or Mojang.