mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-07 12:18:46 +00:00
Potion: added getType()
This commit is contained in:
parent
6fb8ac211e
commit
f68caa878a
@ -34,6 +34,8 @@ class Potion extends Item implements ConsumableItem{
|
|||||||
$this->potionType = $potionType;
|
$this->potionType = $potionType;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function getType() : PotionType{ return $this->potionType; }
|
||||||
|
|
||||||
public function getMaxStackSize() : int{
|
public function getMaxStackSize() : int{
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user