Merge pull request #3 from SuperMaXAleX/patch-2
Update Elytra.php with good values.
This commit is contained in:
commit
3eac7b4644
1 changed files with 16 additions and 27 deletions
|
@ -1,35 +1,24 @@
|
|||
<?php
|
||||
|
||||
|
||||
namespace Ad5001\Elytra;
|
||||
|
||||
|
||||
|
||||
use pocketmine\Server;
|
||||
|
||||
|
||||
use pocketmine\Player;
|
||||
|
||||
|
||||
use pocketmine\item\Armor;
|
||||
|
||||
|
||||
use Ad5001\Elytra\Main;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
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