powered ? BlockLegacyMetadata::REDSTONE_RAIL_FLAG_POWERED : 0); } public function readStateFromData(int $id, int $stateMeta) : void{ parent::readStateFromData($id, $stateMeta); $this->powered = ($stateMeta & BlockLegacyMetadata::REDSTONE_RAIL_FLAG_POWERED) !== 0; } protected function getConnectionsFromMeta(int $meta) : ?array{ return self::CONNECTIONS[$meta & ~BlockLegacyMetadata::REDSTONE_RAIL_FLAG_POWERED] ?? null; } }