FallableTrait: add default implementation of tickFalling() to reduce Fallable pollution (#5350)

this is only used by concrete powder currently, so it doesn't make much sense to reimplement it in every implementor of Fallable.
This commit is contained in:
IvanCraft623
2022-10-18 10:56:21 -05:00
committed by GitHub
parent 9f6c6b2b71
commit d1d5020c53
6 changed files with 4 additions and 20 deletions

View File

@ -116,10 +116,6 @@ class SnowLayer extends Flowable implements Fallable{
}
}
public function tickFalling() : ?Block{
return null;
}
public function getDropsForCompatibleTool(Item $item) : array{
return [
VanillaItems::SNOWBALL()->setCount(max(1, (int) floor($this->layers / 2)))