mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 02:42:58 +00:00
Removed damage-table mess and added API methods Item->getAttackPoints() and Item->getDefensePoints()
This commit is contained in:
@ -28,4 +28,8 @@ class DiamondLeggings extends Armor{
|
||||
public function __construct(int $meta = 0){
|
||||
parent::__construct(self::DIAMOND_LEGGINGS, $meta, "Diamond Leggings");
|
||||
}
|
||||
|
||||
public function getDefensePoints() : int{
|
||||
return 6;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user