FormatConverter
in package
Table of Contents
- $backupPath : string
- $chunksPerProgressUpdate : int
- $logger : Logger
- $newProvider : WritableWorldProviderManagerEntry
- $oldProvider : WorldProvider
- __construct() : mixed
- execute() : WritableWorldProvider
- getBackupPath() : string
- convertTerrain() : void
- generateNew() : WritableWorldProvider
- populateLevelData() : void
Properties
$backupPath
private
string
$backupPath
$chunksPerProgressUpdate
private
int
$chunksPerProgressUpdate
$logger
private
Logger
$logger
$newProvider
private
WritableWorldProviderManagerEntry
$newProvider
$oldProvider
private
WorldProvider
$oldProvider
Methods
__construct()
public
__construct(WorldProvider $oldProvider, WritableWorldProviderManagerEntry $newProvider, string $backupPath, Logger $logger[, int $chunksPerProgressUpdate = 256 ]) : mixed
Parameters
- $oldProvider : WorldProvider
- $newProvider : WritableWorldProviderManagerEntry
- $backupPath : string
- $logger : Logger
- $chunksPerProgressUpdate : int = 256
Return values
mixed —execute()
public
execute() : WritableWorldProvider
Return values
WritableWorldProvider —getBackupPath()
public
getBackupPath() : string
Return values
string —convertTerrain()
private
convertTerrain(WritableWorldProvider $new) : void
Parameters
- $new : WritableWorldProvider
Return values
void —generateNew()
private
generateNew() : WritableWorldProvider
Return values
WritableWorldProvider —populateLevelData()
private
populateLevelData(WorldData $data) : void
Parameters
- $data : WorldData