Enchantment: Implement Silk Touch (#1912)

This commit is contained in:
Dylan K. Taylor
2018-01-14 13:37:27 +00:00
committed by GitHub
parent 96f6362117
commit 8d7c65585c
18 changed files with 92 additions and 2 deletions

View File

@ -278,6 +278,10 @@ abstract class Door extends Transparent{
return [];
}
public function isAffectedBySilkTouch() : bool{
return false;
}
public function getAffectedBlocks() : array{
if(($this->getDamage() & 0x08) === 0x08){
$down = $this->getSide(Vector3::SIDE_DOWN);