public abstract class Biome
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected ResourceName |
name |
| Constructor and Description |
|---|
Biome(ResourceName name) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canTreeGrow(IWorld world,
IChunk chunk,
int x,
int y) |
long |
getBiomeSeed(IWorld world) |
TileState |
getFillerTile(IWorld world,
IChunk chunk,
int x,
int y) |
float |
getFlowerChance() |
abstract java.util.List<BiomeLevel> |
getGenerationLevels(IWorld world) |
float |
getLakeChance(IWorld world,
IChunk chunk) |
ResourceName |
getName() |
float |
getPebbleChance() |
int |
getSkyColor(int defaultColor)
The sky color to render the background with.
|
abstract TileState |
getState(IWorld world,
IChunk chunk,
int x,
int y,
TileLayer layer,
INoiseGen noise,
int surfaceHeight) |
Biome |
getVariationToGenerate(IWorld world,
int x,
int y,
int surfaceHeight,
java.util.Random random) |
abstract int |
getWeight(IWorld world) |
boolean |
hasGrasslandDecoration() |
boolean |
hasUndergroundFeatures(IWorld world,
IChunk chunk) |
Biome |
register() |
boolean |
renderBackground(IGameInstance game,
IAssetManager manager,
IRenderer g,
IWorld world,
AbstractPlayerEntity player,
double width,
double height)
Renders the background of the biome.
|
void |
renderForeground(IGameInstance game,
IAssetManager manager,
IRenderer g,
IWorld world,
AbstractPlayerEntity player,
float scale)
Renders the foreground of the biome.
|
boolean |
shouldGenerateInWorld(IWorld world) |
protected final ResourceName name
public Biome(ResourceName name)
public abstract TileState getState(IWorld world, IChunk chunk, int x, int y, TileLayer layer, INoiseGen noise, int surfaceHeight)
public abstract java.util.List<BiomeLevel> getGenerationLevels(IWorld world)
public abstract int getWeight(IWorld world)
public long getBiomeSeed(IWorld world)
public ResourceName getName()
public Biome register()
public boolean hasGrasslandDecoration()
public float getFlowerChance()
public float getPebbleChance()
public boolean renderBackground(IGameInstance game, IAssetManager manager, IRenderer g, IWorld world, AbstractPlayerEntity player, double width, double height)
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 world IRenderer.getWidthInWorld().height - The height of the screen in the world IRenderer.getHeightInWorld().public void renderForeground(IGameInstance game, IAssetManager manager, IRenderer g, IWorld world, AbstractPlayerEntity player, float scale)
game - The game instance.manager - The asset manager.g - The renderer.world - The world.player - The client player.scale - The world scale IRenderer.getWorldScale().public int getSkyColor(int defaultColor)
renderBackground(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).defaultColor - The color which would be rendered by default.public Biome getVariationToGenerate(IWorld world, int x, int y, int surfaceHeight, java.util.Random random)
public boolean shouldGenerateInWorld(IWorld world)