mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-20 07:39:42 +00:00
Migrate all but two remaining legacy enums to native PHP 8.1 enums
This commit is contained in:
@@ -29,12 +29,7 @@ use pocketmine\player\Player;
|
||||
|
||||
class Medicine extends Item implements ConsumableItem{
|
||||
|
||||
private MedicineType $medicineType;
|
||||
|
||||
public function __construct(ItemIdentifier $identifier, string $name){
|
||||
$this->medicineType = MedicineType::EYE_DROPS();
|
||||
parent::__construct($identifier, $name);
|
||||
}
|
||||
private MedicineType $medicineType = MedicineType::EYE_DROPS;
|
||||
|
||||
protected function describeState(RuntimeDataDescriber $w) : void{
|
||||
$w->medicineType($this->medicineType);
|
||||
|
Reference in New Issue
Block a user