NetherReactor: Remove dead code

the state is not exposed anywhere, and we already remap invalid states to default now anyway.
This commit is contained in:
Dylan K. Taylor 2022-02-01 04:00:49 +00:00
parent a91e7f7202
commit 25fdf7e442
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -29,20 +29,6 @@ use pocketmine\item\VanillaItems;
class NetherReactor extends Opaque{
protected int $state = BlockLegacyMetadata::NETHER_REACTOR_INACTIVE;
protected function writeStateToMeta() : int{
return $this->state;
}
public function readStateFromData(int $id, int $stateMeta) : void{
$this->state = BlockDataSerializer::readBoundedInt("state", $stateMeta, 0, 2);
}
public function getStateBitmask() : int{
return 0b11;
}
public function getDropsForCompatibleTool(Item $item) : array{
return [
VanillaItems::IRON_INGOT()->setCount(6),