Class HytaleWorldGenProvider.WorldGenBuilderCodec

java.lang.Object
com.hypixel.hytale.codec.builder.BuilderCodec<HytaleWorldGenProvider>
com.hypixel.hytale.server.worldgen.HytaleWorldGenProvider.WorldGenBuilderCodec
All Implemented Interfaces:
Codec<HytaleWorldGenProvider>, DirectDecodeCodec<HytaleWorldGenProvider>, InheritCodec<HytaleWorldGenProvider>, RawJsonCodec<HytaleWorldGenProvider>, RawJsonInheritCodec<HytaleWorldGenProvider>, SchemaConvertable<HytaleWorldGenProvider>, ValidatableCodec<HytaleWorldGenProvider>
Enclosing class:
HytaleWorldGenProvider

public static class HytaleWorldGenProvider.WorldGenBuilderCodec extends BuilderCodec<HytaleWorldGenProvider>
Overrides the BuilderCodec to provide a different DefaultValue than is used for deserialization. This allows new instances of the HytaleWorldGenProvider to be configured with the latest version for the world generator type, whereas deserialized instances will retain the 'min' version if the deserialization data is missing an explicit version field. In other words: New worlds are created with the latest world-gen asset version. Existing worlds stay at the version they were originally created with.