Update Elytra.php with good values.
This commit is contained in:
parent
ad9cdc84c6
commit
7f330a3b45
1 changed files with 19 additions and 30 deletions
|
@ -1,35 +1,24 @@
|
|||
<?php
|
||||
//From Elywing.
|
||||
|
||||
namespace pocketmine\item;
|
||||
|
||||
|
||||
namespace Ad5001\Elytra;
|
||||
|
||||
|
||||
|
||||
use pocketmine\Server;
|
||||
|
||||
|
||||
use pocketmine\Player;
|
||||
|
||||
|
||||
use pocketmine\item\Armor;
|
||||
|
||||
|
||||
use Ad5001\Elytra\Main;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
class Elytra extends Armor {
|
||||
|
||||
class Elytra extends Armor{
|
||||
|
||||
public function __construct($meta = 0, $count = 1){
|
||||
parent::__construct(444, $meta, $count, "Elytra");
|
||||
parent::__construct(444, $meta, $count, "Elytra Wings");
|
||||
}
|
||||
|
||||
public function getArmorType(){
|
||||
return Armor::TYPE_CHESTPLATE;
|
||||
}
|
||||
|
||||
public function getMaxDurability(){
|
||||
return 431;
|
||||
}
|
||||
|
||||
|
||||
public function isChestplate(){
|
||||
return true;
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue