Class Biome
java.lang.Object
de.ellpeck.rockbottom.api.world.gen.biome.Biome
- Direct Known Subclasses:
BasicBiome
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanTreeGrow(IWorld world, IChunk chunk, int x, int y) longgetBiomeSeed(IWorld world) getFillerTile(IWorld world, IChunk chunk, int x, int y) floatabstract List<BiomeLevel>getGenerationLevels(IWorld world) floatgetLakeChance(IWorld world, IChunk chunk) getName()floatintgetSkyColor(int defaultColor) The sky color to render the background with.abstract TileStategetState(IWorld world, IChunk chunk, int x, int y, TileLayer layer, INoiseGen noise, int surfaceHeight) getVariationToGenerate(IWorld world, int x, int y, int surfaceHeight, Random random) abstract intbooleanbooleanhasUndergroundFeatures(IWorld world, IChunk chunk) register()booleanrenderBackground(IGameInstance game, IAssetManager manager, IRenderer g, IWorld world, AbstractPlayerEntity player, double width, double height) Renders the background of the biome.voidrenderForeground(IGameInstance game, IAssetManager manager, IRenderer g, IWorld world, AbstractPlayerEntity player, float scale) Renders the foreground of the biome.booleanshouldGenerateInWorld(IWorld world)
-
Field Details
-
name
-
-
Constructor Details
-
Biome
-
-
Method Details
-
getState
-
getGenerationLevels
-
getWeight
-
getBiomeSeed
-
getName
-
register
-
hasGrasslandDecoration
public boolean hasGrasslandDecoration() -
getFlowerChance
public float getFlowerChance() -
getPebbleChance
public float getPebbleChance() -
renderBackground
public boolean renderBackground(IGameInstance game, IAssetManager manager, IRenderer g, IWorld world, AbstractPlayerEntity player, double width, double height) Renders the background of the biome. Called during the sky rendering of the world. Returning false will cause the default sky rendering to not happen.- Parameters:
game- The game instance.manager- The asset manager.g- The renderer.world- The world.player- The client player.width- The width of the screen in the worldIRenderer.getWidthInWorld().height- The height of the screen in the worldIRenderer.getHeightInWorld().- Returns:
- false if you want the default sky rendering to not happen, true otherwise.
-
renderForeground
public void renderForeground(IGameInstance game, IAssetManager manager, IRenderer g, IWorld world, AbstractPlayerEntity player, float scale) Renders the foreground of the biome. This renders in front of all entities and tiles.- Parameters:
game- The game instance.manager- The asset manager.g- The renderer.world- The world.player- The client player.scale- The world scaleIRenderer.getWorldScale().
-
getSkyColor
public int getSkyColor(int defaultColor) The sky color to render the background with. This is done beforerenderBackground(de.ellpeck.rockbottom.api.IGameInstance, de.ellpeck.rockbottom.api.assets.IAssetManager, de.ellpeck.rockbottom.api.IRenderer, de.ellpeck.rockbottom.api.world.IWorld, de.ellpeck.rockbottom.api.entity.player.AbstractPlayerEntity, double, double).- Parameters:
defaultColor- The color which would be rendered by default.- Returns:
- The new sky color to be renderer.
-
canTreeGrow
-
getFillerTile
-
getVariationToGenerate
-
hasUndergroundFeatures
-
getLakeChance
-
shouldGenerateInWorld
-