mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 10:53:05 +00:00
Split some block variants into their own classes where behaviour differs
This commit is contained in:
@ -23,7 +23,17 @@ declare(strict_types=1);
|
||||
|
||||
namespace pocketmine\block;
|
||||
|
||||
class Purpur extends Quartz{
|
||||
use pocketmine\item\TieredTool;
|
||||
|
||||
class Purpur extends Solid{
|
||||
|
||||
public function getToolType() : int{
|
||||
return BlockToolType::TYPE_PICKAXE;
|
||||
}
|
||||
|
||||
public function getToolHarvestLevel() : int{
|
||||
return TieredTool::TIER_WOODEN;
|
||||
}
|
||||
|
||||
public function getHardness() : float{
|
||||
return 1.5;
|
||||
@ -32,4 +42,8 @@ class Purpur extends Quartz{
|
||||
public function getBlastResistance() : float{
|
||||
return 30;
|
||||
}
|
||||
|
||||
public function getStateBitmask() : int{
|
||||
return 0b1100; //HACK: needs to be consistent for blocks with the same ID :(
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user