Contents
Class HytaleAssetsWorldGenProvider
java.lang.Object
com.hypixel.hytale.builtin.worldgen.HytaleAssetsWorldGenProvider
- All Implemented Interfaces:
IWorldGenProvider, StagedWorldGenProvider
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface StagedWorldGenProvider
StagedWorldGenProvider.Candidate, StagedWorldGenProvider.Installer -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BuilderCodec<HytaleAssetsWorldGenProvider> static final Stringstatic final Stringstatic final BuilderCodec<HytaleAssetsWorldGenProvider> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionBuilds a complete candidate without changing the installed snapshot and generator pair.buildCandidate(WorldGenMembershipSnapshot snapshot) Creates a generator and transfers ownership to the caller.booleaninstallCandidate(HytaleAssetsWorldGenProvider.PublishedBuild candidate, StagedWorldGenProvider.Installer installer) booleaninstallCandidate(StagedWorldGenProvider.Candidate candidate, StagedWorldGenProvider.Installer installer) Attempts to install a candidate and takes responsibility for its generator.toString()
-
Field Details
-
ID
- See Also:
-
DEFAULT_CONFIG
- See Also:
-
CODEC
-
LEGACY_CODEC
-
-
Constructor Details
-
HytaleAssetsWorldGenProvider
public HytaleAssetsWorldGenProvider() -
HytaleAssetsWorldGenProvider
-
-
Method Details
-
getConfig
-
getGenerator
Description copied from interface:IWorldGenProviderCreates a generator and transfers ownership to the caller. The caller must shut down the generator if it does not install it into a world. A successful world installation transfers ownership to that world.- Specified by:
getGeneratorin interfaceIWorldGenProvider- Returns:
- the new generator.
- Throws:
WorldGenLoadException- if the provider cannot create the generator.
-
buildCandidate
@Nonnull public HytaleAssetsWorldGenProvider.PublishedBuild buildCandidate() throws WorldGenLoadExceptionBuilds a complete candidate without changing the installed snapshot and generator pair.- Specified by:
buildCandidatein interfaceStagedWorldGenProvider- Throws:
WorldGenLoadException
-
buildCandidate
@Nonnull public HytaleAssetsWorldGenProvider.PublishedBuild buildCandidate(@Nonnull WorldGenMembershipSnapshot snapshot) throws WorldGenLoadException - Throws:
WorldGenLoadException
-
installCandidate
public boolean installCandidate(@Nonnull StagedWorldGenProvider.Candidate candidate, @Nonnull StagedWorldGenProvider.Installer installer) throws WorldMapLoadException Description copied from interface:StagedWorldGenProviderAttempts to install a candidate and takes responsibility for its generator. The implementation must shut down a rejected candidate or a candidate whose installation fails. A successful installation transfers ownership to the installer.- Specified by:
installCandidatein interfaceStagedWorldGenProvider- Throws:
WorldMapLoadException
-
installCandidate
public boolean installCandidate(@Nonnull HytaleAssetsWorldGenProvider.PublishedBuild candidate, @Nonnull StagedWorldGenProvider.Installer installer) throws WorldMapLoadException - Throws:
WorldMapLoadException
-
getPublishedBuild
-
toString
-