public interface IForgeWorldType
Modifier and Type | Method and Description |
---|---|
default ChunkGenerator<?> |
createChunkGenerator(World world) |
default <T extends IArea,C extends IExtendedNoiseRandom<T>> |
getBiomeLayer(IAreaFactory<T> parentLayer,
OverworldGenSettings chunkSettings,
java.util.function.LongFunction<C> contextFactory)
Allows modifying the
IAreaFactory used for this type's biome
generation. |
default float |
getCloudHeight()
Get the height to render the clouds for this world type
|
default double |
getHorizon(World world) |
default WorldType |
getWorldType() |
default boolean |
handleSlimeSpawnReduction(java.util.Random random,
IWorld world) |
default void |
onCustomizeButton(Minecraft mc,
CreateWorldScreen gui)
Called when the 'Customize' button is pressed on world creation GUI
|
default void |
onGUICreateWorldPress()
Called when 'Create New World' button is pressed before starting game
|
default double |
voidFadeMagnitude() |
default WorldType getWorldType()
default void onGUICreateWorldPress()
default void onCustomizeButton(Minecraft mc, CreateWorldScreen gui)
mc
- The Minecraft instancegui
- the createworld GUIdefault boolean handleSlimeSpawnReduction(java.util.Random random, IWorld world)
default double getHorizon(World world)
default double voidFadeMagnitude()
default float getCloudHeight()
default ChunkGenerator<?> createChunkGenerator(World world)
default <T extends IArea,C extends IExtendedNoiseRandom<T>> IAreaFactory<T> getBiomeLayer(IAreaFactory<T> parentLayer, OverworldGenSettings chunkSettings, java.util.function.LongFunction<C> contextFactory)
IAreaFactory
used for this type's biome
generation.T
- The type of IArea
.C
- The type of IContextExtended
.parentLayer
- The parent layer to feed into any layer you returnchunkSettings
- The OverworldGenSettings
used to create the
GenLayerBiome
.contextFactory
- A LongFunction
factory to create contexts of
the supplied size.IAreaFactory
that representing the Biomes to be generated.GenLayerBiome}