Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.wither.withermod.worldgen.biome;
- import net.minecraft.block.state.IBlockState;
- import net.minecraft.world.biome.BiomeGenBase;
- public class ModBiome extends BiomeGenBase{
- public ModBiome(int id) {
- super(id);
- this.spawnableCreatureList.clear();
- }
- public ModBiome setTopFillerBlock(IBlockState topBlock, IBlockState fillerBlock){
- this.topBlock = topBlock;
- this.fillerBlock = fillerBlock;
- return this;
- }
- public ModBiome setMinMaxHeight(float minHeight, float maxHeight){
- this.minHeight = minHeight;
- this.maxHeight = maxHeight;
- return this;
- }
- public ModBiome addDecoration(EnumBiomeDecorator decorator, int amount){
- switch(decorator){
- case BIGMUSHROOM:
- this.theBiomeDecorator.bigMushroomsPerChunk = amount;
- case CACTI:
- this.theBiomeDecorator.cactiPerChunk = amount;
- case CLAY:
- this.theBiomeDecorator.clayPerChunk = amount;
- case DEADBUSH:
- this.theBiomeDecorator.deadBushPerChunk = amount;
- case FLOWERS:
- this.theBiomeDecorator.flowersPerChunk = amount;
- case GRASS:
- this.theBiomeDecorator.grassPerChunk = amount;
- case MUSHROOMS:
- this.theBiomeDecorator.mushroomsPerChunk = amount;
- case REEDS:
- this.theBiomeDecorator.reedsPerChunk = amount;
- case SAND:
- this.theBiomeDecorator.sandPerChunk = amount;
- case TREE:
- this.theBiomeDecorator.treesPerChunk = amount;
- case WATERLILY:
- this.theBiomeDecorator.waterlilyPerChunk = amount;
- break;
- default: break;
- }
- return this;
- }
- public static enum EnumBiomeDecorator{
- BIGMUSHROOM,
- CACTI,
- CLAY,
- DEADBUSH,
- FLOWERS,
- GRASS,
- MUSHROOMS,
- REEDS,
- SAND,
- TREE,
- WATERLILY;
- }
- }
Add Comment
Please, Sign In to add comment