Class HytaleGenerator
java.lang.Object
com.hypixel.hytale.server.core.plugin.PluginBase
com.hypixel.hytale.server.core.plugin.JavaPlugin
com.hypixel.hytale.builtin.hytalegenerator.plugin.HytaleGenerator
- All Implemented Interfaces:
CommandOwner
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate AssetManagerprivate Runnableprivate final Semaphoreprivate intprivate ThreadPoolExecutorprivate final Map<ChunkRequest.GeneratorProfile, ChunkGenerator> private ExecutorServiceFields inherited from class com.hypixel.hytale.server.core.plugin.PluginBase
METRICS_REGISTRY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateStagedChunkGenerator(ChunkRequest.GeneratorProfile generatorProfile, WorldStructureAsset worldStructureAsset, SettingsAsset settingsAsset) getAllPossibleRuntimeIndices(List<BiomeType> biomes) private static intgetConcurrency(SettingsAsset settingsAsset) private ChunkGeneratorprivate voidloadExecutors(SettingsAsset settingsAsset) private voidprotected voidsetup()protected voidstart()submitChunkRequest(ChunkRequest request) Methods inherited from class com.hypixel.hytale.server.core.plugin.JavaPlugin
getClassLoader, getFile, getType, start0Methods inherited from class com.hypixel.hytale.server.core.plugin.PluginBase
getAssetRegistry, getBasePermission, getBlockStateRegistry, getChunkStoreRegistry, getClientFeatureRegistry, getCodecRegistry, getCodecRegistry, getCodecRegistry, getCommandRegistry, getDataDirectory, getEntityRegistry, getEntityStoreRegistry, getEventRegistry, getIdentifier, getLogger, getManifest, getName, getState, getTaskRegistry, isDisabled, isEnabled, preLoad, setup0, shutdown, shutdown0, withConfig, withConfig
-
Field Details
-
assetManager
-
assetReloadListener
-
generators
-
chunkGenerationSemaphore
-
concurrency
private int concurrency -
mainExecutor
-
concurrentExecutor
-
-
Constructor Details
-
HytaleGenerator
-
-
Method Details
-
start
protected void start()- Overrides:
startin classPluginBase
-
submitChunkRequest
-
setup
protected void setup()- Overrides:
setupin classPluginBase
-
createStagedChunkGenerator
@Nonnull public NStagedChunkGenerator createStagedChunkGenerator(@Nonnull ChunkRequest.GeneratorProfile generatorProfile, @Nonnull WorldStructureAsset worldStructureAsset, @Nonnull SettingsAsset settingsAsset) -
getAllPossibleRuntimeIndices
-
getGenerator
-
loadExecutors
-
getConcurrency
-
reloadGenerators
private void reloadGenerators()
-