HytaleGenerator

public class HytaleGenerator extends JavaPlugin

Class HytaleGenerator. Provides hytalegenerator functionality for the Hytale server.

java.lang.Object > JavaPlugin > HytaleGenerator

Field Summary

assetManager

private AssetManager assetManager

Field assetManager.

assetReloadListener

private Runnable assetReloadListener

Field assetReloadListener.

concurrency

private int concurrency

Field concurrency.

mainExecutor

private ExecutorService mainExecutor

Field mainExecutor.

concurrentExecutor

private ThreadPoolExecutor concurrentExecutor

Field concurrentExecutor.

generator

final ChunkGenerator generator

Field generator.

workerIndexer

final WorkerIndexer workerIndexer

Field workerIndexer.

seed

final SeedBox seed

Field seed.

materialCache

final MaterialCache materialCache

Field materialCache.

biomeMap

final BiomeMap biomeMap

Field biomeMap.

generatorBuilder

final NStagedChunkGenerator.Builder generatorBuilder

Field generatorBuilder.

allBiomes

final List allBiomes

Field allBiomes.

allRuntimes

final List allRuntimes

Field allRuntimes.

biome_bufferType

final NParametrizedBufferType biome_bufferType

Field biome_bufferType.

biomeStage

final NStage biomeStage

Field biomeStage.

biomeDistance_bufferType

final NParametrizedBufferType biomeDistance_bufferType

Field biomeDistance_bufferType.

MAX_BIOME_DISTANCE_RADIUS

final int MAX_BIOME_DISTANCE_RADIUS

Field MAX_BIOME_DISTANCE_RADIUS.

interpolationRadius

final int interpolationRadius

Field interpolationRadius.

biomeEdgeRadius

final int biomeEdgeRadius

Field biomeEdgeRadius.

maxDistance

final int maxDistance

Field maxDistance.

biomeDistanceStage

final NStage biomeDistanceStage

Field biomeDistanceStage.

terrainStage

final NStage terrainStage

Field terrainStage.

runtime

final int runtime

Field runtime.

runtimeString

final String runtimeString

Field runtimeString.

materialOutput_bufferType

final NParametrizedBufferType materialOutput_bufferType

Field materialOutput_bufferType.

entityOutput_bufferType

final NBufferType entityOutput_bufferType

Field entityOutput_bufferType.

propStage

final NStage propStage

Field propStage.

runtime2

final int runtime2

Field runtime2.

runtimeString2

final String runtimeString2

Field runtimeString2.

propStage2

final NStage propStage2

Field propStage2.

tintStage

final NStage tintStage

Field tintStage.

environmentStage

final NStage environmentStage

Field environmentStage.

bufferCapacityFactor

final double bufferCapacityFactor

Field bufferCapacityFactor.

targetViewDistance

final double targetViewDistance

Field targetViewDistance.

targetPlayerCount

final double targetPlayerCount

Field targetPlayerCount.

statsCheckpoints

final Set statsCheckpoints

Field statsCheckpoints.

worldStructureAsset

final WorldStructureAsset worldStructureAsset

Field worldStructureAsset.

settingsAsset

final SettingsAsset settingsAsset

Field settingsAsset.

newConcurrency

final int newConcurrency

Field newConcurrency.

t

final Thread t

Field t.

concurrencySetting

final int concurrencySetting

Field concurrencySetting.

availableProcessors

final int availableProcessors

Field availableProcessors.

Method Detail

start

protected void start ()

Method start.

submitChunkRequest

public CompletableFuture submitChunkRequest (@Nonnull final ChunkRequest request)

Method submitChunkRequest.

Parameters:
@Nonnull final ChunkRequest request

setup

protected void setup ()

Method setup.

createStagedChunkGenerator

public NStagedChunkGenerator createStagedChunkGenerator (@Nonnull final ChunkRequest.GeneratorProfile generatorProfile, @Nonnull final WorldStructureAsset worldStructureAsset, @Nonnull final SettingsAsset settingsAsset)

Method createStagedChunkGenerator.

Parameters:
@Nonnull final ChunkRequest.GeneratorProfile generatorProfile
@Nonnull final WorldStructureAsset worldStructureAsset
@Nonnull final SettingsAsset settingsAsset

SeedBox

public new SeedBox (generatorProfile.seed()

Method SeedBox.

Parameters:
generatorProfile.seed( generatorProfile.seed(

NParametrizedBufferType

public new NParametrizedBufferType ("Biome", bufferTypeIndexCounter++, (Class)

Method NParametrizedBufferType.

Parameters:
"Biome" "Biome"
bufferTypeIndexCounter++ bufferTypeIndexCounter++
(Class (Class

NCountedPixelBuffer

public new NCountedPixelBuffer ((Class)

Method NCountedPixelBuffer.

Parameters:
(Class (Class

NSimplePixelBuffer

public new NSimplePixelBuffer ((Class)

Method NSimplePixelBuffer.

Parameters:
(Class (Class

NVoxelBuffer

public new NVoxelBuffer ((Class)

Method NVoxelBuffer.

Parameters:
(Class (Class

NBufferType

public new NBufferType ("Entity" + materialBufferIndexCounter, bufferTypeIndexCounter++, (Class)

Method NBufferType.

Parameters:
"Entity" + materialBufferIndexCounter
bufferTypeIndexCounter++ bufferTypeIndexCounter++
(Class (Class

getAllPossibleRuntimeIndices

static Set getAllPossibleRuntimeIndices (@Nonnull final List biomes)

Method getAllPossibleRuntimeIndices.

Parameters:
@Nonnull final List biomes

getGenerator

private ChunkGenerator getGenerator (@Nonnull final ChunkRequest.GeneratorProfile profile)

Method getGenerator.

Parameters:
@Nonnull final ChunkRequest.GeneratorProfile profile

loadExecutors

private void loadExecutors (@Nonnull final SettingsAsset settingsAsset)

Method loadExecutors.

Parameters:
@Nonnull final SettingsAsset settingsAsset

ThreadPoolExecutor

public new ThreadPoolExecutor (this.concurrency, this.concurrency, 0L, TimeUnit.MILLISECONDS, new LinkedBlockingQueue()

Method ThreadPoolExecutor.

Parameters:
this.concurrency this.concurrency
0L 0L
TimeUnit.MILLISECONDS TimeUnit.MILLISECONDS
new LinkedBlockingQueue(

getConcurrency

static int getConcurrency (@Nonnull final SettingsAsset settingsAsset)

Method getConcurrency.

Parameters:
@Nonnull final SettingsAsset settingsAsset

reloadGenerators

private void reloadGenerators ()

Method reloadGenerators.

HytaleGenerator

public public HytaleGenerator (@Nonnull final JavaPluginInit init)

Method HytaleGenerator.

Parameters:
@Nonnull final JavaPluginInit init