This commit is contained in:
Adubbz 2013-05-31 20:34:02 +10:00
parent a2e59259b4
commit 7bf9aec53a
394 changed files with 34726 additions and 34711 deletions

View File

@ -46,7 +46,7 @@ import cpw.mods.fml.common.registry.LanguageRegistry;
@Mod(modid="BiomesOPlenty", name="Biomes O' Plenty", version="0.5.4") @Mod(modid="BiomesOPlenty", name="Biomes O' Plenty", version="0.5.4")
@NetworkMod(clientSideRequired=true, serverSideRequired=false) @NetworkMod(clientSideRequired=true, serverSideRequired=false)
public class BiomesOPlenty public class BiomesOPlenty
{ {
@Instance("BiomesOPlenty") @Instance("BiomesOPlenty")
public static BiomesOPlenty instance; public static BiomesOPlenty instance;
@ -64,44 +64,48 @@ public class BiomesOPlenty
if (isClient) if (isClient)
{ {
for (String soundFile : soundFiles) try for (String soundFile : soundFiles) {
{ try
File file = new File(Minecraft.getMinecraftDir().getAbsolutePath() + "/resources/mod/streaming/" + soundFile); {
if (!file.exists()) { File file = new File(Minecraft.getMinecraftDir().getAbsolutePath() + "/resources/mod/streaming/" + soundFile);
System.out.println("[BiomesOPlenty] " + soundFile + " doesn't exist, creating..."); if (!file.exists()) {
file.getParentFile().mkdirs(); System.out.println("[BiomesOPlenty] " + soundFile + " doesn't exist, creating...");
file.createNewFile(); file.getParentFile().mkdirs();
InputStream istream = getClass().getResourceAsStream("/mods/BiomesOPlenty/audio/" + soundFile); file.createNewFile();
OutputStream out = new FileOutputStream(file); InputStream istream = getClass().getResourceAsStream("/mods/BiomesOPlenty/audio/" + soundFile);
byte[] buf = new byte[1024]; OutputStream out = new FileOutputStream(file);
int size = 0; byte[] buf = new byte[1024];
int len; int size = 0;
while ((len = istream.read(buf)) > 0) { int len;
out.write(buf, 0, len); while ((len = istream.read(buf)) > 0) {
size += len; out.write(buf, 0, len);
size += len;
}
out.close();
istream.close();
if (size == 0) {
file.delete();
}
} }
out.close();
istream.close();
if (size == 0) file.delete();
} }
} catch (Exception e)
catch (Exception e) {
{ FMLCommonHandler.instance().getFMLLogger().log(Level.WARNING, "[BiomesOPlenty] Failed to load sound file: " + soundFile);
FMLCommonHandler.instance().getFMLLogger().log(Level.WARNING, "[BiomesOPlenty] Failed to load sound file: " + soundFile); e.printStackTrace();
e.printStackTrace(); }
} }
} }
BOPConfiguration.init(event.getSuggestedConfigurationFile()); BOPConfiguration.init(event.getSuggestedConfigurationFile());
tabBiomesOPlenty = new CreativeTabsBOP(CreativeTabs.getNextID(),"tabBiomesOPlenty"); tabBiomesOPlenty = new CreativeTabsBOP(CreativeTabs.getNextID(),"tabBiomesOPlenty");
BOPPotions.init(); BOPPotions.init();
BOPBlocks.init(); BOPBlocks.init();
BOPItems.init(); BOPItems.init();
BOPLiquids.init(); BOPLiquids.init();
BOPCrafting.init(); BOPCrafting.init();
@ -117,7 +121,7 @@ public class BiomesOPlenty
{ {
AchievementHelper.init(); AchievementHelper.init();
} }
GameRegistry.registerCraftingHandler(new BOPCraft()); GameRegistry.registerCraftingHandler(new BOPCraft());
} }

View File

@ -27,52 +27,53 @@ import biomesoplenty.particles.EntitySteamFX;
import cpw.mods.fml.client.registry.RenderingRegistry; import cpw.mods.fml.client.registry.RenderingRegistry;
public class ClientProxy extends CommonProxy { public class ClientProxy extends CommonProxy {
public static Minecraft mc = Minecraft.getMinecraft(); public static Minecraft mc = Minecraft.getMinecraft();
@Override @Override
public void registerRenderers() public void registerRenderers()
{ {
RenderingRegistry.registerEntityRenderingHandler(EntityMudball.class, new RenderSnowball(Items.mudball.get(), 0)); RenderingRegistry.registerEntityRenderingHandler(EntityMudball.class, new RenderSnowball(Items.mudball.get(), 0));
RenderingRegistry.registerEntityRenderingHandler(EntityDart.class, new RenderDart()); RenderingRegistry.registerEntityRenderingHandler(EntityDart.class, new RenderDart());
//RenderingRegistry.registerEntityRenderingHandler(EntityPoisonDart.class, new RenderPoisonDart()); //RenderingRegistry.registerEntityRenderingHandler(EntityPoisonDart.class, new RenderPoisonDart());
RenderingRegistry.registerEntityRenderingHandler(EntityGlob.class, new RenderGlob(new ModelSlime(16), new ModelSlime(0), 0.25F)); RenderingRegistry.registerEntityRenderingHandler(EntityGlob.class, new RenderGlob(new ModelSlime(16), new ModelSlime(0), 0.25F));
RenderingRegistry.registerBlockHandler(new FoliageRenderer()); RenderingRegistry.registerBlockHandler(new FoliageRenderer());
RenderingRegistry.registerBlockHandler(new PlantsRenderer()); RenderingRegistry.registerBlockHandler(new PlantsRenderer());
RenderingRegistry.registerBlockHandler(new SmallBlockRenderer()); RenderingRegistry.registerBlockHandler(new SmallBlockRenderer());
//TODO: Remove upon Fluid API being integrated into Forge //TODO: Remove upon Fluid API being integrated into Forge
FluidRegistry.renderIdFluid = RenderingRegistry.getNextAvailableRenderId(); FluidRegistry.renderIdFluid = RenderingRegistry.getNextAvailableRenderId();
RenderingRegistry.registerBlockHandler(RenderBlockFluid.instance); RenderingRegistry.registerBlockHandler(RenderBlockFluid.instance);
} }
@Override @Override
public void spawnParticle(String string, double x, double y, double z) public void spawnParticle(String string, double x, double y, double z)
{ {
EntityFX entityfx = null; EntityFX entityfx = null;
if (string == "mud") if (string == "mud") {
entityfx = new EntityBreakingFX(mc.theWorld, x, y, z, Items.mudball.get(), mc.renderEngine); entityfx = new EntityBreakingFX(mc.theWorld, x, y, z, Items.mudball.get(), mc.renderEngine);
else if (string == "dart") } else if (string == "dart") {
entityfx = new EntityBreakingFX(mc.theWorld, x, y, z, Items.dart.get(), mc.renderEngine); entityfx = new EntityBreakingFX(mc.theWorld, x, y, z, Items.dart.get(), mc.renderEngine);
else if (string == "dandelion") } else if (string == "dandelion") {
entityfx = new EntityDandelionFX(mc.theWorld, x, y, z, 2.0F); entityfx = new EntityDandelionFX(mc.theWorld, x, y, z, 2.0F);
else if (string == "steam") } else if (string == "steam") {
entityfx = new EntitySteamFX(mc.theWorld, x, y, z, 0.0D, 0.0D, 0.0D); entityfx = new EntitySteamFX(mc.theWorld, x, y, z, 0.0D, 0.0D, 0.0D);
}
mc.effectRenderer.addEffect(entityfx); mc.effectRenderer.addEffect(entityfx);
} }
@Override @Override
public int addArmor(String armor) public int addArmor(String armor)
{ {
return RenderingRegistry.addNewArmourRendererPrefix(armor); return RenderingRegistry.addNewArmourRendererPrefix(armor);
} }
@Override @Override
public void renderStandardInvBlock(RenderBlocks renderblocks, Block block, int meta) public void renderStandardInvBlock(RenderBlocks renderblocks, Block block, int meta)
{ {
Tessellator tessellator = Tessellator.instance; Tessellator tessellator = Tessellator.instance;
GL11.glTranslatef(-0.5F, -0.5F, -0.5F); GL11.glTranslatef(-0.5F, -0.5F, -0.5F);

View File

@ -8,22 +8,22 @@ public class CommonProxy {
public static String ARMOR_MUD2_PNG = "/mods/BiomesOPlenty/textures/armor/mud_2.png"; public static String ARMOR_MUD2_PNG = "/mods/BiomesOPlenty/textures/armor/mud_2.png";
public static String ARMOR_AMETHYST1_PNG = "/mods/BiomesOPlenty/textures/armor/amethyst_1.png"; public static String ARMOR_AMETHYST1_PNG = "/mods/BiomesOPlenty/textures/armor/amethyst_1.png";
public static String ARMOR_AMETHYST2_PNG = "/mods/BiomesOPlenty/textures/armor/amethyst_2.png"; public static String ARMOR_AMETHYST2_PNG = "/mods/BiomesOPlenty/textures/armor/amethyst_2.png";
// Client stuff // Client stuff
public void registerRenderers() { public void registerRenderers() {
// Nothing here as the server doesn't render graphics! // Nothing here as the server doesn't render graphics!
} }
public int addArmor(String armor) public int addArmor(String armor)
{ {
return 0; return 0;
} }
public void spawnParticle(String string, double x, double y, double z) public void spawnParticle(String string, double x, double y, double z)
{ {
} }
public void renderStandardInvBlock(RenderBlocks renderblocks, Block block, int meta) public void renderStandardInvBlock(RenderBlocks renderblocks, Block block, int meta)
{ {
} }
} }

View File

@ -11,10 +11,10 @@ public class Biomes
public static Optional<? extends BiomeGenBase> badlands = Optional.absent(); public static Optional<? extends BiomeGenBase> badlands = Optional.absent();
public static Optional<? extends BiomeGenBase> bambooForest = Optional.absent(); public static Optional<? extends BiomeGenBase> bambooForest = Optional.absent();
public static Optional<? extends BiomeGenBase> bayou = Optional.absent(); public static Optional<? extends BiomeGenBase> bayou = Optional.absent();
public static Optional<? extends BiomeGenBase> beachGravel = Optional.absent(); public static Optional<? extends BiomeGenBase> beachGravel = Optional.absent();
public static Optional<? extends BiomeGenBase> beachOvergrown = Optional.absent(); public static Optional<? extends BiomeGenBase> beachOvergrown = Optional.absent();
public static Optional<? extends BiomeGenBase> birchForest = Optional.absent(); public static Optional<? extends BiomeGenBase> birchForest = Optional.absent();
public static Optional<? extends BiomeGenBase> bog = Optional.absent(); public static Optional<? extends BiomeGenBase> bog = Optional.absent();
public static Optional<? extends BiomeGenBase> borealForest = Optional.absent(); public static Optional<? extends BiomeGenBase> borealForest = Optional.absent();
@ -54,18 +54,18 @@ public class Biomes
public static Optional<? extends BiomeGenBase> moor = Optional.absent(); public static Optional<? extends BiomeGenBase> moor = Optional.absent();
public static Optional<? extends BiomeGenBase> mountain = Optional.absent(); public static Optional<? extends BiomeGenBase> mountain = Optional.absent();
public static Optional<? extends BiomeGenBase> mysticGrove = Optional.absent(); public static Optional<? extends BiomeGenBase> mysticGrove = Optional.absent();
public static Optional<? extends BiomeGenBase> netherBase = Optional.absent(); public static Optional<? extends BiomeGenBase> netherBase = Optional.absent();
public static Optional<? extends BiomeGenBase> netherGarden = Optional.absent(); public static Optional<? extends BiomeGenBase> netherGarden = Optional.absent();
public static Optional<? extends BiomeGenBase> netherDesert = Optional.absent(); public static Optional<? extends BiomeGenBase> netherDesert = Optional.absent();
public static Optional<? extends BiomeGenBase> netherLava = Optional.absent(); public static Optional<? extends BiomeGenBase> netherLava = Optional.absent();
public static Optional<? extends BiomeGenBase> netherBone = Optional.absent(); public static Optional<? extends BiomeGenBase> netherBone = Optional.absent();
public static Optional<? extends BiomeGenBase> oasis = Optional.absent(); public static Optional<? extends BiomeGenBase> oasis = Optional.absent();
public static Optional<? extends BiomeGenBase> oceanCoral = Optional.absent(); public static Optional<? extends BiomeGenBase> oceanCoral = Optional.absent();
public static Optional<? extends BiomeGenBase> oceanKelp = Optional.absent(); public static Optional<? extends BiomeGenBase> oceanKelp = Optional.absent();
public static Optional<? extends BiomeGenBase> ominousWoods = Optional.absent(); public static Optional<? extends BiomeGenBase> ominousWoods = Optional.absent();
public static Optional<? extends BiomeGenBase> orchard = Optional.absent(); public static Optional<? extends BiomeGenBase> orchard = Optional.absent();
public static Optional<? extends BiomeGenBase> originValley = Optional.absent(); public static Optional<? extends BiomeGenBase> originValley = Optional.absent();
@ -73,11 +73,11 @@ public class Biomes
public static Optional<? extends BiomeGenBase> pasture = Optional.absent(); public static Optional<? extends BiomeGenBase> pasture = Optional.absent();
public static Optional<? extends BiomeGenBase> polar = Optional.absent(); public static Optional<? extends BiomeGenBase> polar = Optional.absent();
public static Optional<? extends BiomeGenBase> prairie = Optional.absent(); public static Optional<? extends BiomeGenBase> prairie = Optional.absent();
public static Optional<? extends BiomeGenBase> promisedLandForest = Optional.absent(); public static Optional<? extends BiomeGenBase> promisedLandForest = Optional.absent();
public static Optional<? extends BiomeGenBase> promisedLandPlains = Optional.absent(); public static Optional<? extends BiomeGenBase> promisedLandPlains = Optional.absent();
public static Optional<? extends BiomeGenBase> promisedLandSwamp = Optional.absent(); public static Optional<? extends BiomeGenBase> promisedLandSwamp = Optional.absent();
public static Optional<? extends BiomeGenBase> quagmire = Optional.absent(); public static Optional<? extends BiomeGenBase> quagmire = Optional.absent();
public static Optional<? extends BiomeGenBase> rainforest = Optional.absent(); public static Optional<? extends BiomeGenBase> rainforest = Optional.absent();
public static Optional<? extends BiomeGenBase> redwoodForest = Optional.absent(); public static Optional<? extends BiomeGenBase> redwoodForest = Optional.absent();
@ -101,7 +101,7 @@ public class Biomes
public static Optional<? extends BiomeGenBase> wasteland = Optional.absent(); public static Optional<? extends BiomeGenBase> wasteland = Optional.absent();
public static Optional<? extends BiomeGenBase> wetland = Optional.absent(); public static Optional<? extends BiomeGenBase> wetland = Optional.absent();
public static Optional<? extends BiomeGenBase> woodland = Optional.absent(); public static Optional<? extends BiomeGenBase> woodland = Optional.absent();
public static Optional<? extends BiomeGenBase> plainsNew = Optional.absent(); public static Optional<? extends BiomeGenBase> plainsNew = Optional.absent();
public static Optional<? extends BiomeGenBase> desertNew = Optional.absent(); public static Optional<? extends BiomeGenBase> desertNew = Optional.absent();
public static Optional<? extends BiomeGenBase> extremeHillsNew = Optional.absent(); public static Optional<? extends BiomeGenBase> extremeHillsNew = Optional.absent();

View File

@ -17,14 +17,14 @@ public class BlockReferences {
magicLog (Blocks.logs2, 1), magicLog (Blocks.logs2, 1),
mangroveLog (Blocks.logs2, 2), mangroveLog (Blocks.logs2, 2),
palmLog (Blocks.logs2, 3), palmLog (Blocks.logs2, 3),
redwoodLog (Blocks.logs3, 0), redwoodLog (Blocks.logs3, 0),
willowLog (Blocks.logs3, 1), willowLog (Blocks.logs3, 1),
deadLog (Blocks.logs3, 2), deadLog (Blocks.logs3, 2),
bigFlowerStem (Blocks.logs3, 3), bigFlowerStem (Blocks.logs3, 3),
pine (Blocks.logs4, 0), pine (Blocks.logs4, 0),
hellbark (Blocks.logs4, 1), hellbark (Blocks.logs4, 1),
jacaranda (Blocks.logs4, 2), jacaranda (Blocks.logs4, 2),
acaciaPlank (Blocks.planks, 0), acaciaPlank (Blocks.planks, 0),
cherryPlank (Blocks.planks, 1), cherryPlank (Blocks.planks, 1),
darkPlank (Blocks.planks, 2), darkPlank (Blocks.planks, 2),
@ -36,7 +36,7 @@ public class BlockReferences {
redwoodPlank (Blocks.planks, 8), redwoodPlank (Blocks.planks, 8),
willowPlank (Blocks.planks, 9), willowPlank (Blocks.planks, 9),
bambooThatching (Blocks.planks, 10), bambooThatching (Blocks.planks, 10),
acaciaLeaves (Blocks.leavesColorized, 0), acaciaLeaves (Blocks.leavesColorized, 0),
mangroveLeaves (Blocks.leavesColorized, 1), mangroveLeaves (Blocks.leavesColorized, 1),
palmLeaves (Blocks.leavesColorized, 2), palmLeaves (Blocks.leavesColorized, 2),
@ -44,7 +44,7 @@ public class BlockReferences {
willowLeaves (Blocks.leavesColorized, 4), willowLeaves (Blocks.leavesColorized, 4),
pineLeaves (Blocks.leavesColorized, 5), pineLeaves (Blocks.leavesColorized, 5),
hellbarkLeaves (Blocks.leavesColorized, 6), hellbarkLeaves (Blocks.leavesColorized, 6),
yellowAutumnLeaves (Blocks.leaves1, 0), yellowAutumnLeaves (Blocks.leaves1, 0),
bambooLeaves (Blocks.leaves1, 1), bambooLeaves (Blocks.leaves1, 1),
magicLeaves (Blocks.leaves1, 2), magicLeaves (Blocks.leaves1, 2),
@ -57,12 +57,12 @@ public class BlockReferences {
pinkCherryLeaves (Blocks.leaves2, 1), pinkCherryLeaves (Blocks.leaves2, 1),
mapleLeaves (Blocks.leaves2, 2), mapleLeaves (Blocks.leaves2, 2),
whiteCherryLeaves (Blocks.leaves2, 3), whiteCherryLeaves (Blocks.leaves2, 3),
appleLeaves (Blocks.leavesFruit, 3), appleLeaves (Blocks.leavesFruit, 3),
appleLeavesFruitless (Blocks.leavesFruit, 0), appleLeavesFruitless (Blocks.leavesFruit, 0),
bamboo (Blocks.bamboo, 0), bamboo (Blocks.bamboo, 0),
poisonIvyItem (Blocks.foliage, 7), poisonIvyItem (Blocks.foliage, 7),
sproutItem (Blocks.foliage, 5), sproutItem (Blocks.foliage, 5),
bushItem (Blocks.foliage, 4), bushItem (Blocks.foliage, 4),
@ -91,7 +91,7 @@ public class BlockReferences {
originSapling (Blocks.saplings, 9), originSapling (Blocks.saplings, 9),
yellowAutumnSapling (Blocks.saplings, 1), yellowAutumnSapling (Blocks.saplings, 1),
bambooSapling (Blocks.saplings, 2), bambooSapling (Blocks.saplings, 2),
mud (Blocks.mud, 0), mud (Blocks.mud, 0),
driedDirt (Blocks.driedDirt, 0), driedDirt (Blocks.driedDirt, 0),
redRock (Blocks.redRock, 0), redRock (Blocks.redRock, 0),
@ -115,18 +115,18 @@ public class BlockReferences {
redRockCobble (Blocks.redRock, 1), redRockCobble (Blocks.redRock, 1),
giantFlowerRed (Blocks.petals, 0), giantFlowerRed (Blocks.petals, 0),
giantFlowerYellow (Blocks.petals, 1), giantFlowerYellow (Blocks.petals, 1),
smallBoneSegment (Blocks.bones, 0), smallBoneSegment (Blocks.bones, 0),
mediumBoneSegment (Blocks.bones, 1), mediumBoneSegment (Blocks.bones, 1),
largeBoneSegment (Blocks.bones, 2), largeBoneSegment (Blocks.bones, 2),
kelp (Blocks.coral, 0), kelp (Blocks.coral, 0),
toadstool (Blocks.mushrooms, 0), toadstool (Blocks.mushrooms, 0),
portobello (Blocks.mushrooms, 1), portobello (Blocks.mushrooms, 1),
bluemilk (Blocks.mushrooms, 2), bluemilk (Blocks.mushrooms, 2),
glowshroom (Blocks.mushrooms, 3), glowshroom (Blocks.mushrooms, 3),
deadGrass (Blocks.plants, 0), deadGrass (Blocks.plants, 0),
desertGrass (Blocks.plants, 1), desertGrass (Blocks.plants, 1),
desertSprouts (Blocks.plants, 2), desertSprouts (Blocks.plants, 2),
@ -136,12 +136,12 @@ public class BlockReferences {
barley (Blocks.plants, 6), barley (Blocks.plants, 6),
cattail (Blocks.plants, 7), cattail (Blocks.plants, 7),
reed (Blocks.plants, 8), reed (Blocks.plants, 8),
treeMoss (Blocks.treeMoss, 0), treeMoss (Blocks.treeMoss, 0),
moss (Blocks.moss, 0), moss (Blocks.moss, 0),
willow (Blocks.willow, 0), willow (Blocks.willow, 0),
ivy (Blocks.ivy, 0), ivy (Blocks.ivy, 0),
clover (Blocks.flowers, 0), clover (Blocks.flowers, 0),
swampFlower (Blocks.flowers, 1), swampFlower (Blocks.flowers, 1),
deathbloom (Blocks.flowers, 2), deathbloom (Blocks.flowers, 2),
@ -166,11 +166,11 @@ public class BlockReferences {
this.block = block; this.block = block;
this.meta = meta; this.meta = meta;
} }
public Optional<? extends Block> getBlock() { public Optional<? extends Block> getBlock() {
return block; return block;
} }
public int getMeta() { public int getMeta() {
return meta; return meta;
} }
@ -180,24 +180,20 @@ public class BlockReferences {
{ {
Optional<? extends Block> stackblock = EnumBlocks.valueOf(string).block; Optional<? extends Block> stackblock = EnumBlocks.valueOf(string).block;
int stackmeta = EnumBlocks.valueOf(string).meta; int stackmeta = EnumBlocks.valueOf(string).meta;
if (stackmeta != 0) if (stackmeta != 0)
{
return new ItemStack(stackblock.get(), 1, stackmeta); return new ItemStack(stackblock.get(), 1, stackmeta);
}
else else
{
return new ItemStack(stackblock.get(), 1); return new ItemStack(stackblock.get(), 1);
}
} }
public static int getBlockID(String string) public static int getBlockID(String string)
{ {
Optional<? extends Block> stackblock = EnumBlocks.valueOf(string).block; Optional<? extends Block> stackblock = EnumBlocks.valueOf(string).block;
return stackblock.get().blockID; return stackblock.get().blockID;
} }
public static int getBlockMeta(String string) public static int getBlockMeta(String string)
{ {
int stackmeta = EnumBlocks.valueOf(string).meta; int stackmeta = EnumBlocks.valueOf(string).meta;

View File

@ -10,91 +10,91 @@ import com.google.common.base.Optional;
public class Blocks public class Blocks
{ {
// Worldgen Blocks // Worldgen Blocks
public static Optional<? extends Block> ash = Optional.absent(); public static Optional<? extends Block> ash = Optional.absent();
public static Optional<? extends Block> ashStone = Optional.absent(); public static Optional<? extends Block> ashStone = Optional.absent();
public static Optional<? extends Block> cragRock = Optional.absent(); public static Optional<? extends Block> cragRock = Optional.absent();
public static Optional<? extends Block> driedDirt = Optional.absent(); public static Optional<? extends Block> driedDirt = Optional.absent();
public static Optional<? extends Block> hardDirt = Optional.absent(); public static Optional<? extends Block> hardDirt = Optional.absent();
public static Optional<? extends Block> hardIce = Optional.absent(); public static Optional<? extends Block> hardIce = Optional.absent();
public static Optional<? extends Block> hardSand = Optional.absent(); public static Optional<? extends Block> hardSand = Optional.absent();
public static Optional<? extends Block> holyGrass = Optional.absent(); public static Optional<? extends Block> holyGrass = Optional.absent();
public static Optional<? extends Block> holyDirt = Optional.absent(); public static Optional<? extends Block> holyDirt = Optional.absent();
public static Optional<? extends Block> holyStone = Optional.absent(); public static Optional<? extends Block> holyStone = Optional.absent();
public static Optional<? extends Block> mud = Optional.absent(); public static Optional<? extends Block> mud = Optional.absent();
public static Optional<? extends Block> originGrass = Optional.absent(); public static Optional<? extends Block> originGrass = Optional.absent();
public static Optional<? extends Block> redRock = Optional.absent(); public static Optional<? extends Block> redRock = Optional.absent();
public static Optional<? extends Block> crystal = Optional.absent(); public static Optional<? extends Block> crystal = Optional.absent();
// Planks and logs // Planks and logs
public static Optional<? extends Block> planks = Optional.absent(); public static Optional<? extends Block> planks = Optional.absent();
public static Optional<? extends Block> logs1 = Optional.absent(); public static Optional<? extends Block> logs1 = Optional.absent();
public static Optional<? extends Block> logs2 = Optional.absent(); public static Optional<? extends Block> logs2 = Optional.absent();
public static Optional<? extends Block> logs3 = Optional.absent(); public static Optional<? extends Block> logs3 = Optional.absent();
public static Optional<? extends Block> logs4 = Optional.absent(); public static Optional<? extends Block> logs4 = Optional.absent();
// Stairs // Stairs
public static Optional<? extends Block> acaciaStairs = Optional.absent(); public static Optional<? extends Block> acaciaStairs = Optional.absent();
public static Optional<? extends Block> cherryStairs = Optional.absent(); public static Optional<? extends Block> cherryStairs = Optional.absent();
public static Optional<? extends Block> darkStairs = Optional.absent(); public static Optional<? extends Block> darkStairs = Optional.absent();
public static Optional<? extends Block> firStairs = Optional.absent(); public static Optional<? extends Block> firStairs = Optional.absent();
public static Optional<? extends Block> holyStairs = Optional.absent(); public static Optional<? extends Block> holyStairs = Optional.absent();
public static Optional<? extends Block> magicStairs = Optional.absent(); public static Optional<? extends Block> magicStairs = Optional.absent();
public static Optional<? extends Block> mangroveStairs = Optional.absent(); public static Optional<? extends Block> mangroveStairs = Optional.absent();
public static Optional<? extends Block> palmStairs = Optional.absent(); public static Optional<? extends Block> palmStairs = Optional.absent();
public static Optional<? extends Block> redwoodStairs = Optional.absent(); public static Optional<? extends Block> redwoodStairs = Optional.absent();
public static Optional<? extends Block> willowStairs = Optional.absent(); public static Optional<? extends Block> willowStairs = Optional.absent();
public static Optional<? extends Block> redCobbleStairs = Optional.absent(); public static Optional<? extends Block> redCobbleStairs = Optional.absent();
public static Optional<? extends Block> redBricksStairs = Optional.absent(); public static Optional<? extends Block> redBricksStairs = Optional.absent();
public static Optional<? extends Block> mudBricksStairs = Optional.absent(); public static Optional<? extends Block> mudBricksStairs = Optional.absent();
public static Optional<? extends Block> holyCobbleStairs = Optional.absent(); public static Optional<? extends Block> holyCobbleStairs = Optional.absent();
public static Optional<? extends Block> holyBricksStairs = Optional.absent(); public static Optional<? extends Block> holyBricksStairs = Optional.absent();
public static Optional<? extends Block> pineStairs = Optional.absent(); public static Optional<? extends Block> pineStairs = Optional.absent();
public static Optional<? extends Block> hellBarkStairs = Optional.absent(); public static Optional<? extends Block> hellBarkStairs = Optional.absent();
public static Optional<? extends Block> jacarandaStairs = Optional.absent(); public static Optional<? extends Block> jacarandaStairs = Optional.absent();
// Slabs // Slabs
public static Optional<? extends BlockHalfSlab> woodenSingleSlab1 = Optional.absent(); public static Optional<? extends BlockHalfSlab> woodenSingleSlab1 = Optional.absent();
public static Optional<? extends BlockHalfSlab> woodenDoubleSlab1 = Optional.absent(); public static Optional<? extends BlockHalfSlab> woodenDoubleSlab1 = Optional.absent();
public static Optional<? extends BlockHalfSlab> woodenSingleSlab2 = Optional.absent(); public static Optional<? extends BlockHalfSlab> woodenSingleSlab2 = Optional.absent();
public static Optional<? extends BlockHalfSlab> woodenDoubleSlab2 = Optional.absent(); public static Optional<? extends BlockHalfSlab> woodenDoubleSlab2 = Optional.absent();
public static Optional<? extends BlockHalfSlab> stoneSingleSlab = Optional.absent(); public static Optional<? extends BlockHalfSlab> stoneSingleSlab = Optional.absent();
public static Optional<? extends BlockHalfSlab> stoneDoubleSlab = Optional.absent(); public static Optional<? extends BlockHalfSlab> stoneDoubleSlab = Optional.absent();
// Plants // Plants
public static Optional<? extends Block> flowers = Optional.absent(); public static Optional<? extends Block> flowers = Optional.absent();
public static Optional<? extends Block> mushrooms = Optional.absent(); public static Optional<? extends Block> mushrooms = Optional.absent();
public static Optional<? extends Block> coral = Optional.absent(); public static Optional<? extends Block> coral = Optional.absent();
public static Optional<? extends Block> leaves1 = Optional.absent(); public static Optional<? extends Block> leaves1 = Optional.absent();
public static Optional<? extends Block> leaves2 = Optional.absent(); public static Optional<? extends Block> leaves2 = Optional.absent();
public static Optional<? extends Block> leavesColorized = Optional.absent(); public static Optional<? extends Block> leavesColorized = Optional.absent();
public static Optional<? extends Block> leavesFruit = Optional.absent(); public static Optional<? extends Block> leavesFruit = Optional.absent();
public static Optional<? extends Block> foliage = Optional.absent(); public static Optional<? extends Block> foliage = Optional.absent();
public static Optional<? extends Block> plants = Optional.absent(); public static Optional<? extends Block> plants = Optional.absent();
public static Optional<? extends Block> flatPlants = Optional.absent(); public static Optional<? extends Block> flatPlants = Optional.absent();
public static Optional<? extends Block> saplings = Optional.absent(); public static Optional<? extends Block> saplings = Optional.absent();
public static Optional<? extends Block> colorizedSaplings = Optional.absent(); public static Optional<? extends Block> colorizedSaplings = Optional.absent();
public static Optional<? extends Block> willow = Optional.absent(); public static Optional<? extends Block> willow = Optional.absent();
public static Optional<? extends Block> ivy = Optional.absent(); public static Optional<? extends Block> ivy = Optional.absent();
public static Optional<? extends Block> treeMoss = Optional.absent(); public static Optional<? extends Block> treeMoss = Optional.absent();
public static Optional<? extends Block> moss = Optional.absent(); public static Optional<? extends Block> moss = Optional.absent();
public static Optional<? extends Block> petals = Optional.absent(); public static Optional<? extends Block> petals = Optional.absent();
public static Optional<? extends Block> bamboo = Optional.absent(); public static Optional<? extends Block> bamboo = Optional.absent();
public static Optional<? extends Block> cloud = Optional.absent(); public static Optional<? extends Block> cloud = Optional.absent();
//Nether //Nether
public static Optional<? extends Block> bones = Optional.absent(); public static Optional<? extends Block> bones = Optional.absent();
// public static Optional<? extends Block> amethystBlock = Optional.absent(); // public static Optional<? extends Block> amethystBlock = Optional.absent();
public static Optional<? extends Block> amethystOre = Optional.absent(); public static Optional<? extends Block> amethystOre = Optional.absent();
// public static Optional<? extends Block> bambooThatching = Optional.absent(); // public static Optional<? extends Block> bambooThatching = Optional.absent();
public static Optional<? extends Block> mudBrick = Optional.absent(); public static Optional<? extends Block> mudBrick = Optional.absent();
// public static Optional<? extends Block> smolderingGrass = Optional.absent(); // public static Optional<? extends Block> smolderingGrass = Optional.absent();
// public static Optional<? extends Block> quicksand = Optional.absent(); // public static Optional<? extends Block> quicksand = Optional.absent();
// public static Optional<? extends Block> grass = Optional.absent(); // public static Optional<? extends Block> grass = Optional.absent();
public static Optional<? extends Block> promisedPortal = Optional.absent(); public static Optional<? extends Block> promisedPortal = Optional.absent();
/** /**
* Populated by Biomes O Plenty with default Biomes O Plenty leaves. Add additional leaves here (E.g. "Blocks.shearBlockIds.put(acaciaLeaves.blockID, 15.0F);") * Populated by Biomes O Plenty with default Biomes O Plenty leaves. Add additional leaves here (E.g. "Blocks.shearBlockIds.put(acaciaLeaves.blockID, 15.0F);")
*/ */

View File

@ -1,20 +1,20 @@
package biomesoplenty.api; package biomesoplenty.api;
public class Entities { public class Entities {
public static Class Mudball = getClass("biomesoplenty.items.projectiles.EntityMudball"); public static Class Mudball = getClass("biomesoplenty.items.projectiles.EntityMudball");
public static Class Dart = getClass("biomesoplenty.items.projectiles.EntityDart"); public static Class Dart = getClass("biomesoplenty.items.projectiles.EntityDart");
public static Class JungleSpider = getClass("biomesoplenty.mobs.EntityJungleSpider"); public static Class JungleSpider = getClass("biomesoplenty.mobs.EntityJungleSpider");
public static Class Rosester = getClass("biomesoplenty.mobs.EntityRosester"); public static Class Rosester = getClass("biomesoplenty.mobs.EntityRosester");
public static Class getClass(String inputstring) public static Class getClass(String inputstring)
{ {
Class foundclass = null; Class foundclass = null;
try try
{ {
foundclass = Class.forName(inputstring); foundclass = Class.forName(inputstring);
} }
catch (ClassNotFoundException e) catch (ClassNotFoundException e)
{ {
e.printStackTrace(); e.printStackTrace();
} }

View File

@ -6,39 +6,39 @@ import com.google.common.base.Optional;
public class Items public class Items
{ {
public static Optional<? extends Item> bopDisc = Optional.absent(); public static Optional<? extends Item> bopDisc = Optional.absent();
public static Optional<? extends Item> bopDiscMud = Optional.absent(); public static Optional<? extends Item> bopDiscMud = Optional.absent();
public static Optional<? extends Item> swordMud = Optional.absent(); public static Optional<? extends Item> swordMud = Optional.absent();
public static Optional<? extends Item> shovelMud = Optional.absent(); public static Optional<? extends Item> shovelMud = Optional.absent();
public static Optional<? extends Item> pickaxeMud = Optional.absent(); public static Optional<? extends Item> pickaxeMud = Optional.absent();
public static Optional<? extends Item> axeMud = Optional.absent(); public static Optional<? extends Item> axeMud = Optional.absent();
public static Optional<? extends Item> hoeMud = Optional.absent(); public static Optional<? extends Item> hoeMud = Optional.absent();
public static Optional<? extends Item> helmetMud = Optional.absent(); public static Optional<? extends Item> helmetMud = Optional.absent();
public static Optional<? extends Item> chestplateMud = Optional.absent(); public static Optional<? extends Item> chestplateMud = Optional.absent();
public static Optional<? extends Item> leggingsMud = Optional.absent(); public static Optional<? extends Item> leggingsMud = Optional.absent();
public static Optional<? extends Item> bootsMud = Optional.absent(); public static Optional<? extends Item> bootsMud = Optional.absent();
public static Optional<? extends Item> swordAmethyst = Optional.absent(); public static Optional<? extends Item> swordAmethyst = Optional.absent();
public static Optional<? extends Item> shovelAmethyst = Optional.absent(); public static Optional<? extends Item> shovelAmethyst = Optional.absent();
public static Optional<? extends Item> pickaxeAmethyst = Optional.absent(); public static Optional<? extends Item> pickaxeAmethyst = Optional.absent();
public static Optional<? extends Item> axeAmethyst = Optional.absent(); public static Optional<? extends Item> axeAmethyst = Optional.absent();
public static Optional<? extends Item> hoeAmethyst = Optional.absent(); public static Optional<? extends Item> hoeAmethyst = Optional.absent();
public static Optional<? extends Item> helmetAmethyst = Optional.absent(); public static Optional<? extends Item> helmetAmethyst = Optional.absent();
public static Optional<? extends Item> chestplateAmethyst = Optional.absent(); public static Optional<? extends Item> chestplateAmethyst = Optional.absent();
public static Optional<? extends Item> leggingsAmethyst = Optional.absent(); public static Optional<? extends Item> leggingsAmethyst = Optional.absent();
public static Optional<? extends Item> bootsAmethyst = Optional.absent(); public static Optional<? extends Item> bootsAmethyst = Optional.absent();
public static Optional<? extends Item> ancientStaff = Optional.absent(); public static Optional<? extends Item> ancientStaff = Optional.absent();
public static Optional<? extends Item> enderporter = Optional.absent(); public static Optional<? extends Item> enderporter = Optional.absent();
public static Optional<? extends Item> shroomPowder = Optional.absent(); public static Optional<? extends Item> shroomPowder = Optional.absent();
public static Optional<? extends Item> sunflowerSeeds = Optional.absent(); public static Optional<? extends Item> sunflowerSeeds = Optional.absent();
public static Optional<? extends Item> berries = Optional.absent(); public static Optional<? extends Item> berries = Optional.absent();
public static Optional<? extends Item> miscItems = Optional.absent(); public static Optional<? extends Item> miscItems = Optional.absent();
public static Optional<? extends Item> mudball = Optional.absent(); public static Optional<? extends Item> mudball = Optional.absent();
public static Optional<? extends Item> poison = Optional.absent(); public static Optional<? extends Item> poison = Optional.absent();
public static Optional<? extends Item> dartBlower = Optional.absent(); public static Optional<? extends Item> dartBlower = Optional.absent();
public static Optional<? extends Item> dart = Optional.absent(); public static Optional<? extends Item> dart = Optional.absent();
public static Optional<? extends Item> flowerBand = Optional.absent(); public static Optional<? extends Item> flowerBand = Optional.absent();
} }

View File

@ -7,16 +7,16 @@ import net.minecraftforge.liquids.LiquidStack;
import com.google.common.base.Optional; import com.google.common.base.Optional;
public class Liquids public class Liquids
{ {
public static Optional<? extends Item> bopBucket = Optional.absent(); public static Optional<? extends Item> bopBucket = Optional.absent();
public static Optional<? extends Block> springWater = Optional.absent(); public static Optional<? extends Block> springWater = Optional.absent();
public static Optional<? extends Block> liquidPoison = Optional.absent(); public static Optional<? extends Block> liquidPoison = Optional.absent();
public static Optional<? extends Fluid> springWaterFluid = Optional.absent(); public static Optional<? extends Fluid> springWaterFluid = Optional.absent();
public static Optional<? extends Fluid> liquidPoisonFluid = Optional.absent(); public static Optional<? extends Fluid> liquidPoisonFluid = Optional.absent();
public static Optional<? extends LiquidStack> springWaterLiquidStack = Optional.absent(); public static Optional<? extends LiquidStack> springWaterLiquidStack = Optional.absent();
public static Optional<? extends LiquidStack> liquidPoisonLiquidStack = Optional.absent(); public static Optional<? extends LiquidStack> liquidPoisonLiquidStack = Optional.absent();
} }

View File

@ -4,8 +4,8 @@ import net.minecraft.potion.Potion;
import com.google.common.base.Optional; import com.google.common.base.Optional;
public class Potions public class Potions
{ {
public static Optional<? extends Potion> nourishment = Optional.absent(); public static Optional<? extends Potion> nourishment = Optional.absent();
public static Optional<? extends Potion> paralysis = Optional.absent(); public static Optional<? extends Potion> paralysis = Optional.absent();
} }

View File

@ -12,42 +12,38 @@ import biomesoplenty.api.Items;
public class ArmorAmethyst extends ItemArmor implements IArmorTextureProvider public class ArmorAmethyst extends ItemArmor implements IArmorTextureProvider
{ {
public int textureID = 0; public int textureID = 0;
public ArmorAmethyst(int par1, EnumArmorMaterial par2EnumArmorMaterial, int par3, int par4) { public ArmorAmethyst(int par1, EnumArmorMaterial par2EnumArmorMaterial, int par3, int par4) {
super(par1, par2EnumArmorMaterial, par3, par4); super(par1, par2EnumArmorMaterial, par3, par4);
textureID = par4; textureID = par4;
setCreativeTab(BiomesOPlenty.tabBiomesOPlenty); setCreativeTab(BiomesOPlenty.tabBiomesOPlenty);
} }
@Override @Override
public boolean getIsRepairable(ItemStack par1ItemStack, ItemStack par2ItemStack) public boolean getIsRepairable(ItemStack par1ItemStack, ItemStack par2ItemStack)
{ {
if (par2ItemStack.itemID == Items.miscItems.get().itemID && par2ItemStack.getItemDamage() == 2) if (par2ItemStack.itemID == Items.miscItems.get().itemID && par2ItemStack.getItemDamage() == 2)
{
return true; return true;
}
else else
{
return false; return false;
} }
}
@Override
public String getArmorTextureFile(ItemStack par1) { public String getArmorTextureFile(ItemStack par1) {
if(par1.itemID == Items.helmetAmethyst.get().itemID||par1.itemID == Items.chestplateAmethyst.get().itemID||par1.itemID == Items.bootsAmethyst.get().itemID){ if(par1.itemID == Items.helmetAmethyst.get().itemID||par1.itemID == Items.chestplateAmethyst.get().itemID||par1.itemID == Items.bootsAmethyst.get().itemID)
return CommonProxy.ARMOR_AMETHYST1_PNG; return CommonProxy.ARMOR_AMETHYST1_PNG;
} if(par1.itemID == Items.leggingsAmethyst.get().itemID)
if(par1.itemID == Items.leggingsAmethyst.get().itemID){
return CommonProxy.ARMOR_AMETHYST2_PNG; return CommonProxy.ARMOR_AMETHYST2_PNG;
}
return null; return null;
} }
@Override
public void registerIcons(IconRegister iconRegister) public void registerIcons(IconRegister iconRegister)
{ {
if(textureID==0){ itemIcon = iconRegister.registerIcon("BiomesOPlenty:amethysthelmet"); } if(textureID==0){ itemIcon = iconRegister.registerIcon("BiomesOPlenty:amethysthelmet"); }
else if(textureID==1){ itemIcon = iconRegister.registerIcon("BiomesOPlenty:amethystchestplate"); } else if(textureID==1){ itemIcon = iconRegister.registerIcon("BiomesOPlenty:amethystchestplate"); }
else if(textureID==2){ itemIcon = iconRegister.registerIcon("BiomesOPlenty:amethystleggings"); } else if(textureID==2){ itemIcon = iconRegister.registerIcon("BiomesOPlenty:amethystleggings"); }
else if(textureID==3){ itemIcon = iconRegister.registerIcon("BiomesOPlenty:amethystboots"); } else if(textureID==3){ itemIcon = iconRegister.registerIcon("BiomesOPlenty:amethystboots"); }
else { itemIcon = iconRegister.registerIcon("BiomesOPlenty:mudball"); } else { itemIcon = iconRegister.registerIcon("BiomesOPlenty:mudball"); }
} }
} }

View File

@ -14,61 +14,64 @@ import cpw.mods.fml.relauncher.SideOnly;
public class ArmorFlowerBand extends ItemArmor implements IArmorTextureProvider public class ArmorFlowerBand extends ItemArmor implements IArmorTextureProvider
{ {
private static final String[] flowerBandTypes = new String[] {"dullflowerband", "plainflowerband", "lushflowerband", "exoticflowerband"}; private static final String[] flowerBandTypes = new String[] {"dullflowerband", "plainflowerband", "lushflowerband", "exoticflowerband"};
@SideOnly(Side.CLIENT) @SideOnly(Side.CLIENT)
private Icon[] textures; private Icon[] textures;
public ArmorFlowerBand(int par1, EnumArmorMaterial par2EnumArmorMaterial, int par3, int par4) { public ArmorFlowerBand(int par1, EnumArmorMaterial par2EnumArmorMaterial, int par3, int par4) {
super(par1, par2EnumArmorMaterial, par3, par4); super(par1, par2EnumArmorMaterial, par3, par4);
setHasSubtypes(true); setHasSubtypes(true);
setMaxDamage(0); setMaxDamage(0);
maxStackSize = 8; maxStackSize = 8;
} }
@Override @Override
public void getSubItems(int par1, CreativeTabs par2CreativeTabs, List par3List) public void getSubItems(int par1, CreativeTabs par2CreativeTabs, List par3List)
{ {
for (int i = 0; i < flowerBandTypes.length; ++i) for (int i = 0; i < flowerBandTypes.length; ++i)
{ {
par3List.add(new ItemStack(par1, 1, i)); par3List.add(new ItemStack(par1, 1, i));
} }
} }
@Override @Override
public String getUnlocalizedName(ItemStack itemStack) public String getUnlocalizedName(ItemStack itemStack)
{ {
return (new StringBuilder()).append(flowerBandTypes[itemStack.getItemDamage()]).toString(); return (new StringBuilder()).append(flowerBandTypes[itemStack.getItemDamage()]).toString();
} }
@SideOnly(Side.CLIENT) @Override
public void registerIcons(IconRegister iconRegister) @SideOnly(Side.CLIENT)
{ public void registerIcons(IconRegister iconRegister)
textures = new Icon[flowerBandTypes.length]; {
textures = new Icon[flowerBandTypes.length];
for (int i = 0; i < flowerBandTypes.length; ++i)
textures[i] = iconRegister.registerIcon("BiomesOPlenty:" + flowerBandTypes[i]); for (int i = 0; i < flowerBandTypes.length; ++i) {
} textures[i] = iconRegister.registerIcon("BiomesOPlenty:" + flowerBandTypes[i]);
}
@Override }
public Icon getIconFromDamage(int meta)
{ @Override
return textures[meta]; public Icon getIconFromDamage(int meta)
} {
return textures[meta];
public String getArmorTextureFile(ItemStack par1) }
{
@Override
public String getArmorTextureFile(ItemStack par1)
{
if (par1.getItemDamage() == 0) if (par1.getItemDamage() == 0)
return "/mods/BiomesOPlenty/textures/armor/dullflowerband.png"; return "/mods/BiomesOPlenty/textures/armor/dullflowerband.png";
if (par1.getItemDamage() == 1) if (par1.getItemDamage() == 1)
return "/mods/BiomesOPlenty/textures/armor/plainflowerband.png"; return "/mods/BiomesOPlenty/textures/armor/plainflowerband.png";
if (par1.getItemDamage() == 2) if (par1.getItemDamage() == 2)
return "/mods/BiomesOPlenty/textures/armor/lushflowerband.png"; return "/mods/BiomesOPlenty/textures/armor/lushflowerband.png";
if (par1.getItemDamage() == 3) if (par1.getItemDamage() == 3)
return "/mods/BiomesOPlenty/textures/armor/exoticflowerband.png"; return "/mods/BiomesOPlenty/textures/armor/exoticflowerband.png";
return null; return null;
} }
} }

View File

@ -12,29 +12,29 @@ import biomesoplenty.api.Items;
public class ArmorMuddy extends ItemArmor implements IArmorTextureProvider public class ArmorMuddy extends ItemArmor implements IArmorTextureProvider
{ {
public int textureID = 0; public int textureID = 0;
public ArmorMuddy(int par1, EnumArmorMaterial par2EnumArmorMaterial, int par3, int par4) { public ArmorMuddy(int par1, EnumArmorMaterial par2EnumArmorMaterial, int par3, int par4) {
super(par1, par2EnumArmorMaterial, par3, par4); super(par1, par2EnumArmorMaterial, par3, par4);
textureID = par4; textureID = par4;
setCreativeTab(BiomesOPlenty.tabBiomesOPlenty); setCreativeTab(BiomesOPlenty.tabBiomesOPlenty);
} }
@Override
public String getArmorTextureFile(ItemStack par1) { public String getArmorTextureFile(ItemStack par1) {
if(par1.itemID == Items.helmetMud.get().itemID||par1.itemID == Items.chestplateMud.get().itemID||par1.itemID == Items.bootsMud.get().itemID){ if(par1.itemID == Items.helmetMud.get().itemID||par1.itemID == Items.chestplateMud.get().itemID||par1.itemID == Items.bootsMud.get().itemID)
return CommonProxy.ARMOR_MUD1_PNG; return CommonProxy.ARMOR_MUD1_PNG;
} if(par1.itemID == Items.leggingsMud.get().itemID)
if(par1.itemID == Items.leggingsMud.get().itemID){
return CommonProxy.ARMOR_MUD2_PNG; return CommonProxy.ARMOR_MUD2_PNG;
}
return null; return null;
} }
@Override
public void registerIcons(IconRegister iconRegister) public void registerIcons(IconRegister iconRegister)
{ {
if(textureID==0){ itemIcon = iconRegister.registerIcon("BiomesOPlenty:mudhelmet"); } if(textureID==0){ itemIcon = iconRegister.registerIcon("BiomesOPlenty:mudhelmet"); }
else if(textureID==1){ itemIcon = iconRegister.registerIcon("BiomesOPlenty:mudchestplate"); } else if(textureID==1){ itemIcon = iconRegister.registerIcon("BiomesOPlenty:mudchestplate"); }
else if(textureID==2){ itemIcon = iconRegister.registerIcon("BiomesOPlenty:mudleggings"); } else if(textureID==2){ itemIcon = iconRegister.registerIcon("BiomesOPlenty:mudleggings"); }
else if(textureID==3){ itemIcon = iconRegister.registerIcon("BiomesOPlenty:mudboots"); } else if(textureID==3){ itemIcon = iconRegister.registerIcon("BiomesOPlenty:mudboots"); }
else { itemIcon = iconRegister.registerIcon("BiomesOPlenty:mudball"); } else { itemIcon = iconRegister.registerIcon("BiomesOPlenty:mudball"); }
} }
} }

File diff suppressed because it is too large Load Diff

View File

@ -9,28 +9,29 @@ import biomesoplenty.worldgen.WorldGenTaiga6;
public class BiomeGenAlps extends BiomeGenBase public class BiomeGenAlps extends BiomeGenBase
{ {
private BiomeDecoratorBOP customBiomeDecorator; private BiomeDecoratorBOP customBiomeDecorator;
public BiomeGenAlps(int par1) public BiomeGenAlps(int par1)
{ {
super(par1); super(par1);
this.topBlock = (byte)Block.stone.blockID; topBlock = (byte)Block.stone.blockID;
this.fillerBlock = (byte)Block.stone.blockID; fillerBlock = (byte)Block.stone.blockID;
this.theBiomeDecorator = new BiomeDecoratorBOP(this); theBiomeDecorator = new BiomeDecoratorBOP(this);
this.customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator; customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator;
this.customBiomeDecorator.treesPerChunk = 1; customBiomeDecorator.treesPerChunk = 1;
this.customBiomeDecorator.flowersPerChunk = -999; customBiomeDecorator.flowersPerChunk = -999;
this.customBiomeDecorator.grassPerChunk = -999; customBiomeDecorator.grassPerChunk = -999;
this.customBiomeDecorator.sandPerChunk = -999; customBiomeDecorator.sandPerChunk = -999;
this.customBiomeDecorator.sandPerChunk2 = -999; customBiomeDecorator.sandPerChunk2 = -999;
this.customBiomeDecorator.hotSpringsPerChunk = 4; customBiomeDecorator.hotSpringsPerChunk = 4;
} }
/** /**
* Gets a WorldGen appropriate for this biome. * Gets a WorldGen appropriate for this biome.
*/ */
public WorldGenerator getRandomWorldGenForTrees(Random par1Random) @Override
{ public WorldGenerator getRandomWorldGenForTrees(Random par1Random)
return new WorldGenTaiga6(false); {
} return new WorldGenTaiga6(false);
}
} }

View File

@ -4,34 +4,36 @@ import net.minecraft.world.biome.BiomeGenBase;
public class BiomeGenArctic extends BiomeGenBase public class BiomeGenArctic extends BiomeGenBase
{ {
private BiomeDecoratorBOP customBiomeDecorator; private BiomeDecoratorBOP customBiomeDecorator;
public BiomeGenArctic(int par1) public BiomeGenArctic(int par1)
{ {
super(par1); super(par1);
this.spawnableCreatureList.clear(); spawnableCreatureList.clear();
this.theBiomeDecorator = new BiomeDecoratorBOP(this); theBiomeDecorator = new BiomeDecoratorBOP(this);
this.customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator; customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator;
this.customBiomeDecorator.treesPerChunk = -999; customBiomeDecorator.treesPerChunk = -999;
this.customBiomeDecorator.flowersPerChunk = -999; customBiomeDecorator.flowersPerChunk = -999;
this.customBiomeDecorator.grassPerChunk = -999; customBiomeDecorator.grassPerChunk = -999;
this.customBiomeDecorator.sandPerChunk = -999; customBiomeDecorator.sandPerChunk = -999;
this.customBiomeDecorator.sandPerChunk2 = -999; customBiomeDecorator.sandPerChunk2 = -999;
} }
/** /**
* Provides the basic grass color based on the biome temperature and rainfall * Provides the basic grass color based on the biome temperature and rainfall
*/ */
public int getBiomeGrassColor() @Override
{ public int getBiomeGrassColor()
return 11176526; {
} return 11176526;
}
/**
* Provides the basic foliage color based on the biome temperature and rainfall /**
*/ * Provides the basic foliage color based on the biome temperature and rainfall
public int getBiomeFoliageColor() */
{ @Override
return 11903827; public int getBiomeFoliageColor()
} {
return 11903827;
}
} }

View File

@ -9,49 +9,48 @@ import biomesoplenty.configuration.BOPConfiguration;
public class BiomeGenBadlands extends BiomeGenBase public class BiomeGenBadlands extends BiomeGenBase
{ {
private BiomeDecoratorBOP customBiomeDecorator; private BiomeDecoratorBOP customBiomeDecorator;
public BiomeGenBadlands(int par1) public BiomeGenBadlands(int par1)
{ {
super(par1); super(par1);
this.spawnableCreatureList.clear(); spawnableCreatureList.clear();
this.topBlock = (byte)Blocks.hardSand.get().blockID; topBlock = (byte)Blocks.hardSand.get().blockID;
this.fillerBlock = (byte)Block.blockClay.blockID; fillerBlock = (byte)Block.blockClay.blockID;
this.theBiomeDecorator = new BiomeDecoratorBOP(this); theBiomeDecorator = new BiomeDecoratorBOP(this);
this.customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator; customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator;
this.customBiomeDecorator.treesPerChunk = -999; customBiomeDecorator.treesPerChunk = -999;
this.customBiomeDecorator.deadBushPerChunk = 4; customBiomeDecorator.deadBushPerChunk = 4;
this.customBiomeDecorator.reedsPerChunk = -999; customBiomeDecorator.reedsPerChunk = -999;
this.customBiomeDecorator.cactiPerChunk = 2; customBiomeDecorator.cactiPerChunk = 2;
this.customBiomeDecorator.clayPerChunk = 3; customBiomeDecorator.clayPerChunk = 3;
this.customBiomeDecorator.generateClayInStone = true; customBiomeDecorator.generateClayInStone = true;
this.customBiomeDecorator.generateSandInStone = true; customBiomeDecorator.generateSandInStone = true;
} }
/**
* takes temperature, returns color
*/
public int getSkyColorByTemp(float par1)
{
if (BOPConfiguration.skyColors = true)
{
return 9814727;
}
else
{
par1 /= 3.0F;
if (par1 < -1.0F) /**
{ * takes temperature, returns color
par1 = -1.0F; */
} @Override
public int getSkyColorByTemp(float par1)
{
if (BOPConfiguration.skyColors = true)
return 9814727;
else
{
par1 /= 3.0F;
if (par1 > 1.0F) if (par1 < -1.0F)
{ {
par1 = 1.0F; par1 = -1.0F;
} }
return Color.getHSBColor(0.62222224F - par1 * 0.05F, 0.5F + par1 * 0.1F, 1.0F).getRGB(); if (par1 > 1.0F)
} {
} par1 = 1.0F;
}
return Color.getHSBColor(0.62222224F - par1 * 0.05F, 0.5F + par1 * 0.1F, 1.0F).getRGB();
}
}
} }

View File

@ -13,70 +13,75 @@ import biomesoplenty.worldgen.WorldGenBambooTree;
public class BiomeGenBambooForest extends BiomeGenBase public class BiomeGenBambooForest extends BiomeGenBase
{ {
private BiomeDecoratorBOP customBiomeDecorator; private BiomeDecoratorBOP customBiomeDecorator;
public BiomeGenBambooForest(int par1) public BiomeGenBambooForest(int par1)
{ {
super(par1); super(par1);
this.theBiomeDecorator = new BiomeDecoratorBOP(this); theBiomeDecorator = new BiomeDecoratorBOP(this);
this.customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator; customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator;
this.customBiomeDecorator.treesPerChunk = 30; customBiomeDecorator.treesPerChunk = 30;
this.customBiomeDecorator.grassPerChunk = 5; customBiomeDecorator.grassPerChunk = 5;
this.customBiomeDecorator.flowersPerChunk = -999; customBiomeDecorator.flowersPerChunk = -999;
this.customBiomeDecorator.bushesPerChunk = 5; customBiomeDecorator.bushesPerChunk = 5;
this.customBiomeDecorator.reedsBOPPerChunk = 6; customBiomeDecorator.reedsBOPPerChunk = 6;
this.customBiomeDecorator.generatePumpkins = false; customBiomeDecorator.generatePumpkins = false;
} }
/** /**
* Gets a WorldGen appropriate for this biome. * Gets a WorldGen appropriate for this biome.
*/ */
public WorldGenerator getRandomWorldGenForTrees(Random par1Random) @Override
{ public WorldGenerator getRandomWorldGenForTrees(Random par1Random)
return (WorldGenerator)(par1Random.nextInt(3) == 0 ? new WorldGenShrub(0, 0) : new WorldGenBambooTree(false)); {
} return par1Random.nextInt(3) == 0 ? new WorldGenShrub(0, 0) : new WorldGenBambooTree(false);
}
/**
* Gets a WorldGen appropriate for this biome.
*/
public WorldGenerator getRandomWorldGenForGrass(Random par1Random)
{
return par1Random.nextInt(4) == 0 ? new WorldGenTallGrass(Block.tallGrass.blockID, 2) : new WorldGenTallGrass(Blocks.foliage.get().blockID, 1);
}
public void decorate(World par1World, Random par2Random, int par3, int par4)
{
super.decorate(par1World, par2Random, par3, par4);
int var5 = 3 + par2Random.nextInt(6);
for (int var6 = 0; var6 < var5; ++var6) /**
{ * Gets a WorldGen appropriate for this biome.
int var7 = par3 + par2Random.nextInt(16); */
int var8 = par2Random.nextInt(28) + 4; @Override
int var9 = par4 + par2Random.nextInt(16); public WorldGenerator getRandomWorldGenForGrass(Random par1Random)
int var10 = par1World.getBlockId(var7, var8, var9); {
return par1Random.nextInt(4) == 0 ? new WorldGenTallGrass(Block.tallGrass.blockID, 2) : new WorldGenTallGrass(Blocks.foliage.get().blockID, 1);
}
if (var10 == Block.stone.blockID) @Override
{ public void decorate(World par1World, Random par2Random, int par3, int par4)
par1World.setBlock(var7, var8, var9, Block.oreEmerald.blockID, 0, 2); {
} super.decorate(par1World, par2Random, par3, par4);
} int var5 = 3 + par2Random.nextInt(6);
}
/**
* Provides the basic grass color based on the biome temperature and rainfall
*/
public int getBiomeGrassColor()
{
return 10739795;
}
/** for (int var6 = 0; var6 < var5; ++var6)
* Provides the basic foliage color based on the biome temperature and rainfall {
*/ int var7 = par3 + par2Random.nextInt(16);
public int getBiomeFoliageColor() int var8 = par2Random.nextInt(28) + 4;
{ int var9 = par4 + par2Random.nextInt(16);
return 10739795; int var10 = par1World.getBlockId(var7, var8, var9);
}
if (var10 == Block.stone.blockID)
{
par1World.setBlock(var7, var8, var9, Block.oreEmerald.blockID, 0, 2);
}
}
}
/**
* Provides the basic grass color based on the biome temperature and rainfall
*/
@Override
public int getBiomeGrassColor()
{
return 10739795;
}
/**
* Provides the basic foliage color based on the biome temperature and rainfall
*/
@Override
public int getBiomeFoliageColor()
{
return 10739795;
}
} }

View File

@ -16,95 +16,98 @@ import biomesoplenty.worldgen.WorldGenMoss;
public class BiomeGenBayou extends BiomeGenBase public class BiomeGenBayou extends BiomeGenBase
{ {
private BiomeDecoratorBOP customBiomeDecorator; private BiomeDecoratorBOP customBiomeDecorator;
public BiomeGenBayou(int par1) public BiomeGenBayou(int par1)
{ {
super(par1); super(par1);
this.theBiomeDecorator = new BiomeDecoratorBOP(this); theBiomeDecorator = new BiomeDecoratorBOP(this);
this.customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator; customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator;
this.customBiomeDecorator.treesPerChunk = 15; customBiomeDecorator.treesPerChunk = 15;
this.customBiomeDecorator.grassPerChunk = 15; customBiomeDecorator.grassPerChunk = 15;
this.customBiomeDecorator.flowersPerChunk = -999; customBiomeDecorator.flowersPerChunk = -999;
this.customBiomeDecorator.reedsPerChunk = 25; customBiomeDecorator.reedsPerChunk = 25;
this.customBiomeDecorator.mudPerChunk = 1; customBiomeDecorator.mudPerChunk = 1;
this.customBiomeDecorator.mudPerChunk2 = 1; customBiomeDecorator.mudPerChunk2 = 1;
this.customBiomeDecorator.toadstoolsPerChunk = 2; customBiomeDecorator.toadstoolsPerChunk = 2;
this.customBiomeDecorator.sandPerChunk = -999; customBiomeDecorator.sandPerChunk = -999;
this.customBiomeDecorator.sandPerChunk2 = -999; customBiomeDecorator.sandPerChunk2 = -999;
this.customBiomeDecorator.waterlilyPerChunk = 2; customBiomeDecorator.waterlilyPerChunk = 2;
this.customBiomeDecorator.cattailsPerChunk = 1; customBiomeDecorator.cattailsPerChunk = 1;
this.customBiomeDecorator.highCattailsPerChunk = 1; customBiomeDecorator.highCattailsPerChunk = 1;
this.customBiomeDecorator.waterLakesPerChunk = 5; customBiomeDecorator.waterLakesPerChunk = 5;
this.customBiomeDecorator.algaePerChunk = 1; customBiomeDecorator.algaePerChunk = 1;
this.customBiomeDecorator.generatePumpkins = false; customBiomeDecorator.generatePumpkins = false;
this.waterColorMultiplier = 16767282; waterColorMultiplier = 16767282;
this.spawnableWaterCreatureList.clear(); spawnableWaterCreatureList.clear();
this.spawnableMonsterList.add(new SpawnListEntry(EntitySlime.class, 10, 1, 3)); spawnableMonsterList.add(new SpawnListEntry(EntitySlime.class, 10, 1, 3));
} }
/**
* Gets a WorldGen appropriate for this biome.
*/
public WorldGenerator getRandomWorldGenForTrees(Random par1Random)
{
return (WorldGenerator)(par1Random.nextInt(8) == 0 ? new WorldGenBayou3() : (par1Random.nextInt(2) == 0 ? new WorldGenBayou1() : new WorldGenBayou2()));
}
public void decorate(World par1World, Random par2Random, int par3, int par4)
{
super.decorate(par1World, par2Random, par3, par4);
WorldGenMoss var5 = new WorldGenMoss();
for (int var6 = 0; var6 < 20; ++var6) /**
{ * Gets a WorldGen appropriate for this biome.
int var7 = par3 + par2Random.nextInt(16) + 8; */
byte var8 = 58; @Override
int var9 = par4 + par2Random.nextInt(16) + 8; public WorldGenerator getRandomWorldGenForTrees(Random par1Random)
var5.generate(par1World, par2Random, var7, var8, var9); {
} return par1Random.nextInt(8) == 0 ? new WorldGenBayou3() : (par1Random.nextInt(2) == 0 ? new WorldGenBayou1() : new WorldGenBayou2());
} }
/**
* Provides the basic grass color based on the biome temperature and rainfall
*/
public int getBiomeGrassColor()
{
return 9154411;
}
/** @Override
* Provides the basic foliage color based on the biome temperature and rainfall public void decorate(World par1World, Random par2Random, int par3, int par4)
*/ {
public int getBiomeFoliageColor() super.decorate(par1World, par2Random, par3, par4);
{ WorldGenMoss var5 = new WorldGenMoss();
return 11591816;
}
/**
* takes temperature, returns color
*/
public int getSkyColorByTemp(float par1)
{
if (BOPConfiguration.skyColors = true)
{
return 11322556;
}
else
{
par1 /= 3.0F;
if (par1 < -1.0F) for (int var6 = 0; var6 < 20; ++var6)
{ {
par1 = -1.0F; int var7 = par3 + par2Random.nextInt(16) + 8;
} byte var8 = 58;
int var9 = par4 + par2Random.nextInt(16) + 8;
var5.generate(par1World, par2Random, var7, var8, var9);
}
}
if (par1 > 1.0F) /**
{ * Provides the basic grass color based on the biome temperature and rainfall
par1 = 1.0F; */
} @Override
public int getBiomeGrassColor()
{
return 9154411;
}
return Color.getHSBColor(0.62222224F - par1 * 0.05F, 0.5F + par1 * 0.1F, 1.0F).getRGB(); /**
} * Provides the basic foliage color based on the biome temperature and rainfall
} */
@Override
public int getBiomeFoliageColor()
{
return 11591816;
}
/**
* takes temperature, returns color
*/
@Override
public int getSkyColorByTemp(float par1)
{
if (BOPConfiguration.skyColors = true)
return 11322556;
else
{
par1 /= 3.0F;
if (par1 < -1.0F)
{
par1 = -1.0F;
}
if (par1 > 1.0F)
{
par1 = 1.0F;
}
return Color.getHSBColor(0.62222224F - par1 * 0.05F, 0.5F + par1 * 0.1F, 1.0F).getRGB();
}
}
} }

View File

@ -5,15 +5,15 @@ import net.minecraft.world.biome.BiomeGenBase;
public class BiomeGenBeachGravel extends BiomeGenBase public class BiomeGenBeachGravel extends BiomeGenBase
{ {
public BiomeGenBeachGravel(int par1) public BiomeGenBeachGravel(int par1)
{ {
super(par1); super(par1);
this.spawnableCreatureList.clear(); spawnableCreatureList.clear();
this.topBlock = (byte)Block.gravel.blockID; topBlock = (byte)Block.gravel.blockID;
this.fillerBlock = (byte)Block.gravel.blockID; fillerBlock = (byte)Block.gravel.blockID;
this.theBiomeDecorator.treesPerChunk = -999; theBiomeDecorator.treesPerChunk = -999;
this.theBiomeDecorator.deadBushPerChunk = -999; theBiomeDecorator.deadBushPerChunk = -999;
this.theBiomeDecorator.reedsPerChunk = -999; theBiomeDecorator.reedsPerChunk = -999;
this.theBiomeDecorator.cactiPerChunk = -999; theBiomeDecorator.cactiPerChunk = -999;
} }
} }

View File

@ -11,27 +11,28 @@ public class BiomeGenBeachOvergrown extends BiomeGenBase
{ {
private BiomeDecoratorBOP customBiomeDecorator; private BiomeDecoratorBOP customBiomeDecorator;
public BiomeGenBeachOvergrown(int par1) public BiomeGenBeachOvergrown(int par1)
{ {
super(par1); super(par1);
this.theBiomeDecorator = new BiomeDecoratorBOP(this); theBiomeDecorator = new BiomeDecoratorBOP(this);
this.customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator; customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator;
this.spawnableCreatureList.clear(); spawnableCreatureList.clear();
this.topBlock = (byte)Block.sand.blockID; topBlock = (byte)Block.sand.blockID;
this.fillerBlock = (byte)Block.sand.blockID; fillerBlock = (byte)Block.sand.blockID;
this.theBiomeDecorator.treesPerChunk = 15; theBiomeDecorator.treesPerChunk = 15;
this.theBiomeDecorator.deadBushPerChunk = 1; theBiomeDecorator.deadBushPerChunk = 1;
this.customBiomeDecorator.duneGrassPerChunk = 25; customBiomeDecorator.duneGrassPerChunk = 25;
this.theBiomeDecorator.reedsPerChunk = -999; theBiomeDecorator.reedsPerChunk = -999;
this.theBiomeDecorator.cactiPerChunk = 1; theBiomeDecorator.cactiPerChunk = 1;
this.customBiomeDecorator.outbackPerChunk = 5; customBiomeDecorator.outbackPerChunk = 5;
} }
/** /**
* Gets a WorldGen appropriate for this biome. * Gets a WorldGen appropriate for this biome.
*/ */
public WorldGenerator getRandomWorldGenForTrees(Random par1Random) @Override
{ public WorldGenerator getRandomWorldGenForTrees(Random par1Random)
return new WorldGenBogBush(); {
} return new WorldGenBogBush();
}
} }

View File

@ -11,52 +11,55 @@ import biomesoplenty.api.Blocks;
public class BiomeGenBirchForest extends BiomeGenBase public class BiomeGenBirchForest extends BiomeGenBase
{ {
private BiomeDecoratorBOP customBiomeDecorator; private BiomeDecoratorBOP customBiomeDecorator;
public BiomeGenBirchForest(int par1) public BiomeGenBirchForest(int par1)
{ {
super(par1); super(par1);
this.theBiomeDecorator = new BiomeDecoratorBOP(this); theBiomeDecorator = new BiomeDecoratorBOP(this);
this.customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator; customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator;
this.customBiomeDecorator.treesPerChunk = 5; customBiomeDecorator.treesPerChunk = 5;
this.customBiomeDecorator.grassPerChunk = 3; customBiomeDecorator.grassPerChunk = 3;
this.customBiomeDecorator.flowersPerChunk = -999; customBiomeDecorator.flowersPerChunk = -999;
this.customBiomeDecorator.tinyFlowersPerChunk = 6; customBiomeDecorator.tinyFlowersPerChunk = 6;
this.customBiomeDecorator.poisonIvyPerChunk = 3; customBiomeDecorator.poisonIvyPerChunk = 3;
} }
/** /**
* Gets a WorldGen appropriate for this biome. * Gets a WorldGen appropriate for this biome.
*/ */
public WorldGenerator getRandomWorldGenForTrees(Random par1Random) @Override
{ public WorldGenerator getRandomWorldGenForTrees(Random par1Random)
return this.worldGeneratorForest; {
} return worldGeneratorForest;
}
/**
* Gets a WorldGen appropriate for this biome.
*/
public WorldGenerator getRandomWorldGenForGrass(Random par1Random)
{
return par1Random.nextInt(3) == 0 ? new WorldGenTallGrass(Block.tallGrass.blockID, 1) : new WorldGenTallGrass(Blocks.foliage.get().blockID, 1);
}
public void decorate(World par1World, Random par2Random, int par3, int par4)
{
super.decorate(par1World, par2Random, par3, par4);
int var5 = 3 + par2Random.nextInt(6);
for (int var6 = 0; var6 < var5; ++var6) /**
{ * Gets a WorldGen appropriate for this biome.
int var7 = par3 + par2Random.nextInt(16); */
int var8 = par2Random.nextInt(28) + 4; @Override
int var9 = par4 + par2Random.nextInt(16); public WorldGenerator getRandomWorldGenForGrass(Random par1Random)
int var10 = par1World.getBlockId(var7, var8, var9); {
return par1Random.nextInt(3) == 0 ? new WorldGenTallGrass(Block.tallGrass.blockID, 1) : new WorldGenTallGrass(Blocks.foliage.get().blockID, 1);
}
if (var10 == Block.stone.blockID) @Override
{ public void decorate(World par1World, Random par2Random, int par3, int par4)
par1World.setBlock(var7, var8, var9, Block.oreEmerald.blockID, 0, 2); {
} super.decorate(par1World, par2Random, par3, par4);
} int var5 = 3 + par2Random.nextInt(6);
}
for (int var6 = 0; var6 < var5; ++var6)
{
int var7 = par3 + par2Random.nextInt(16);
int var8 = par2Random.nextInt(28) + 4;
int var9 = par4 + par2Random.nextInt(16);
int var10 = par1World.getBlockId(var7, var8, var9);
if (var10 == Block.stone.blockID)
{
par1World.setBlock(var7, var8, var9, Block.oreEmerald.blockID, 0, 2);
}
}
}
} }

View File

@ -15,75 +15,80 @@ import biomesoplenty.worldgen.WorldGenMarsh;
public class BiomeGenBog extends BiomeGenBase public class BiomeGenBog extends BiomeGenBase
{ {
private BiomeDecoratorBOP customBiomeDecorator; private BiomeDecoratorBOP customBiomeDecorator;
public BiomeGenBog(int par1) public BiomeGenBog(int par1)
{ {
super(par1); super(par1);
this.spawnableCreatureList.clear(); spawnableCreatureList.clear();
this.spawnableWaterCreatureList.clear(); spawnableWaterCreatureList.clear();
this.theBiomeDecorator = new BiomeDecoratorBOP(this); theBiomeDecorator = new BiomeDecoratorBOP(this);
this.customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator; customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator;
this.customBiomeDecorator.treesPerChunk = 12; customBiomeDecorator.treesPerChunk = 12;
this.customBiomeDecorator.flowersPerChunk = -999; customBiomeDecorator.flowersPerChunk = -999;
this.customBiomeDecorator.grassPerChunk = 5; customBiomeDecorator.grassPerChunk = 5;
this.customBiomeDecorator.bushesPerChunk = 6; customBiomeDecorator.bushesPerChunk = 6;
this.customBiomeDecorator.mudPerChunk = 2; customBiomeDecorator.mudPerChunk = 2;
this.customBiomeDecorator.mudPerChunk2 = 2; customBiomeDecorator.mudPerChunk2 = 2;
this.customBiomeDecorator.sandPerChunk = -999; customBiomeDecorator.sandPerChunk = -999;
this.customBiomeDecorator.sandPerChunk2 = -999; customBiomeDecorator.sandPerChunk2 = -999;
this.customBiomeDecorator.algaePerChunk = 2; customBiomeDecorator.algaePerChunk = 2;
this.customBiomeDecorator.waterlilyPerChunk = 4; customBiomeDecorator.waterlilyPerChunk = 4;
this.customBiomeDecorator.reedsBOPPerChunk = 8; customBiomeDecorator.reedsBOPPerChunk = 8;
this.customBiomeDecorator.blueMilksPerChunk = 1; customBiomeDecorator.blueMilksPerChunk = 1;
this.customBiomeDecorator.waterLakesPerChunk = 6; customBiomeDecorator.waterLakesPerChunk = 6;
this.customBiomeDecorator.poisonWaterPerChunk = 2; customBiomeDecorator.poisonWaterPerChunk = 2;
this.customBiomeDecorator.generatePumpkins = false; customBiomeDecorator.generatePumpkins = false;
} }
public void decorate(World par1World, Random par2Random, int par3, int par4)
{
super.decorate(par1World, par2Random, par3, par4);
WorldGenMarsh var5 = new WorldGenMarsh();
for (int var6 = 0; var6 < 10; ++var6) @Override
{ public void decorate(World par1World, Random par2Random, int par3, int par4)
int var7 = par3 + par2Random.nextInt(16) + 8; {
byte var8 = 62; super.decorate(par1World, par2Random, par3, par4);
int var9 = par4 + par2Random.nextInt(16) + 8; WorldGenMarsh var5 = new WorldGenMarsh();
var5.generate(par1World, par2Random, var7, var8, var9);
}
}
/**
* Gets a WorldGen appropriate for this biome.
*/
public WorldGenerator getRandomWorldGenForTrees(Random par1Random)
{
return (WorldGenerator)(par1Random.nextInt(3) == 0 ? new WorldGenCypress1(false) : (par1Random.nextInt(6) == 0 ? new WorldGenCypress2(false) : new WorldGenBogBush()));
}
/**
* Gets a WorldGen appropriate for this biome.
*/
public WorldGenerator getRandomWorldGenForGrass(Random par1Random)
{
return par1Random.nextInt(2) == 0 ? new WorldGenTallGrass(Block.tallGrass.blockID, 1) : new WorldGenTallGrass(Blocks.foliage.get().blockID, 2);
}
/**
* Provides the basic grass color based on the biome temperature and rainfall
*/
public int getBiomeGrassColor()
{
return 14193503;
}
/** for (int var6 = 0; var6 < 10; ++var6)
* Provides the basic foliage color based on the biome temperature and rainfall {
*/ int var7 = par3 + par2Random.nextInt(16) + 8;
public int getBiomeFoliageColor() byte var8 = 62;
{ int var9 = par4 + par2Random.nextInt(16) + 8;
return 14345593; var5.generate(par1World, par2Random, var7, var8, var9);
} }
}
/**
* Gets a WorldGen appropriate for this biome.
*/
@Override
public WorldGenerator getRandomWorldGenForTrees(Random par1Random)
{
return par1Random.nextInt(3) == 0 ? new WorldGenCypress1(false) : (par1Random.nextInt(6) == 0 ? new WorldGenCypress2(false) : new WorldGenBogBush());
}
/**
* Gets a WorldGen appropriate for this biome.
*/
@Override
public WorldGenerator getRandomWorldGenForGrass(Random par1Random)
{
return par1Random.nextInt(2) == 0 ? new WorldGenTallGrass(Block.tallGrass.blockID, 1) : new WorldGenTallGrass(Blocks.foliage.get().blockID, 2);
}
/**
* Provides the basic grass color based on the biome temperature and rainfall
*/
@Override
public int getBiomeGrassColor()
{
return 14193503;
}
/**
* Provides the basic foliage color based on the biome temperature and rainfall
*/
@Override
public int getBiomeFoliageColor()
{
return 14345593;
}
} }

View File

@ -15,49 +15,53 @@ import biomesoplenty.worldgen.WorldGenTaiga10;
public class BiomeGenBorealForest extends BiomeGenBase public class BiomeGenBorealForest extends BiomeGenBase
{ {
private BiomeDecoratorBOP customBiomeDecorator; private BiomeDecoratorBOP customBiomeDecorator;
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
public BiomeGenBorealForest(int par1) public BiomeGenBorealForest(int par1)
{ {
super(par1); super(par1);
this.spawnableCreatureList.add(new SpawnListEntry(EntityWolf.class, 5, 4, 4)); spawnableCreatureList.add(new SpawnListEntry(EntityWolf.class, 5, 4, 4));
this.theBiomeDecorator = new BiomeDecoratorBOP(this); theBiomeDecorator = new BiomeDecoratorBOP(this);
this.customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator; customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator;
this.customBiomeDecorator.treesPerChunk = 20; customBiomeDecorator.treesPerChunk = 20;
this.customBiomeDecorator.grassPerChunk = 50; customBiomeDecorator.grassPerChunk = 50;
} }
/** /**
* Gets a WorldGen appropriate for this biome. * Gets a WorldGen appropriate for this biome.
*/ */
public WorldGenerator getRandomWorldGenForGrass(Random par1Random) @Override
{ public WorldGenerator getRandomWorldGenForGrass(Random par1Random)
return par1Random.nextInt(2) == 0 ? new WorldGenTallGrass(Block.tallGrass.blockID, 2) : new WorldGenTallGrass(Block.tallGrass.blockID, 1); {
} return par1Random.nextInt(2) == 0 ? new WorldGenTallGrass(Block.tallGrass.blockID, 2) : new WorldGenTallGrass(Block.tallGrass.blockID, 1);
}
/**
* Gets a WorldGen appropriate for this biome. /**
*/ * Gets a WorldGen appropriate for this biome.
public WorldGenerator getRandomWorldGenForTrees(Random par1Random) */
{ @Override
return (WorldGenerator)(par1Random.nextInt(4) == 0 ? new WorldGenRainforestTree1(false) : (par1Random.nextInt(5) == 0 ? new WorldGenShrub(0,0) : (par1Random.nextInt(3) == 0 ? new WorldGenAutumn(false) : (par1Random.nextInt(3) == 0 ? this.worldGeneratorForest : new WorldGenTaiga10(false))))); public WorldGenerator getRandomWorldGenForTrees(Random par1Random)
//return (WorldGenerator)(par1Random.nextInt(2) == 0 ? this.worldGeneratorTrees : (par1Random.nextInt(5) == 0 ? new WorldGenShrub(0,0) : (par1Random.nextInt(3) == 0 ? new WorldGenAutumn(false) : (par1Random.nextInt(3) == 0 ? this.worldGeneratorForest : new WorldGenTaiga10(false))))); {
} return par1Random.nextInt(4) == 0 ? new WorldGenRainforestTree1(false) : (par1Random.nextInt(5) == 0 ? new WorldGenShrub(0,0) : (par1Random.nextInt(3) == 0 ? new WorldGenAutumn(false) : (par1Random.nextInt(3) == 0 ? worldGeneratorForest : new WorldGenTaiga10(false))));
//return (WorldGenerator)(par1Random.nextInt(2) == 0 ? this.worldGeneratorTrees : (par1Random.nextInt(5) == 0 ? new WorldGenShrub(0,0) : (par1Random.nextInt(3) == 0 ? new WorldGenAutumn(false) : (par1Random.nextInt(3) == 0 ? this.worldGeneratorForest : new WorldGenTaiga10(false)))));
/** }
* Provides the basic grass color based on the biome temperature and rainfall
*/ /**
public int getBiomeGrassColor() * Provides the basic grass color based on the biome temperature and rainfall
{ */
return 10467185; @Override
} public int getBiomeGrassColor()
{
/** return 10467185;
* Provides the basic foliage color based on the biome temperature and rainfall }
*/
public int getBiomeFoliageColor() /**
{ * Provides the basic foliage color based on the biome temperature and rainfall
return 13225573; */
} @Override
public int getBiomeFoliageColor()
{
return 13225573;
}
} }

View File

@ -10,41 +10,44 @@ import biomesoplenty.worldgen.WorldGenChaparral2;
public class BiomeGenBrushland extends BiomeGenBase public class BiomeGenBrushland extends BiomeGenBase
{ {
private BiomeDecoratorBOP customBiomeDecorator; private BiomeDecoratorBOP customBiomeDecorator;
public BiomeGenBrushland(int par1) public BiomeGenBrushland(int par1)
{ {
super(par1); super(par1);
this.theBiomeDecorator = new BiomeDecoratorBOP(this); theBiomeDecorator = new BiomeDecoratorBOP(this);
this.customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator; customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator;
this.customBiomeDecorator.treesPerChunk = 10; customBiomeDecorator.treesPerChunk = 10;
this.customBiomeDecorator.grassPerChunk = 6; customBiomeDecorator.grassPerChunk = 6;
this.customBiomeDecorator.thornsPerChunk = 4; customBiomeDecorator.thornsPerChunk = 4;
this.customBiomeDecorator.flowersPerChunk = -999; customBiomeDecorator.flowersPerChunk = -999;
this.customBiomeDecorator.generateQuicksand = true; customBiomeDecorator.generateQuicksand = true;
} }
/**
* Gets a WorldGen appropriate for this biome.
*/
public WorldGenerator getRandomWorldGenForTrees(Random par1Random)
{
return (WorldGenerator)(par1Random.nextInt(2) == 0 ? new WorldGenBrush2() : (par1Random.nextInt(5) == 0 ? new WorldGenBrush1() : new WorldGenChaparral2()));
}
/** /**
* Provides the basic grass color based on the biome temperature and rainfall * Gets a WorldGen appropriate for this biome.
*/ */
public int getBiomeGrassColor() @Override
{ public WorldGenerator getRandomWorldGenForTrees(Random par1Random)
return 13222271; {
} return par1Random.nextInt(2) == 0 ? new WorldGenBrush2() : (par1Random.nextInt(5) == 0 ? new WorldGenBrush1() : new WorldGenChaparral2());
}
/** /**
* Provides the basic foliage color based on the biome temperature and rainfall * Provides the basic grass color based on the biome temperature and rainfall
*/ */
public int getBiomeFoliageColor() @Override
{ public int getBiomeGrassColor()
return 11716223; {
} return 13222271;
}
/**
* Provides the basic foliage color based on the biome temperature and rainfall
*/
@Override
public int getBiomeFoliageColor()
{
return 11716223;
}
} }

View File

@ -10,45 +10,48 @@ import biomesoplenty.worldgen.WorldGenPineTree;
public class BiomeGenCanyon extends BiomeGenBase public class BiomeGenCanyon extends BiomeGenBase
{ {
private BiomeDecoratorBOP customBiomeDecorator; private BiomeDecoratorBOP customBiomeDecorator;
public BiomeGenCanyon(int par1) public BiomeGenCanyon(int par1)
{ {
super(par1); super(par1);
this.spawnableCreatureList.clear(); spawnableCreatureList.clear();
this.theBiomeDecorator = new BiomeDecoratorBOP(this); theBiomeDecorator = new BiomeDecoratorBOP(this);
this.customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator; customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator;
this.topBlock = (byte)Blocks.hardDirt.get().blockID; topBlock = (byte)Blocks.hardDirt.get().blockID;
this.fillerBlock = (byte)Blocks.hardDirt.get().blockID; fillerBlock = (byte)Blocks.hardDirt.get().blockID;
this.customBiomeDecorator.treesPerChunk = 7; customBiomeDecorator.treesPerChunk = 7;
this.customBiomeDecorator.flowersPerChunk = -999; customBiomeDecorator.flowersPerChunk = -999;
this.customBiomeDecorator.canyonGrassPerChunk = 5; customBiomeDecorator.canyonGrassPerChunk = 5;
this.customBiomeDecorator.aloePerChunk = 2; customBiomeDecorator.aloePerChunk = 2;
this.customBiomeDecorator.generatePumpkins = false; customBiomeDecorator.generatePumpkins = false;
this.customBiomeDecorator.generateCanyon = true; customBiomeDecorator.generateCanyon = true;
} }
/**
* Gets a WorldGen appropriate for this biome.
*/
public WorldGenerator getRandomWorldGenForTrees(Random par1Random)
{
return (WorldGenerator)(par1Random.nextInt(9) == 0 ? new WorldGenPineTree() : new WorldGenCanyonShrub(0,0));
}
/** /**
* Provides the basic foliage color based on the biome temperature and rainfall * Gets a WorldGen appropriate for this biome.
*/ */
public int getBiomeFoliageColor() @Override
{ public WorldGenerator getRandomWorldGenForTrees(Random par1Random)
return 11123300; {
} return par1Random.nextInt(9) == 0 ? new WorldGenPineTree() : new WorldGenCanyonShrub(0,0);
}
/**
* Provides the basic foliage color based on the biome temperature and rainfall /**
*/ * Provides the basic foliage color based on the biome temperature and rainfall
public int getBiomeGrassColor() */
{ @Override
return 11123300; public int getBiomeFoliageColor()
} {
return 11123300;
}
/**
* Provides the basic foliage color based on the biome temperature and rainfall
*/
@Override
public int getBiomeGrassColor()
{
return 11123300;
}
} }

View File

@ -14,62 +14,66 @@ import biomesoplenty.worldgen.WorldGenChaparral3;
public class BiomeGenChaparral extends BiomeGenBase public class BiomeGenChaparral extends BiomeGenBase
{ {
private BiomeDecoratorBOP customBiomeDecorator; private BiomeDecoratorBOP customBiomeDecorator;
public BiomeGenChaparral(int par1) public BiomeGenChaparral(int par1)
{ {
super(par1); super(par1);
this.spawnableCreatureList.clear(); spawnableCreatureList.clear();
this.theBiomeDecorator = new BiomeDecoratorBOP(this); theBiomeDecorator = new BiomeDecoratorBOP(this);
this.customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator; customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator;
this.customBiomeDecorator.treesPerChunk = 8; customBiomeDecorator.treesPerChunk = 8;
this.customBiomeDecorator.grassPerChunk = 20; customBiomeDecorator.grassPerChunk = 20;
this.customBiomeDecorator.bushesPerChunk = 10; customBiomeDecorator.bushesPerChunk = 10;
this.customBiomeDecorator.berryBushesPerChunk = 2; customBiomeDecorator.berryBushesPerChunk = 2;
this.customBiomeDecorator.generateStoneInGrass = true; customBiomeDecorator.generateStoneInGrass = true;
this.customBiomeDecorator.generatePumpkins = false; customBiomeDecorator.generatePumpkins = false;
} }
/**
* Gets a WorldGen appropriate for this biome.
*/
public WorldGenerator getRandomWorldGenForTrees(Random par1Random)
{
return (WorldGenerator)(par1Random.nextInt(2) == 0 ? new WorldGenChaparral2() : (par1Random.nextInt(5) == 0 ? new WorldGenChaparral1(0, 0) : new WorldGenChaparral3()));
}
/**
* Gets a WorldGen appropriate for this biome.
*/
public WorldGenerator getRandomWorldGenForGrass(Random par1Random)
{
return par1Random.nextInt(2) == 0 ? new WorldGenTallGrass(Blocks.foliage.get().blockID, 2) : new WorldGenTallGrass(Block.tallGrass.blockID, 1);
}
public void decorate(World par1World, Random par2Random, int par3, int par4)
{
super.decorate(par1World, par2Random, par3, par4);
int var5 = 3 + par2Random.nextInt(6);
for (int var6 = 0; var6 < var5; ++var6) /**
{ * Gets a WorldGen appropriate for this biome.
int var7 = par3 + par2Random.nextInt(16); */
int var8 = par2Random.nextInt(28) + 4; @Override
int var9 = par4 + par2Random.nextInt(16); public WorldGenerator getRandomWorldGenForTrees(Random par1Random)
int var10 = par1World.getBlockId(var7, var8, var9); {
return par1Random.nextInt(2) == 0 ? new WorldGenChaparral2() : (par1Random.nextInt(5) == 0 ? new WorldGenChaparral1(0, 0) : new WorldGenChaparral3());
}
if (var10 == Block.stone.blockID) /**
{ * Gets a WorldGen appropriate for this biome.
par1World.setBlock(var7, var8, var9, Block.oreEmerald.blockID, 0, 2); */
} @Override
} public WorldGenerator getRandomWorldGenForGrass(Random par1Random)
} {
return par1Random.nextInt(2) == 0 ? new WorldGenTallGrass(Blocks.foliage.get().blockID, 2) : new WorldGenTallGrass(Block.tallGrass.blockID, 1);
}
/** @Override
* Provides the basic grass color based on the biome temperature and rainfall public void decorate(World par1World, Random par2Random, int par3, int par4)
*/ {
public int getBiomeGrassColor() super.decorate(par1World, par2Random, par3, par4);
{ int var5 = 3 + par2Random.nextInt(6);
return 12638301;
} for (int var6 = 0; var6 < var5; ++var6)
{
int var7 = par3 + par2Random.nextInt(16);
int var8 = par2Random.nextInt(28) + 4;
int var9 = par4 + par2Random.nextInt(16);
int var10 = par1World.getBlockId(var7, var8, var9);
if (var10 == Block.stone.blockID)
{
par1World.setBlock(var7, var8, var9, Block.oreEmerald.blockID, 0, 2);
}
}
}
/**
* Provides the basic grass color based on the biome temperature and rainfall
*/
@Override
public int getBiomeGrassColor()
{
return 12638301;
}
} }

View File

@ -9,41 +9,44 @@ import biomesoplenty.worldgen.WorldGenCherry2;
public class BiomeGenCherryBlossomGrove extends BiomeGenBase public class BiomeGenCherryBlossomGrove extends BiomeGenBase
{ {
private BiomeDecoratorBOP customBiomeDecorator; private BiomeDecoratorBOP customBiomeDecorator;
public BiomeGenCherryBlossomGrove(int par1) public BiomeGenCherryBlossomGrove(int par1)
{ {
super(par1); super(par1);
this.theBiomeDecorator = new BiomeDecoratorBOP(this); theBiomeDecorator = new BiomeDecoratorBOP(this);
this.customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator; customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator;
this.customBiomeDecorator.treesPerChunk = 3; customBiomeDecorator.treesPerChunk = 3;
this.customBiomeDecorator.flowersPerChunk = -999; customBiomeDecorator.flowersPerChunk = -999;
this.customBiomeDecorator.pinkFlowersPerChunk = 15; customBiomeDecorator.pinkFlowersPerChunk = 15;
this.customBiomeDecorator.whiteFlowersPerChunk = 30; customBiomeDecorator.whiteFlowersPerChunk = 30;
this.customBiomeDecorator.tinyFlowersPerChunk = 25; customBiomeDecorator.tinyFlowersPerChunk = 25;
this.customBiomeDecorator.grassPerChunk = 15; customBiomeDecorator.grassPerChunk = 15;
this.customBiomeDecorator.lilyflowersPerChunk = 9; customBiomeDecorator.lilyflowersPerChunk = 9;
this.customBiomeDecorator.generatePumpkins = false; customBiomeDecorator.generatePumpkins = false;
} }
/** /**
* Gets a WorldGen appropriate for this biome. * Gets a WorldGen appropriate for this biome.
*/ */
public WorldGenerator getRandomWorldGenForTrees(Random par1Random) @Override
{ public WorldGenerator getRandomWorldGenForTrees(Random par1Random)
return (WorldGenerator)(par1Random.nextInt(3) == 0 ? new WorldGenCherry2(false) : new WorldGenCherry1(false)); {
} return par1Random.nextInt(3) == 0 ? new WorldGenCherry2(false) : new WorldGenCherry1(false);
}
/** /**
* Provides the basic grass color based on the biome temperature and rainfall * Provides the basic grass color based on the biome temperature and rainfall
*/ */
public int getBiomeGrassColor() @Override
{ public int getBiomeGrassColor()
return 10747818; {
} return 10747818;
}
public int getBiomeFoliageColor()
{ @Override
return 10747818; public int getBiomeFoliageColor()
} {
return 10747818;
}
} }

View File

@ -16,56 +16,59 @@ import biomesoplenty.worldgen.WorldGenTaiga9;
public class BiomeGenConiferousForest extends BiomeGenBase public class BiomeGenConiferousForest extends BiomeGenBase
{ {
private BiomeDecoratorBOP customBiomeDecorator; private BiomeDecoratorBOP customBiomeDecorator;
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
public BiomeGenConiferousForest(int par1) public BiomeGenConiferousForest(int par1)
{ {
super(par1); super(par1);
this.spawnableCreatureList.add(new SpawnListEntry(EntityWolf.class, 8, 4, 4)); spawnableCreatureList.add(new SpawnListEntry(EntityWolf.class, 8, 4, 4));
this.theBiomeDecorator = new BiomeDecoratorBOP(this); theBiomeDecorator = new BiomeDecoratorBOP(this);
this.customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator; customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator;
this.customBiomeDecorator.treesPerChunk = 6; customBiomeDecorator.treesPerChunk = 6;
this.customBiomeDecorator.grassPerChunk = 10; customBiomeDecorator.grassPerChunk = 10;
this.customBiomeDecorator.toadstoolsPerChunk = 3; customBiomeDecorator.toadstoolsPerChunk = 3;
this.customBiomeDecorator.violetsPerChunk = 2; customBiomeDecorator.violetsPerChunk = 2;
this.customBiomeDecorator.blueMilksPerChunk = 1; customBiomeDecorator.blueMilksPerChunk = 1;
this.customBiomeDecorator.poisonIvyPerChunk = 1; customBiomeDecorator.poisonIvyPerChunk = 1;
this.customBiomeDecorator.berryBushesPerChunk = 1; customBiomeDecorator.berryBushesPerChunk = 1;
} }
/** /**
* Gets a WorldGen appropriate for this biome. * Gets a WorldGen appropriate for this biome.
*/ */
public WorldGenerator getRandomWorldGenForTrees(Random par1Random) @Override
{ public WorldGenerator getRandomWorldGenForTrees(Random par1Random)
return (WorldGenerator)(par1Random.nextInt(5) == 0 ? new WorldGenTaiga3(false) : (par1Random.nextInt(3) == 0 ? new WorldGenTaiga4(false) : new WorldGenTaiga9(false))); {
} return par1Random.nextInt(5) == 0 ? new WorldGenTaiga3(false) : (par1Random.nextInt(3) == 0 ? new WorldGenTaiga4(false) : new WorldGenTaiga9(false));
}
/**
* Gets a WorldGen appropriate for this biome.
*/
public WorldGenerator getRandomWorldGenForGrass(Random par1Random)
{
return par1Random.nextInt(2) == 0 ? new WorldGenTallGrass(Block.tallGrass.blockID, 1) : new WorldGenTallGrass(Blocks.foliage.get().blockID, 2);
}
public void decorate(World par1World, Random par2Random, int par3, int par4)
{
super.decorate(par1World, par2Random, par3, par4);
int var5 = 3 + par2Random.nextInt(6);
for (int var6 = 0; var6 < var5; ++var6) /**
{ * Gets a WorldGen appropriate for this biome.
int var7 = par3 + par2Random.nextInt(16); */
int var8 = par2Random.nextInt(28) + 4; @Override
int var9 = par4 + par2Random.nextInt(16); public WorldGenerator getRandomWorldGenForGrass(Random par1Random)
int var10 = par1World.getBlockId(var7, var8, var9); {
return par1Random.nextInt(2) == 0 ? new WorldGenTallGrass(Block.tallGrass.blockID, 1) : new WorldGenTallGrass(Blocks.foliage.get().blockID, 2);
}
if (var10 == Block.stone.blockID) @Override
{ public void decorate(World par1World, Random par2Random, int par3, int par4)
par1World.setBlock(var7, var8, var9, Block.oreEmerald.blockID, 0, 2); {
} super.decorate(par1World, par2Random, par3, par4);
} int var5 = 3 + par2Random.nextInt(6);
}
for (int var6 = 0; var6 < var5; ++var6)
{
int var7 = par3 + par2Random.nextInt(16);
int var8 = par2Random.nextInt(28) + 4;
int var9 = par4 + par2Random.nextInt(16);
int var10 = par1World.getBlockId(var7, var8, var9);
if (var10 == Block.stone.blockID)
{
par1World.setBlock(var7, var8, var9, Block.oreEmerald.blockID, 0, 2);
}
}
}
} }

View File

@ -12,33 +12,35 @@ import biomesoplenty.worldgen.WorldGenTaiga9;
public class BiomeGenConiferousForestSnow extends BiomeGenBase public class BiomeGenConiferousForestSnow extends BiomeGenBase
{ {
private BiomeDecoratorBOP customBiomeDecorator; private BiomeDecoratorBOP customBiomeDecorator;
public BiomeGenConiferousForestSnow(int par1) public BiomeGenConiferousForestSnow(int par1)
{ {
super(par1); super(par1);
this.spawnableCreatureList.clear(); spawnableCreatureList.clear();
this.theBiomeDecorator = new BiomeDecoratorBOP(this); theBiomeDecorator = new BiomeDecoratorBOP(this);
this.customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator; customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator;
this.customBiomeDecorator.treesPerChunk = 3; customBiomeDecorator.treesPerChunk = 3;
this.customBiomeDecorator.flowersPerChunk = -999; customBiomeDecorator.flowersPerChunk = -999;
this.customBiomeDecorator.sandPerChunk = -999; customBiomeDecorator.sandPerChunk = -999;
this.customBiomeDecorator.sandPerChunk2 = -999; customBiomeDecorator.sandPerChunk2 = -999;
} }
/** /**
* Gets a WorldGen appropriate for this biome. * Gets a WorldGen appropriate for this biome.
*/ */
public WorldGenerator getRandomWorldGenForTrees(Random par1Random) @Override
{ public WorldGenerator getRandomWorldGenForTrees(Random par1Random)
return (WorldGenerator)(par1Random.nextInt(5) == 0 ? new WorldGenTaiga3(false) : (par1Random.nextInt(3) == 0 ? new WorldGenTaiga4(false) : new WorldGenTaiga9(false))); {
} return par1Random.nextInt(5) == 0 ? new WorldGenTaiga3(false) : (par1Random.nextInt(3) == 0 ? new WorldGenTaiga4(false) : new WorldGenTaiga9(false));
}
/**
* Gets a WorldGen appropriate for this biome. /**
*/ * Gets a WorldGen appropriate for this biome.
public WorldGenerator getRandomWorldGenForGrass(Random par1Random) */
{ @Override
return par1Random.nextInt(2) == 0 ? new WorldGenTallGrass(Blocks.foliage.get().blockID, 2) : new WorldGenTallGrass(Blocks.foliage.get().blockID, 1); public WorldGenerator getRandomWorldGenForGrass(Random par1Random)
} {
return par1Random.nextInt(2) == 0 ? new WorldGenTallGrass(Blocks.foliage.get().blockID, 2) : new WorldGenTallGrass(Blocks.foliage.get().blockID, 1);
}
} }

View File

@ -8,45 +8,44 @@ import biomesoplenty.configuration.BOPConfiguration;
public class BiomeGenCrag extends BiomeGenBase public class BiomeGenCrag extends BiomeGenBase
{ {
private BiomeDecoratorBOP customBiomeDecorator; private BiomeDecoratorBOP customBiomeDecorator;
public BiomeGenCrag(int par1) public BiomeGenCrag(int par1)
{ {
super(par1); super(par1);
this.theBiomeDecorator = new BiomeDecoratorBOP(this); theBiomeDecorator = new BiomeDecoratorBOP(this);
this.customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator; customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator;
this.customBiomeDecorator.treesPerChunk = -999; customBiomeDecorator.treesPerChunk = -999;
this.spawnableCreatureList.clear(); spawnableCreatureList.clear();
this.spawnableWaterCreatureList.clear(); spawnableWaterCreatureList.clear();
this.topBlock = (byte)Blocks.cragRock.get().blockID; topBlock = (byte)Blocks.cragRock.get().blockID;
this.fillerBlock = (byte)Blocks.cragRock.get().blockID; fillerBlock = (byte)Blocks.cragRock.get().blockID;
this.waterColorMultiplier = 944693; waterColorMultiplier = 944693;
} }
/**
* takes temperature, returns color
*/
public int getSkyColorByTemp(float par1)
{
if (BOPConfiguration.skyColors = true)
{
return 4944498;
}
else
{
par1 /= 3.0F;
if (par1 < -1.0F) /**
{ * takes temperature, returns color
par1 = -1.0F; */
} @Override
public int getSkyColorByTemp(float par1)
{
if (BOPConfiguration.skyColors = true)
return 4944498;
else
{
par1 /= 3.0F;
if (par1 > 1.0F) if (par1 < -1.0F)
{ {
par1 = 1.0F; par1 = -1.0F;
} }
return Color.getHSBColor(0.62222224F - par1 * 0.05F, 0.5F + par1 * 0.1F, 1.0F).getRGB(); if (par1 > 1.0F)
} {
} par1 = 1.0F;
}
return Color.getHSBColor(0.62222224F - par1 * 0.05F, 0.5F + par1 * 0.1F, 1.0F).getRGB();
}
}
} }

View File

@ -15,58 +15,61 @@ import biomesoplenty.worldgen.WorldGenTaiga5;
public class BiomeGenDeadForest extends BiomeGenBase public class BiomeGenDeadForest extends BiomeGenBase
{ {
private BiomeDecoratorBOP customBiomeDecorator; private BiomeDecoratorBOP customBiomeDecorator;
public BiomeGenDeadForest(int par1) public BiomeGenDeadForest(int par1)
{ {
super(par1); super(par1);
this.theBiomeDecorator = new BiomeDecoratorBOP(this); theBiomeDecorator = new BiomeDecoratorBOP(this);
this.customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator; customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator;
this.customBiomeDecorator.treesPerChunk = 3; customBiomeDecorator.treesPerChunk = 3;
this.customBiomeDecorator.grassPerChunk = 1; customBiomeDecorator.grassPerChunk = 1;
this.customBiomeDecorator.thornsPerChunk = 2; customBiomeDecorator.thornsPerChunk = 2;
this.customBiomeDecorator.flowersPerChunk = -999; customBiomeDecorator.flowersPerChunk = -999;
this.customBiomeDecorator.reedsPerChunk = -999; customBiomeDecorator.reedsPerChunk = -999;
} }
/** /**
* Gets a WorldGen appropriate for this biome. * Gets a WorldGen appropriate for this biome.
*/ */
public WorldGenerator getRandomWorldGenForGrass(Random par1Random) @Override
{ public WorldGenerator getRandomWorldGenForGrass(Random par1Random)
return par1Random.nextInt(9) == 0 ? new WorldGenTallGrass(Block.tallGrass.blockID, 0) : new WorldGenTallGrass(Blocks.foliage.get().blockID, 1); {
} return par1Random.nextInt(9) == 0 ? new WorldGenTallGrass(Block.tallGrass.blockID, 0) : new WorldGenTallGrass(Blocks.foliage.get().blockID, 1);
}
/**
* Gets a WorldGen appropriate for this biome. /**
*/ * Gets a WorldGen appropriate for this biome.
public WorldGenerator getRandomWorldGenForTrees(Random par1Random) */
{ @Override
return (WorldGenerator)(par1Random.nextInt(3) == 0 ? new WorldGenDeadTree(false) : (par1Random.nextInt(4) == 0 ? new WorldGenTaiga5(false): new WorldGenDeadTree2(false))); public WorldGenerator getRandomWorldGenForTrees(Random par1Random)
} {
return par1Random.nextInt(3) == 0 ? new WorldGenDeadTree(false) : (par1Random.nextInt(4) == 0 ? new WorldGenTaiga5(false): new WorldGenDeadTree2(false));
/** }
* Provides the basic grass color based on the biome temperature and rainfall
*/ /**
public int getBiomeGrassColor() * Provides the basic grass color based on the biome temperature and rainfall
{ */
return 12362085; @Override
} public int getBiomeGrassColor()
{
public int getBiomeFoliageColor() return 12362085;
{ }
return 12362085;
} @Override
public int getBiomeFoliageColor()
/** {
* takes temperature, returns color return 12362085;
*/ }
public int getSkyColorByTemp(float par1)
{ /**
* takes temperature, returns color
*/
@Override
public int getSkyColorByTemp(float par1)
{
if (BOPConfiguration.skyColors = true) if (BOPConfiguration.skyColors = true)
{ return 9873591;
return 9873591;
}
else else
{ {
par1 /= 3.0F; par1 /= 3.0F;
@ -83,5 +86,5 @@ public class BiomeGenDeadForest extends BiomeGenBase
return Color.getHSBColor(0.62222224F - par1 * 0.05F, 0.5F + par1 * 0.1F, 1.0F).getRGB(); return Color.getHSBColor(0.62222224F - par1 * 0.05F, 0.5F + par1 * 0.1F, 1.0F).getRGB();
} }
} }
} }

View File

@ -14,59 +14,62 @@ import biomesoplenty.worldgen.WorldGenTaiga5;
public class BiomeGenDeadForestSnow extends BiomeGenBase public class BiomeGenDeadForestSnow extends BiomeGenBase
{ {
private BiomeDecoratorBOP customBiomeDecorator; private BiomeDecoratorBOP customBiomeDecorator;
public BiomeGenDeadForestSnow(int par1) public BiomeGenDeadForestSnow(int par1)
{ {
super(par1); super(par1);
this.theBiomeDecorator = new BiomeDecoratorBOP(this); theBiomeDecorator = new BiomeDecoratorBOP(this);
this.customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator; customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator;
this.customBiomeDecorator.treesPerChunk = 2; customBiomeDecorator.treesPerChunk = 2;
this.customBiomeDecorator.flowersPerChunk = -999; customBiomeDecorator.flowersPerChunk = -999;
this.customBiomeDecorator.reedsPerChunk = -999; customBiomeDecorator.reedsPerChunk = -999;
} }
/** /**
* Gets a WorldGen appropriate for this biome. * Gets a WorldGen appropriate for this biome.
*/ */
public WorldGenerator getRandomWorldGenForGrass(Random par1Random) @Override
{ public WorldGenerator getRandomWorldGenForGrass(Random par1Random)
return new WorldGenTallGrass(Blocks.foliage.get().blockID, 1); {
} return new WorldGenTallGrass(Blocks.foliage.get().blockID, 1);
}
/**
* Gets a WorldGen appropriate for this biome. /**
*/ * Gets a WorldGen appropriate for this biome.
public WorldGenerator getRandomWorldGenForTrees(Random par1Random) */
{ @Override
return (WorldGenerator)(par1Random.nextInt(6) == 0 ? new WorldGenDeadTree2(false) : (par1Random.nextInt(3) == 0 ? new WorldGenTaiga5(false): new WorldGenDeadTree(false))); public WorldGenerator getRandomWorldGenForTrees(Random par1Random)
} {
return par1Random.nextInt(6) == 0 ? new WorldGenDeadTree2(false) : (par1Random.nextInt(3) == 0 ? new WorldGenTaiga5(false): new WorldGenDeadTree(false));
/** }
* Provides the basic grass color based on the biome temperature and rainfall
*/ /**
public int getBiomeGrassColor() * Provides the basic grass color based on the biome temperature and rainfall
{ */
return 11176526; @Override
} public int getBiomeGrassColor()
{
/** return 11176526;
* Provides the basic foliage color based on the biome temperature and rainfall }
*/
public int getBiomeFoliageColor() /**
{ * Provides the basic foliage color based on the biome temperature and rainfall
return 11903827; */
} @Override
public int getBiomeFoliageColor()
/** {
* takes temperature, returns color return 11903827;
*/ }
public int getSkyColorByTemp(float par1)
{ /**
* takes temperature, returns color
*/
@Override
public int getSkyColorByTemp(float par1)
{
if (BOPConfiguration.skyColors = true) if (BOPConfiguration.skyColors = true)
{ return 9873591;
return 9873591;
}
else else
{ {
par1 /= 3.0F; par1 /= 3.0F;
@ -83,5 +86,5 @@ public class BiomeGenDeadForestSnow extends BiomeGenBase
return Color.getHSBColor(0.62222224F - par1 * 0.05F, 0.5F + par1 * 0.1F, 1.0F).getRGB(); return Color.getHSBColor(0.62222224F - par1 * 0.05F, 0.5F + par1 * 0.1F, 1.0F).getRGB();
} }
} }
} }

View File

@ -13,66 +13,69 @@ import biomesoplenty.worldgen.WorldGenDeadTree;
public class BiomeGenDeadSwamp extends BiomeGenBase public class BiomeGenDeadSwamp extends BiomeGenBase
{ {
private BiomeDecoratorBOP customBiomeDecorator; private BiomeDecoratorBOP customBiomeDecorator;
public BiomeGenDeadSwamp(int par1) public BiomeGenDeadSwamp(int par1)
{ {
super(par1); super(par1);
this.theBiomeDecorator = new BiomeDecoratorBOP(this); theBiomeDecorator = new BiomeDecoratorBOP(this);
this.customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator; customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator;
this.customBiomeDecorator.treesPerChunk = 2; customBiomeDecorator.treesPerChunk = 2;
this.customBiomeDecorator.grassPerChunk = 25; customBiomeDecorator.grassPerChunk = 25;
this.customBiomeDecorator.highGrassPerChunk = 1; customBiomeDecorator.highGrassPerChunk = 1;
this.customBiomeDecorator.flowersPerChunk = -999; customBiomeDecorator.flowersPerChunk = -999;
this.customBiomeDecorator.reedsPerChunk = -999; customBiomeDecorator.reedsPerChunk = -999;
this.customBiomeDecorator.mudPerChunk = 3; customBiomeDecorator.mudPerChunk = 3;
this.customBiomeDecorator.mudPerChunk2 = 3; customBiomeDecorator.mudPerChunk2 = 3;
this.customBiomeDecorator.sandPerChunk = -999; customBiomeDecorator.sandPerChunk = -999;
this.customBiomeDecorator.sandPerChunk2 = -999; customBiomeDecorator.sandPerChunk2 = -999;
this.customBiomeDecorator.reedsBOPPerChunk = 2; customBiomeDecorator.reedsBOPPerChunk = 2;
this.spawnableCreatureList.clear(); spawnableCreatureList.clear();
this.spawnableWaterCreatureList.clear(); spawnableWaterCreatureList.clear();
this.waterColorMultiplier = 10661201; waterColorMultiplier = 10661201;
} }
/** /**
* Gets a WorldGen appropriate for this biome. * Gets a WorldGen appropriate for this biome.
*/ */
public WorldGenerator getRandomWorldGenForGrass(Random par1Random) @Override
{ public WorldGenerator getRandomWorldGenForGrass(Random par1Random)
return par1Random.nextInt(9) == 0 ? new WorldGenTallGrass(Block.tallGrass.blockID, 1) : new WorldGenTallGrass(Blocks.foliage.get().blockID, 2); {
} return par1Random.nextInt(9) == 0 ? new WorldGenTallGrass(Block.tallGrass.blockID, 1) : new WorldGenTallGrass(Blocks.foliage.get().blockID, 2);
}
/**
* Gets a WorldGen appropriate for this biome. /**
*/ * Gets a WorldGen appropriate for this biome.
public WorldGenerator getRandomWorldGenForTrees(Random par1Random) */
{ @Override
return new WorldGenDeadTree(false); public WorldGenerator getRandomWorldGenForTrees(Random par1Random)
} {
return new WorldGenDeadTree(false);
/** }
* Provides the basic grass color based on the biome temperature and rainfall
*/ /**
public int getBiomeGrassColor() * Provides the basic grass color based on the biome temperature and rainfall
{ */
return 6713420; @Override
} public int getBiomeGrassColor()
{
public int getBiomeFoliageColor() return 6713420;
{ }
return 6713420;
} @Override
public int getBiomeFoliageColor()
/** {
* takes temperature, returns color return 6713420;
*/ }
public int getSkyColorByTemp(float par1)
{ /**
* takes temperature, returns color
*/
@Override
public int getSkyColorByTemp(float par1)
{
if (BOPConfiguration.skyColors = true) if (BOPConfiguration.skyColors = true)
{ return 6451816;
return 6451816;
}
else else
{ {
par1 /= 3.0F; par1 /= 3.0F;
@ -89,5 +92,5 @@ public class BiomeGenDeadSwamp extends BiomeGenBase
return Color.getHSBColor(0.62222224F - par1 * 0.05F, 0.5F + par1 * 0.1F, 1.0F).getRGB(); return Color.getHSBColor(0.62222224F - par1 * 0.05F, 0.5F + par1 * 0.1F, 1.0F).getRGB();
} }
} }
} }

View File

@ -22,78 +22,79 @@ public class BiomeGenDeadlands extends BiomeGenBase
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
public BiomeGenDeadlands(int par1) public BiomeGenDeadlands(int par1)
{ {
super(par1); super(par1);
this.topBlock = (byte)Blocks.ash.get().blockID; topBlock = (byte)Blocks.ash.get().blockID;
this.fillerBlock = (byte)Blocks.ash.get().blockID; fillerBlock = (byte)Blocks.ash.get().blockID;
this.theBiomeDecorator = new BiomeDecoratorBOP(this); theBiomeDecorator = new BiomeDecoratorBOP(this);
this.customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator; customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator;
this.customBiomeDecorator.treesPerChunk = -999; customBiomeDecorator.treesPerChunk = -999;
this.customBiomeDecorator.grassPerChunk = 15; customBiomeDecorator.grassPerChunk = 15;
this.customBiomeDecorator.flowersPerChunk = -999; customBiomeDecorator.flowersPerChunk = -999;
this.customBiomeDecorator.mushroomsPerChunk = -999; customBiomeDecorator.mushroomsPerChunk = -999;
this.customBiomeDecorator.sandPerChunk = -999; customBiomeDecorator.sandPerChunk = -999;
this.customBiomeDecorator.sandPerChunk2 = -999; customBiomeDecorator.sandPerChunk2 = -999;
this.customBiomeDecorator.lavaLakesPerChunk = 25; customBiomeDecorator.lavaLakesPerChunk = 25;
this.customBiomeDecorator.smolderingGrassPerChunk = 5; customBiomeDecorator.smolderingGrassPerChunk = 5;
this.customBiomeDecorator.generatePits = true; customBiomeDecorator.generatePits = true;
this.waterColorMultiplier = 16711680; waterColorMultiplier = 16711680;
this.spawnableCreatureList.clear(); spawnableCreatureList.clear();
this.spawnableWaterCreatureList.clear(); spawnableWaterCreatureList.clear();
this.spawnableCreatureList.add(new SpawnListEntry(EntityCreeper.class, 30, 1, 7)); spawnableCreatureList.add(new SpawnListEntry(EntityCreeper.class, 30, 1, 7));
this.spawnableCaveCreatureList.add(new SpawnListEntry(EntityBat.class, 10, 8, 8)); spawnableCaveCreatureList.add(new SpawnListEntry(EntityBat.class, 10, 8, 8));
this.theWorldGenerator = new WorldGenMinable(Block.silverfish.blockID, 8); theWorldGenerator = new WorldGenMinable(Block.silverfish.blockID, 8);
} }
/**
* Gets a WorldGen appropriate for this biome.
*/
public WorldGenerator getRandomWorldGenForGrass(Random par1Random)
{
return new WorldGenDeadlands();
}
public void decorate(World par1World, Random par2Random, int par3, int par4)
{
super.decorate(par1World, par2Random, par3, par4);
int var5 = 3 + par2Random.nextInt(6);
int var6;
int var7;
int var8;
for (var5 = 0; var5 < 7; ++var5) /**
{ * Gets a WorldGen appropriate for this biome.
var6 = par3 + par2Random.nextInt(16); */
var7 = par2Random.nextInt(64); @Override
var8 = par4 + par2Random.nextInt(16); public WorldGenerator getRandomWorldGenForGrass(Random par1Random)
this.theWorldGenerator.generate(par1World, par2Random, var6, var7, var8); {
} return new WorldGenDeadlands();
} }
/** @Override
* takes temperature, returns color public void decorate(World par1World, Random par2Random, int par3, int par4)
*/ {
public int getSkyColorByTemp(float par1) super.decorate(par1World, par2Random, par3, par4);
{ int var5 = 3 + par2Random.nextInt(6);
if (BOPConfiguration.skyColors = true) int var6;
int var7;
int var8;
for (var5 = 0; var5 < 7; ++var5)
{ {
return 4464929; var6 = par3 + par2Random.nextInt(16);
} var7 = par2Random.nextInt(64);
else var8 = par4 + par2Random.nextInt(16);
{ theWorldGenerator.generate(par1World, par2Random, var6, var7, var8);
par1 /= 3.0F;
if (par1 < -1.0F)
{
par1 = -1.0F;
}
if (par1 > 1.0F)
{
par1 = 1.0F;
}
return Color.getHSBColor(0.62222224F - par1 * 0.05F, 0.5F + par1 * 0.1F, 1.0F).getRGB();
} }
} }
/**
* takes temperature, returns color
*/
@Override
public int getSkyColorByTemp(float par1)
{
if (BOPConfiguration.skyColors = true)
return 4464929;
else
{
par1 /= 3.0F;
if (par1 < -1.0F)
{
par1 = -1.0F;
}
if (par1 > 1.0F)
{
par1 = 1.0F;
}
return Color.getHSBColor(0.62222224F - par1 * 0.05F, 0.5F + par1 * 0.1F, 1.0F).getRGB();
}
}
} }

View File

@ -11,52 +11,56 @@ import biomesoplenty.worldgen.WorldGenDeciduous;
public class BiomeGenDeciduousForest extends BiomeGenBase public class BiomeGenDeciduousForest extends BiomeGenBase
{ {
private BiomeDecoratorBOP customBiomeDecorator; private BiomeDecoratorBOP customBiomeDecorator;
public BiomeGenDeciduousForest(int par1) public BiomeGenDeciduousForest(int par1)
{ {
super(par1); super(par1);
this.theBiomeDecorator = new BiomeDecoratorBOP(this); theBiomeDecorator = new BiomeDecoratorBOP(this);
this.customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator; customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator;
this.customBiomeDecorator.treesPerChunk = 15; customBiomeDecorator.treesPerChunk = 15;
this.customBiomeDecorator.grassPerChunk = 10; customBiomeDecorator.grassPerChunk = 10;
this.customBiomeDecorator.flowersPerChunk = -999; customBiomeDecorator.flowersPerChunk = -999;
this.customBiomeDecorator.toadstoolsPerChunk = 1; customBiomeDecorator.toadstoolsPerChunk = 1;
this.customBiomeDecorator.bushesPerChunk = 8; customBiomeDecorator.bushesPerChunk = 8;
this.customBiomeDecorator.berryBushesPerChunk = 2; customBiomeDecorator.berryBushesPerChunk = 2;
this.customBiomeDecorator.blueMilksPerChunk = 2; customBiomeDecorator.blueMilksPerChunk = 2;
this.customBiomeDecorator.poisonIvyPerChunk = 1; customBiomeDecorator.poisonIvyPerChunk = 1;
} }
/** /**
* Gets a WorldGen appropriate for this biome. * Gets a WorldGen appropriate for this biome.
*/ */
public WorldGenerator getRandomWorldGenForTrees(Random par1Random) @Override
{ public WorldGenerator getRandomWorldGenForTrees(Random par1Random)
return (WorldGenerator)(par1Random.nextInt(4) == 0 ? new WorldGenShrub(2,2) : new WorldGenDeciduous(false)); {
} return par1Random.nextInt(4) == 0 ? new WorldGenShrub(2,2) : new WorldGenDeciduous(false);
}
/**
* Gets a WorldGen appropriate for this biome. /**
*/ * Gets a WorldGen appropriate for this biome.
public WorldGenerator getRandomWorldGenForGrass(Random par1Random) */
{ @Override
return par1Random.nextInt(5) == 0 ? new WorldGenTallGrass(Blocks.foliage.get().blockID, 2) : new WorldGenTallGrass(Blocks.foliage.get().blockID, 1); public WorldGenerator getRandomWorldGenForGrass(Random par1Random)
} {
return par1Random.nextInt(5) == 0 ? new WorldGenTallGrass(Blocks.foliage.get().blockID, 2) : new WorldGenTallGrass(Blocks.foliage.get().blockID, 1);
/** }
* Provides the basic grass color based on the biome temperature and rainfall
*/ /**
public int getBiomeGrassColor() * Provides the basic grass color based on the biome temperature and rainfall
{ */
return 12695369; @Override
} public int getBiomeGrassColor()
{
/** return 12695369;
* Provides the basic foliage color based on the biome temperature and rainfall }
*/
public int getBiomeFoliageColor() /**
{ * Provides the basic foliage color based on the biome temperature and rainfall
return 12896570; */
} @Override
public int getBiomeFoliageColor()
{
return 12896570;
}
} }

View File

@ -9,36 +9,37 @@ import net.minecraft.world.gen.feature.WorldGenDesertWells;
public class BiomeGenDesertNew extends BiomeGenBase public class BiomeGenDesertNew extends BiomeGenBase
{ {
private BiomeDecoratorBOP customBiomeDecorator; private BiomeDecoratorBOP customBiomeDecorator;
public BiomeGenDesertNew(int par1) public BiomeGenDesertNew(int par1)
{ {
super(par1); super(par1);
this.spawnableCreatureList.clear(); spawnableCreatureList.clear();
this.topBlock = (byte)Block.sand.blockID; topBlock = (byte)Block.sand.blockID;
this.fillerBlock = (byte)Block.sand.blockID; fillerBlock = (byte)Block.sand.blockID;
this.theBiomeDecorator = new BiomeDecoratorBOP(this); theBiomeDecorator = new BiomeDecoratorBOP(this);
this.customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator; customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator;
this.customBiomeDecorator.treesPerChunk = -999; customBiomeDecorator.treesPerChunk = -999;
this.customBiomeDecorator.deadBushPerChunk = 2; customBiomeDecorator.deadBushPerChunk = 2;
this.customBiomeDecorator.reedsPerChunk = 50; customBiomeDecorator.reedsPerChunk = 50;
this.customBiomeDecorator.cactiPerChunk = 10; customBiomeDecorator.cactiPerChunk = 10;
this.customBiomeDecorator.desertSproutsPerChunk = 1; customBiomeDecorator.desertSproutsPerChunk = 1;
this.customBiomeDecorator.tinyCactiPerChunk = 5; customBiomeDecorator.tinyCactiPerChunk = 5;
this.customBiomeDecorator.generateQuicksand = true; customBiomeDecorator.generateQuicksand = true;
this.customBiomeDecorator.aloePerChunk = 2; customBiomeDecorator.aloePerChunk = 2;
} }
public void decorate(World par1World, Random par2Random, int par3, int par4) @Override
{ public void decorate(World par1World, Random par2Random, int par3, int par4)
super.decorate(par1World, par2Random, par3, par4); {
super.decorate(par1World, par2Random, par3, par4);
if (par2Random.nextInt(1000) == 0) if (par2Random.nextInt(1000) == 0)
{ {
int var5 = par3 + par2Random.nextInt(16) + 8; int var5 = par3 + par2Random.nextInt(16) + 8;
int var6 = par4 + par2Random.nextInt(16) + 8; int var6 = par4 + par2Random.nextInt(16) + 8;
WorldGenDesertWells var7 = new WorldGenDesertWells(); WorldGenDesertWells var7 = new WorldGenDesertWells();
var7.generate(par1World, par2Random, var5, par1World.getHeightValue(var5, var6) + 1, var6); var7.generate(par1World, par2Random, var5, par1World.getHeightValue(var5, var6) + 1, var6);
} }
} }
} }

View File

@ -8,49 +8,48 @@ import biomesoplenty.configuration.BOPConfiguration;
public class BiomeGenDunes extends BiomeGenBase public class BiomeGenDunes extends BiomeGenBase
{ {
private BiomeDecoratorBOP customBiomeDecorator; private BiomeDecoratorBOP customBiomeDecorator;
public BiomeGenDunes(int par1) public BiomeGenDunes(int par1)
{ {
super(par1); super(par1);
this.spawnableCreatureList.clear(); spawnableCreatureList.clear();
this.topBlock = (byte)Block.sand.blockID; topBlock = (byte)Block.sand.blockID;
this.fillerBlock = (byte)Block.sand.blockID; fillerBlock = (byte)Block.sand.blockID;
this.theBiomeDecorator = new BiomeDecoratorBOP(this); theBiomeDecorator = new BiomeDecoratorBOP(this);
this.customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator; customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator;
this.customBiomeDecorator.treesPerChunk = -999; customBiomeDecorator.treesPerChunk = -999;
this.customBiomeDecorator.deadBushPerChunk = -999; customBiomeDecorator.deadBushPerChunk = -999;
this.customBiomeDecorator.duneGrassPerChunk = 10; customBiomeDecorator.duneGrassPerChunk = 10;
this.customBiomeDecorator.desertSproutsPerChunk = 5; customBiomeDecorator.desertSproutsPerChunk = 5;
this.customBiomeDecorator.aloePerChunk = 1; customBiomeDecorator.aloePerChunk = 1;
this.customBiomeDecorator.reedsPerChunk = -999; customBiomeDecorator.reedsPerChunk = -999;
this.customBiomeDecorator.generateLakes = false; customBiomeDecorator.generateLakes = false;
} }
/**
* takes temperature, returns color
*/
public int getSkyColorByTemp(float par1)
{
if (BOPConfiguration.skyColors = true)
{
return 14203007;
}
else
{
par1 /= 3.0F;
if (par1 < -1.0F) /**
{ * takes temperature, returns color
par1 = -1.0F; */
} @Override
public int getSkyColorByTemp(float par1)
{
if (BOPConfiguration.skyColors = true)
return 14203007;
else
{
par1 /= 3.0F;
if (par1 > 1.0F) if (par1 < -1.0F)
{ {
par1 = 1.0F; par1 = -1.0F;
} }
return Color.getHSBColor(0.62222224F - par1 * 0.05F, 0.5F + par1 * 0.1F, 1.0F).getRGB(); if (par1 > 1.0F)
} {
} par1 = 1.0F;
}
return Color.getHSBColor(0.62222224F - par1 * 0.05F, 0.5F + par1 * 0.1F, 1.0F).getRGB();
}
}
} }

View File

@ -17,75 +17,80 @@ import biomesoplenty.worldgen.WorldGenMoss;
public class BiomeGenFen extends BiomeGenBase public class BiomeGenFen extends BiomeGenBase
{ {
private BiomeDecoratorBOP customBiomeDecorator; private BiomeDecoratorBOP customBiomeDecorator;
public BiomeGenFen(int par1) public BiomeGenFen(int par1)
{ {
super(par1); super(par1);
this.theBiomeDecorator = new BiomeDecoratorBOP(this); theBiomeDecorator = new BiomeDecoratorBOP(this);
this.customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator; customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator;
this.customBiomeDecorator.treesPerChunk = 10; customBiomeDecorator.treesPerChunk = 10;
this.customBiomeDecorator.grassPerChunk = 15; customBiomeDecorator.grassPerChunk = 15;
this.customBiomeDecorator.highGrassPerChunk = 1; customBiomeDecorator.highGrassPerChunk = 1;
this.customBiomeDecorator.waterlilyPerChunk = 1; customBiomeDecorator.waterlilyPerChunk = 1;
this.customBiomeDecorator.cattailsPerChunk = 1; customBiomeDecorator.cattailsPerChunk = 1;
this.customBiomeDecorator.highCattailsPerChunk = 1; customBiomeDecorator.highCattailsPerChunk = 1;
this.customBiomeDecorator.pondsPerChunk = 99; customBiomeDecorator.pondsPerChunk = 99;
this.customBiomeDecorator.toadstoolsPerChunk = 2; customBiomeDecorator.toadstoolsPerChunk = 2;
this.customBiomeDecorator.mushroomsPerChunk = 8; customBiomeDecorator.mushroomsPerChunk = 8;
this.customBiomeDecorator.mudPerChunk = 1; customBiomeDecorator.mudPerChunk = 1;
this.customBiomeDecorator.mudPerChunk2 = 1; customBiomeDecorator.mudPerChunk2 = 1;
this.customBiomeDecorator.sandPerChunk = -999; customBiomeDecorator.sandPerChunk = -999;
this.customBiomeDecorator.sandPerChunk2 = -999; customBiomeDecorator.sandPerChunk2 = -999;
this.customBiomeDecorator.reedsBOPPerChunk = 5; customBiomeDecorator.reedsBOPPerChunk = 5;
this.customBiomeDecorator.algaePerChunk = 1; customBiomeDecorator.algaePerChunk = 1;
this.customBiomeDecorator.portobellosPerChunk = 1; customBiomeDecorator.portobellosPerChunk = 1;
this.spawnableMonsterList.add(new SpawnListEntry(EntitySlime.class, 10, 1, 3)); spawnableMonsterList.add(new SpawnListEntry(EntitySlime.class, 10, 1, 3));
} }
/**
* Gets a WorldGen appropriate for this biome.
*/
public WorldGenerator getRandomWorldGenForTrees(Random par1Random)
{
return (WorldGenerator)(par1Random.nextInt(3) == 0 ? new WorldGenFen2(false) : (par1Random.nextInt(20) == 0 ? new WorldGenDeadTree(false) : new WorldGenFen1()));
}
public void decorate(World par1World, Random par2Random, int par3, int par4)
{
super.decorate(par1World, par2Random, par3, par4);
WorldGenMoss var5 = new WorldGenMoss();
for (int var6 = 0; var6 < 20; ++var6) /**
{ * Gets a WorldGen appropriate for this biome.
int var7 = par3 + par2Random.nextInt(16) + 8; */
byte var8 = 58; @Override
int var9 = par4 + par2Random.nextInt(16) + 8; public WorldGenerator getRandomWorldGenForTrees(Random par1Random)
var5.generate(par1World, par2Random, var7, var8, var9); {
} return par1Random.nextInt(3) == 0 ? new WorldGenFen2(false) : (par1Random.nextInt(20) == 0 ? new WorldGenDeadTree(false) : new WorldGenFen1());
} }
/** @Override
* Gets a WorldGen appropriate for this biome. public void decorate(World par1World, Random par2Random, int par3, int par4)
*/ {
public WorldGenerator getRandomWorldGenForGrass(Random par1Random) super.decorate(par1World, par2Random, par3, par4);
{ WorldGenMoss var5 = new WorldGenMoss();
return (par1Random.nextInt(4) == 0 ? new WorldGenTallGrass(Block.tallGrass.blockID, 1) : (par1Random.nextInt(3) == 0 ? new WorldGenTallGrass(Blocks.foliage.get().blockID, 2) : new WorldGenTallGrass(Blocks.foliage.get().blockID, 1)));
} for (int var6 = 0; var6 < 20; ++var6)
{
/** int var7 = par3 + par2Random.nextInt(16) + 8;
* Provides the basic grass color based on the biome temperature and rainfall byte var8 = 58;
*/ int var9 = par4 + par2Random.nextInt(16) + 8;
public int getBiomeGrassColor() var5.generate(par1World, par2Random, var7, var8, var9);
{ }
return 12240001; }
}
/**
/** * Gets a WorldGen appropriate for this biome.
* Provides the basic foliage color based on the biome temperature and rainfall */
*/ @Override
public int getBiomeFoliageColor() public WorldGenerator getRandomWorldGenForGrass(Random par1Random)
{ {
return 13547897; return (par1Random.nextInt(4) == 0 ? new WorldGenTallGrass(Block.tallGrass.blockID, 1) : (par1Random.nextInt(3) == 0 ? new WorldGenTallGrass(Blocks.foliage.get().blockID, 2) : new WorldGenTallGrass(Blocks.foliage.get().blockID, 1)));
} }
/**
* Provides the basic grass color based on the biome temperature and rainfall
*/
@Override
public int getBiomeGrassColor()
{
return 12240001;
}
/**
* Provides the basic foliage color based on the biome temperature and rainfall
*/
@Override
public int getBiomeFoliageColor()
{
return 13547897;
}
} }

View File

@ -8,40 +8,43 @@ import biomesoplenty.worldgen.WorldGenLargeTree;
public class BiomeGenField extends BiomeGenBase public class BiomeGenField extends BiomeGenBase
{ {
private BiomeDecoratorBOP customBiomeDecorator; private BiomeDecoratorBOP customBiomeDecorator;
public BiomeGenField(int par1) public BiomeGenField(int par1)
{ {
super(par1); super(par1);
this.theBiomeDecorator = new BiomeDecoratorBOP(this); theBiomeDecorator = new BiomeDecoratorBOP(this);
this.customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator; customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator;
this.customBiomeDecorator.treesPerChunk = 1; customBiomeDecorator.treesPerChunk = 1;
this.customBiomeDecorator.flowersPerChunk = 1; customBiomeDecorator.flowersPerChunk = 1;
this.customBiomeDecorator.grassPerChunk = 999; customBiomeDecorator.grassPerChunk = 999;
this.customBiomeDecorator.generatePumpkins = false; customBiomeDecorator.generatePumpkins = false;
} }
/**
* Gets a WorldGen appropriate for this biome.
*/
public WorldGenerator getRandomWorldGenForTrees(Random par1Random)
{
return new WorldGenLargeTree(false);
}
/**
* Provides the basic grass color based on the biome temperature and rainfall
*/
public int getBiomeGrassColor()
{
return 10878796;
}
/** /**
* Provides the basic foliage color based on the biome temperature and rainfall * Gets a WorldGen appropriate for this biome.
*/ */
public int getBiomeFoliageColor() @Override
{ public WorldGenerator getRandomWorldGenForTrees(Random par1Random)
return 10878796; {
} return new WorldGenLargeTree(false);
}
/**
* Provides the basic grass color based on the biome temperature and rainfall
*/
@Override
public int getBiomeGrassColor()
{
return 10878796;
}
/**
* Provides the basic foliage color based on the biome temperature and rainfall
*/
@Override
public int getBiomeFoliageColor()
{
return 10878796;
}
} }

View File

@ -11,45 +11,47 @@ import biomesoplenty.worldgen.WorldGenMoss;
public class BiomeGenForestNew extends BiomeGenBase public class BiomeGenForestNew extends BiomeGenBase
{ {
private BiomeDecoratorBOP customBiomeDecorator; private BiomeDecoratorBOP customBiomeDecorator;
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
public BiomeGenForestNew(int par1) public BiomeGenForestNew(int par1)
{ {
super(par1); super(par1);
this.spawnableCreatureList.add(new SpawnListEntry(EntityWolf.class, 5, 4, 4)); spawnableCreatureList.add(new SpawnListEntry(EntityWolf.class, 5, 4, 4));
this.theBiomeDecorator = new BiomeDecoratorBOP(this); theBiomeDecorator = new BiomeDecoratorBOP(this);
this.customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator; customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator;
this.customBiomeDecorator.treesPerChunk = 10; customBiomeDecorator.treesPerChunk = 10;
this.customBiomeDecorator.grassPerChunk = 2; customBiomeDecorator.grassPerChunk = 2;
this.customBiomeDecorator.hydrangeasPerChunk = 2; customBiomeDecorator.hydrangeasPerChunk = 2;
this.customBiomeDecorator.whiteFlowersPerChunk = 1; customBiomeDecorator.whiteFlowersPerChunk = 1;
this.customBiomeDecorator.reedsBOPPerChunk = 5; customBiomeDecorator.reedsBOPPerChunk = 5;
this.customBiomeDecorator.poisonIvyPerChunk = 2; customBiomeDecorator.poisonIvyPerChunk = 2;
this.customBiomeDecorator.sunflowersPerChunk = 1; customBiomeDecorator.sunflowersPerChunk = 1;
this.customBiomeDecorator.berryBushesPerChunk = 2; customBiomeDecorator.berryBushesPerChunk = 2;
} }
/** /**
* Gets a WorldGen appropriate for this biome. * Gets a WorldGen appropriate for this biome.
*/ */
public WorldGenerator getRandomWorldGenForTrees(Random par1Random) @Override
{ public WorldGenerator getRandomWorldGenForTrees(Random par1Random)
//return (WorldGenerator)(par1Random.nextInt(3) == 0 ? new WorldGenWhiteOak1() : (par1Random.nextInt(5) == 0 ? new WorldGenAlder2() : (par1Random.nextInt(8) == 0 ? new WorldGenAlder1() : (par1Random.nextInt(4) == 0 ? new WorldGenPaperBirch2() : (par1Random.nextInt(7) == 0 ? new WorldGenPaperBirch1() : new WorldGenWhiteOak2()))))); {
return (WorldGenerator)(par1Random.nextInt(5) == 0 ? this.worldGeneratorForest : (par1Random.nextInt(10) == 0 ? this.worldGeneratorBigTree : this.worldGeneratorTrees)); //return (WorldGenerator)(par1Random.nextInt(3) == 0 ? new WorldGenWhiteOak1() : (par1Random.nextInt(5) == 0 ? new WorldGenAlder2() : (par1Random.nextInt(8) == 0 ? new WorldGenAlder1() : (par1Random.nextInt(4) == 0 ? new WorldGenPaperBirch2() : (par1Random.nextInt(7) == 0 ? new WorldGenPaperBirch1() : new WorldGenWhiteOak2())))));
} return par1Random.nextInt(5) == 0 ? worldGeneratorForest : (par1Random.nextInt(10) == 0 ? worldGeneratorBigTree : worldGeneratorTrees);
}
public void decorate(World par1World, Random par2Random, int par3, int par4)
{
super.decorate(par1World, par2Random, par3, par4);
WorldGenMoss var5 = new WorldGenMoss();
for (int var6 = 0; var6 < 20; ++var6) @Override
{ public void decorate(World par1World, Random par2Random, int par3, int par4)
int var7 = par3 + par2Random.nextInt(16) + 8; {
byte var8 = 58; super.decorate(par1World, par2Random, par3, par4);
int var9 = par4 + par2Random.nextInt(16) + 8; WorldGenMoss var5 = new WorldGenMoss();
var5.generate(par1World, par2Random, var7, var8, var9);
} for (int var6 = 0; var6 < 20; ++var6)
} {
int var7 = par3 + par2Random.nextInt(16) + 8;
byte var8 = 58;
int var9 = par4 + par2Random.nextInt(16) + 8;
var5.generate(par1World, par2Random, var7, var8, var9);
}
}
} }

View File

@ -9,53 +9,55 @@ import biomesoplenty.configuration.BOPConfiguration;
public class BiomeGenFrostForest extends BiomeGenBase public class BiomeGenFrostForest extends BiomeGenBase
{ {
private BiomeDecoratorBOP customBiomeDecorator; private BiomeDecoratorBOP customBiomeDecorator;
public BiomeGenFrostForest(int par1) public BiomeGenFrostForest(int par1)
{ {
super(par1); super(par1);
this.theBiomeDecorator = new BiomeDecoratorBOP(this); theBiomeDecorator = new BiomeDecoratorBOP(this);
this.customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator; customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator;
this.customBiomeDecorator.treesPerChunk = 3; customBiomeDecorator.treesPerChunk = 3;
this.customBiomeDecorator.grassPerChunk = 1; customBiomeDecorator.grassPerChunk = 1;
this.customBiomeDecorator.flowersPerChunk = -999; customBiomeDecorator.flowersPerChunk = -999;
this.customBiomeDecorator.mushroomsPerChunk = -999; customBiomeDecorator.mushroomsPerChunk = -999;
this.customBiomeDecorator.generatePumpkins = false; customBiomeDecorator.generatePumpkins = false;
} }
/** /**
* Gets a WorldGen appropriate for this biome. * Gets a WorldGen appropriate for this biome.
*/ */
public WorldGenerator getRandomWorldGenForTrees(Random par1Random) @Override
{ public WorldGenerator getRandomWorldGenForTrees(Random par1Random)
return this.worldGeneratorTrees; {
} return worldGeneratorTrees;
}
/** /**
* Provides the basic grass color based on the biome temperature and rainfall * Provides the basic grass color based on the biome temperature and rainfall
*/ */
public int getBiomeGrassColor() @Override
{ public int getBiomeGrassColor()
return 11261628; {
} return 11261628;
}
/** /**
* Provides the basic foliage color based on the biome temperature and rainfall * Provides the basic foliage color based on the biome temperature and rainfall
*/ */
public int getBiomeFoliageColor() @Override
{ public int getBiomeFoliageColor()
return 11261628; {
} return 11261628;
}
/**
* takes temperature, returns color /**
*/ * takes temperature, returns color
public int getSkyColorByTemp(float par1) */
{ @Override
public int getSkyColorByTemp(float par1)
{
if (BOPConfiguration.skyColors = true) if (BOPConfiguration.skyColors = true)
{ return 13557994;
return 13557994;
}
else else
{ {
par1 /= 3.0F; par1 /= 3.0F;
@ -72,5 +74,5 @@ public class BiomeGenFrostForest extends BiomeGenBase
return Color.getHSBColor(0.62222224F - par1 * 0.05F, 0.5F + par1 * 0.1F, 1.0F).getRGB(); return Color.getHSBColor(0.62222224F - par1 * 0.05F, 0.5F + par1 * 0.1F, 1.0F).getRGB();
} }
} }
} }

View File

@ -20,108 +20,112 @@ import biomesoplenty.worldgen.WorldGenWillow;
public class BiomeGenFungiForest extends BiomeGenBase public class BiomeGenFungiForest extends BiomeGenBase
{ {
private BiomeDecoratorBOP customBiomeDecorator; private BiomeDecoratorBOP customBiomeDecorator;
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
public BiomeGenFungiForest(int par1) public BiomeGenFungiForest(int par1)
{ {
super(par1); super(par1);
this.theBiomeDecorator = new BiomeDecoratorBOP(this); theBiomeDecorator = new BiomeDecoratorBOP(this);
this.customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator; customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator;
this.customBiomeDecorator.treesPerChunk = 8; customBiomeDecorator.treesPerChunk = 8;
this.customBiomeDecorator.grassPerChunk = 6; customBiomeDecorator.grassPerChunk = 6;
this.customBiomeDecorator.sproutsPerChunk = 2; customBiomeDecorator.sproutsPerChunk = 2;
this.customBiomeDecorator.bushesPerChunk = 2; customBiomeDecorator.bushesPerChunk = 2;
this.customBiomeDecorator.highGrassPerChunk = 1; customBiomeDecorator.highGrassPerChunk = 1;
this.customBiomeDecorator.mushroomsPerChunk = 8; customBiomeDecorator.mushroomsPerChunk = 8;
this.customBiomeDecorator.bigMushroomsPerChunk = 8; customBiomeDecorator.bigMushroomsPerChunk = 8;
this.customBiomeDecorator.toadstoolsPerChunk = 5; customBiomeDecorator.toadstoolsPerChunk = 5;
this.customBiomeDecorator.portobellosPerChunk = 7; customBiomeDecorator.portobellosPerChunk = 7;
this.customBiomeDecorator.blueMilksPerChunk = 4; customBiomeDecorator.blueMilksPerChunk = 4;
this.customBiomeDecorator.glowshroomsPerChunk = 2; customBiomeDecorator.glowshroomsPerChunk = 2;
this.customBiomeDecorator.blueFlowersPerChunk = 3; customBiomeDecorator.blueFlowersPerChunk = 3;
this.customBiomeDecorator.cattailsPerChunk = 1; customBiomeDecorator.cattailsPerChunk = 1;
this.customBiomeDecorator.highCattailsPerChunk = 2; customBiomeDecorator.highCattailsPerChunk = 2;
this.customBiomeDecorator.reedsBOPPerChunk = 1; customBiomeDecorator.reedsBOPPerChunk = 1;
this.customBiomeDecorator.lilyflowersPerChunk = 2; customBiomeDecorator.lilyflowersPerChunk = 2;
this.customBiomeDecorator.generateMycelium = true; customBiomeDecorator.generateMycelium = true;
this.customBiomeDecorator.generatePumpkins = true; customBiomeDecorator.generatePumpkins = true;
this.waterColorMultiplier = 65326; waterColorMultiplier = 65326;
this.spawnableCreatureList.clear(); spawnableCreatureList.clear();
this.spawnableWaterCreatureList.clear(); spawnableWaterCreatureList.clear();
this.spawnableCreatureList.add(new SpawnListEntry(EntityMooshroom.class, 3, 4, 8)); spawnableCreatureList.add(new SpawnListEntry(EntityMooshroom.class, 3, 4, 8));
} }
public void decorate(World par1World, Random par2Random, int par3, int par4)
{
super.decorate(par1World, par2Random, par3, par4);
WorldGenMoss var5 = new WorldGenMoss();
for (int var6 = 0; var6 < 20; ++var6) @Override
{ public void decorate(World par1World, Random par2Random, int par3, int par4)
int var7 = par3 + par2Random.nextInt(16) + 8; {
byte var8 = 58; super.decorate(par1World, par2Random, par3, par4);
int var9 = par4 + par2Random.nextInt(16) + 8; WorldGenMoss var5 = new WorldGenMoss();
var5.generate(par1World, par2Random, var7, var8, var9);
}
}
/** for (int var6 = 0; var6 < 20; ++var6)
* Gets a WorldGen appropriate for this biome.
*/
public WorldGenerator getRandomWorldGenForTrees(Random par1Random)
{
return (WorldGenerator)(par1Random.nextInt(2) == 0 ? new WorldGenThickTree(false) : (par1Random.nextInt(5) == 0 ? new WorldGenWillow() : (par1Random.nextInt(3) == 0 ? new WorldGenPrairie(false) : new WorldGenSwampTall())));
}
/**
* Gets a WorldGen appropriate for this biome.
*/
public WorldGenerator getRandomWorldGenForGrass(Random par1Random)
{
return (par1Random.nextInt(3) == 0 ? new WorldGenTallGrass(Block.tallGrass.blockID, 1) : (par1Random.nextInt(4) == 0 ? new WorldGenTallGrass(Block.tallGrass.blockID, 2) : (par1Random.nextInt(2) == 0 ? new WorldGenTallGrass(Blocks.foliage.get().blockID, 2) : new WorldGenTallGrass(Blocks.foliage.get().blockID, 1))));
}
/**
* Provides the basic grass color based on the biome temperature and rainfall
*/
public int getBiomeGrassColor()
{
return 5359235;
}
/**
* Provides the basic foliage color based on the biome temperature and rainfall
*/
public int getBiomeFoliageColor()
{
return 5359235;
}
/**
* takes temperature, returns color
*/
public int getSkyColorByTemp(float par1)
{
if (BOPConfiguration.skyColors = true)
{ {
return 5888980; int var7 = par3 + par2Random.nextInt(16) + 8;
} byte var8 = 58;
else int var9 = par4 + par2Random.nextInt(16) + 8;
{ var5.generate(par1World, par2Random, var7, var8, var9);
par1 /= 3.0F;
if (par1 < -1.0F)
{
par1 = -1.0F;
}
if (par1 > 1.0F)
{
par1 = 1.0F;
}
return Color.getHSBColor(0.62222224F - par1 * 0.05F, 0.5F + par1 * 0.1F, 1.0F).getRGB();
} }
} }
/**
* Gets a WorldGen appropriate for this biome.
*/
@Override
public WorldGenerator getRandomWorldGenForTrees(Random par1Random)
{
return par1Random.nextInt(2) == 0 ? new WorldGenThickTree(false) : (par1Random.nextInt(5) == 0 ? new WorldGenWillow() : (par1Random.nextInt(3) == 0 ? new WorldGenPrairie(false) : new WorldGenSwampTall()));
}
/**
* Gets a WorldGen appropriate for this biome.
*/
@Override
public WorldGenerator getRandomWorldGenForGrass(Random par1Random)
{
return (par1Random.nextInt(3) == 0 ? new WorldGenTallGrass(Block.tallGrass.blockID, 1) : (par1Random.nextInt(4) == 0 ? new WorldGenTallGrass(Block.tallGrass.blockID, 2) : (par1Random.nextInt(2) == 0 ? new WorldGenTallGrass(Blocks.foliage.get().blockID, 2) : new WorldGenTallGrass(Blocks.foliage.get().blockID, 1))));
}
/**
* Provides the basic grass color based on the biome temperature and rainfall
*/
@Override
public int getBiomeGrassColor()
{
return 5359235;
}
/**
* Provides the basic foliage color based on the biome temperature and rainfall
*/
@Override
public int getBiomeFoliageColor()
{
return 5359235;
}
/**
* takes temperature, returns color
*/
@Override
public int getSkyColorByTemp(float par1)
{
if (BOPConfiguration.skyColors = true)
return 5888980;
else
{
par1 /= 3.0F;
if (par1 < -1.0F)
{
par1 = -1.0F;
}
if (par1 > 1.0F)
{
par1 = 1.0F;
}
return Color.getHSBColor(0.62222224F - par1 * 0.05F, 0.5F + par1 * 0.1F, 1.0F).getRGB();
}
}
} }

View File

@ -14,81 +14,86 @@ import biomesoplenty.worldgen.WorldGenGiantFlowerYellow;
public class BiomeGenGarden extends BiomeGenBase public class BiomeGenGarden extends BiomeGenBase
{ {
private BiomeDecoratorBOP customBiomeDecorator; private BiomeDecoratorBOP customBiomeDecorator;
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
public BiomeGenGarden(int par1) public BiomeGenGarden(int par1)
{ {
super(par1); super(par1);
this.theBiomeDecorator = new BiomeDecoratorBOP(this); theBiomeDecorator = new BiomeDecoratorBOP(this);
this.customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator; customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator;
this.customBiomeDecorator.treesPerChunk = 1; customBiomeDecorator.treesPerChunk = 1;
this.customBiomeDecorator.flowersPerChunk = 20; customBiomeDecorator.flowersPerChunk = 20;
this.customBiomeDecorator.whiteFlowersPerChunk = 25; customBiomeDecorator.whiteFlowersPerChunk = 25;
this.customBiomeDecorator.tinyFlowersPerChunk = 15; customBiomeDecorator.tinyFlowersPerChunk = 15;
this.customBiomeDecorator.hydrangeasPerChunk = 3; customBiomeDecorator.hydrangeasPerChunk = 3;
this.customBiomeDecorator.sproutsPerChunk = 2; customBiomeDecorator.sproutsPerChunk = 2;
this.customBiomeDecorator.sunflowersPerChunk = 4; customBiomeDecorator.sunflowersPerChunk = 4;
this.customBiomeDecorator.rosesPerChunk = 20; customBiomeDecorator.rosesPerChunk = 20;
this.customBiomeDecorator.grassPerChunk = 25; customBiomeDecorator.grassPerChunk = 25;
this.customBiomeDecorator.sandPerChunk = -999; customBiomeDecorator.sandPerChunk = -999;
this.customBiomeDecorator.sandPerChunk2 = -999; customBiomeDecorator.sandPerChunk2 = -999;
this.customBiomeDecorator.bushesPerChunk = 10; customBiomeDecorator.bushesPerChunk = 10;
this.customBiomeDecorator.lilyflowersPerChunk = 4; customBiomeDecorator.lilyflowersPerChunk = 4;
this.customBiomeDecorator.generatePumpkins = true; customBiomeDecorator.generatePumpkins = true;
this.customBiomeDecorator.generateMelons = true; customBiomeDecorator.generateMelons = true;
this.spawnableCreatureList.clear(); spawnableCreatureList.clear();
this.spawnableCreatureList.add(new SpawnListEntry(EntityRosester.class, 10, 4, 4)); spawnableCreatureList.add(new SpawnListEntry(EntityRosester.class, 10, 4, 4));
} }
/** /**
* Gets a WorldGen appropriate for this biome. * Gets a WorldGen appropriate for this biome.
*/ */
public WorldGenerator getRandomWorldGenForGrass(Random par1Random) @Override
{ public WorldGenerator getRandomWorldGenForGrass(Random par1Random)
{
return new WorldGenTallGrass(Block.tallGrass.blockID, 1); return new WorldGenTallGrass(Block.tallGrass.blockID, 1);
} }
/**
* Gets a WorldGen appropriate for this biome.
*/
public WorldGenerator getRandomWorldGenForTrees(Random par1Random)
{
return (WorldGenerator)(par1Random.nextInt(3) == 0 ? new WorldGenGiantFlowerRed() : new WorldGenGiantFlowerYellow());
}
public void decorate(World par1World, Random par2Random, int par3, int par4)
{
super.decorate(par1World, par2Random, par3, par4);
int var5 = 3 + par2Random.nextInt(6);
for (int var6 = 0; var6 < var5; ++var6) /**
{ * Gets a WorldGen appropriate for this biome.
int var7 = par3 + par2Random.nextInt(16); */
int var8 = par2Random.nextInt(28) + 4; @Override
int var9 = par4 + par2Random.nextInt(16); public WorldGenerator getRandomWorldGenForTrees(Random par1Random)
int var10 = par1World.getBlockId(var7, var8, var9); {
return par1Random.nextInt(3) == 0 ? new WorldGenGiantFlowerRed() : new WorldGenGiantFlowerYellow();
}
if (var10 == Block.stone.blockID) @Override
{ public void decorate(World par1World, Random par2Random, int par3, int par4)
par1World.setBlock(var7, var8, var9, Block.oreEmerald.blockID, 0, 2); {
} super.decorate(par1World, par2Random, par3, par4);
} int var5 = 3 + par2Random.nextInt(6);
}
/** for (int var6 = 0; var6 < var5; ++var6)
* Provides the basic grass color based on the biome temperature and rainfall {
*/ int var7 = par3 + par2Random.nextInt(16);
public int getBiomeGrassColor() int var8 = par2Random.nextInt(28) + 4;
{ int var9 = par4 + par2Random.nextInt(16);
return 3785757; int var10 = par1World.getBlockId(var7, var8, var9);
}
/** if (var10 == Block.stone.blockID)
* Provides the basic foliage color based on the biome temperature and rainfall {
*/ par1World.setBlock(var7, var8, var9, Block.oreEmerald.blockID, 0, 2);
public int getBiomeFoliageColor() }
{ }
return 5364530; }
}
/**
* Provides the basic grass color based on the biome temperature and rainfall
*/
@Override
public int getBiomeGrassColor()
{
return 3785757;
}
/**
* Provides the basic foliage color based on the biome temperature and rainfall
*/
@Override
public int getBiomeFoliageColor()
{
return 5364530;
}
} }

View File

@ -5,20 +5,20 @@ import biomesoplenty.api.Blocks;
public class BiomeGenGlacier extends BiomeGenBase public class BiomeGenGlacier extends BiomeGenBase
{ {
private BiomeDecoratorBOP customBiomeDecorator; private BiomeDecoratorBOP customBiomeDecorator;
public BiomeGenGlacier(int par1) public BiomeGenGlacier(int par1)
{ {
super(par1); super(par1);
this.spawnableCreatureList.clear(); spawnableCreatureList.clear();
this.topBlock = (byte)Blocks.hardIce.get().blockID; topBlock = (byte)Blocks.hardIce.get().blockID;
this.fillerBlock = (byte)Blocks.hardIce.get().blockID; fillerBlock = (byte)Blocks.hardIce.get().blockID;
this.theBiomeDecorator = new BiomeDecoratorBOP(this); theBiomeDecorator = new BiomeDecoratorBOP(this);
this.customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator; customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator;
this.customBiomeDecorator.treesPerChunk = -999; customBiomeDecorator.treesPerChunk = -999;
this.customBiomeDecorator.flowersPerChunk = -999; customBiomeDecorator.flowersPerChunk = -999;
this.customBiomeDecorator.grassPerChunk = -999; customBiomeDecorator.grassPerChunk = -999;
this.customBiomeDecorator.sandPerChunk = -999; customBiomeDecorator.sandPerChunk = -999;
this.customBiomeDecorator.sandPerChunk2 = -999; customBiomeDecorator.sandPerChunk2 = -999;
} }
} }

View File

@ -16,68 +16,72 @@ import biomesoplenty.api.Blocks;
public class BiomeGenGrassland extends BiomeGenBase public class BiomeGenGrassland extends BiomeGenBase
{ {
private BiomeDecoratorBOP customBiomeDecorator; private BiomeDecoratorBOP customBiomeDecorator;
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
public BiomeGenGrassland(int par1) public BiomeGenGrassland(int par1)
{ {
super(par1); super(par1);
this.theBiomeDecorator = new BiomeDecoratorBOP(this); theBiomeDecorator = new BiomeDecoratorBOP(this);
this.customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator; customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator;
this.customBiomeDecorator.treesPerChunk = -999; customBiomeDecorator.treesPerChunk = -999;
this.customBiomeDecorator.flowersPerChunk = -999; customBiomeDecorator.flowersPerChunk = -999;
this.customBiomeDecorator.grassPerChunk = 2; customBiomeDecorator.grassPerChunk = 2;
this.customBiomeDecorator.reedsPerChunk = 25; customBiomeDecorator.reedsPerChunk = 25;
this.customBiomeDecorator.mushroomsPerChunk = 20; customBiomeDecorator.mushroomsPerChunk = 20;
this.customBiomeDecorator.sandPerChunk = -999; customBiomeDecorator.sandPerChunk = -999;
this.customBiomeDecorator.sandPerChunk2 = -999; customBiomeDecorator.sandPerChunk2 = -999;
this.customBiomeDecorator.waterLakesPerChunk = 15; customBiomeDecorator.waterLakesPerChunk = 15;
this.customBiomeDecorator.portobellosPerChunk = 3; customBiomeDecorator.portobellosPerChunk = 3;
this.customBiomeDecorator.reedsBOPPerChunk = 3; customBiomeDecorator.reedsBOPPerChunk = 3;
this.customBiomeDecorator.generatePumpkins = false; customBiomeDecorator.generatePumpkins = false;
this.spawnableCreatureList.add(new SpawnListEntry(EntitySheep.class, 14, 4, 4)); spawnableCreatureList.add(new SpawnListEntry(EntitySheep.class, 14, 4, 4));
this.spawnableCreatureList.add(new SpawnListEntry(EntityPig.class, 12, 4, 4)); spawnableCreatureList.add(new SpawnListEntry(EntityPig.class, 12, 4, 4));
this.spawnableCreatureList.add(new SpawnListEntry(EntityChicken.class, 12, 4, 4)); spawnableCreatureList.add(new SpawnListEntry(EntityChicken.class, 12, 4, 4));
this.spawnableCreatureList.add(new SpawnListEntry(EntityCow.class, 10, 4, 4)); spawnableCreatureList.add(new SpawnListEntry(EntityCow.class, 10, 4, 4));
} }
/**
* Gets a WorldGen appropriate for this biome.
*/
public WorldGenerator getRandomWorldGenForGrass(Random par1Random)
{
return par1Random.nextInt(3) == 0 ? new WorldGenTallGrass(Blocks.foliage.get().blockID, 2) : new WorldGenTallGrass(Blocks.foliage.get().blockID, 1);
}
public void decorate(World par1World, Random par2Random, int par3, int par4)
{
super.decorate(par1World, par2Random, par3, par4);
int var5 = 3 + par2Random.nextInt(6);
for (int var6 = 0; var6 < var5; ++var6) /**
{ * Gets a WorldGen appropriate for this biome.
int var7 = par3 + par2Random.nextInt(16); */
int var8 = par2Random.nextInt(28) + 4; @Override
int var9 = par4 + par2Random.nextInt(16); public WorldGenerator getRandomWorldGenForGrass(Random par1Random)
int var10 = par1World.getBlockId(var7, var8, var9); {
return par1Random.nextInt(3) == 0 ? new WorldGenTallGrass(Blocks.foliage.get().blockID, 2) : new WorldGenTallGrass(Blocks.foliage.get().blockID, 1);
}
if (var10 == Block.stone.blockID) @Override
{ public void decorate(World par1World, Random par2Random, int par3, int par4)
par1World.setBlock(var7, var8, var9, Block.oreEmerald.blockID, 0, 2); {
} super.decorate(par1World, par2Random, par3, par4);
} int var5 = 3 + par2Random.nextInt(6);
}
for (int var6 = 0; var6 < var5; ++var6)
/** {
* Provides the basic grass color based on the biome temperature and rainfall int var7 = par3 + par2Random.nextInt(16);
*/ int var8 = par2Random.nextInt(28) + 4;
public int getBiomeGrassColor() int var9 = par4 + par2Random.nextInt(16);
{ int var10 = par1World.getBlockId(var7, var8, var9);
return 8379261;
} if (var10 == Block.stone.blockID)
{
public int getBiomeFoliageColor() par1World.setBlock(var7, var8, var9, Block.oreEmerald.blockID, 0, 2);
{ }
return 8379261; }
} }
/**
* Provides the basic grass color based on the biome temperature and rainfall
*/
@Override
public int getBiomeGrassColor()
{
return 8379261;
}
@Override
public int getBiomeFoliageColor()
{
return 8379261;
}
} }

View File

@ -13,54 +13,58 @@ import biomesoplenty.worldgen.WorldGenPoplar2;
public class BiomeGenGrove extends BiomeGenBase public class BiomeGenGrove extends BiomeGenBase
{ {
private BiomeDecoratorBOP customBiomeDecorator; private BiomeDecoratorBOP customBiomeDecorator;
public BiomeGenGrove(int par1) public BiomeGenGrove(int par1)
{ {
super(par1); super(par1);
this.theBiomeDecorator = new BiomeDecoratorBOP(this); theBiomeDecorator = new BiomeDecoratorBOP(this);
this.customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator; customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator;
this.customBiomeDecorator.treesPerChunk = 3; customBiomeDecorator.treesPerChunk = 3;
this.customBiomeDecorator.flowersPerChunk = 5; customBiomeDecorator.flowersPerChunk = 5;
this.customBiomeDecorator.tinyFlowersPerChunk = 80; customBiomeDecorator.tinyFlowersPerChunk = 80;
this.customBiomeDecorator.whiteFlowersPerChunk = 15; customBiomeDecorator.whiteFlowersPerChunk = 15;
this.customBiomeDecorator.grassPerChunk = 8; customBiomeDecorator.grassPerChunk = 8;
this.customBiomeDecorator.sproutsPerChunk = 1; customBiomeDecorator.sproutsPerChunk = 1;
this.customBiomeDecorator.lilyflowersPerChunk = 3; customBiomeDecorator.lilyflowersPerChunk = 3;
this.customBiomeDecorator.berryBushesPerChunk = 2; customBiomeDecorator.berryBushesPerChunk = 2;
this.customBiomeDecorator.generatePumpkins = false; customBiomeDecorator.generatePumpkins = false;
} }
/**
* Gets a WorldGen appropriate for this biome.
*/
public WorldGenerator getRandomWorldGenForTrees(Random par1Random)
{
return (WorldGenerator)(par1Random.nextInt(2) == 0 ? new WorldGenChaparral2() : par1Random.nextInt(3) == 0 ? new WorldGenPoplar2() : new WorldGenPoplar());
//return (WorldGenerator)(par1Random.nextInt(3) == 0 ? new WorldGenNorwaySpruce1() : new WorldGenNorwaySpruce2());
}
/**
* Gets a WorldGen appropriate for this biome.
*/
public WorldGenerator getRandomWorldGenForGrass(Random par1Random)
{
return par1Random.nextInt(2) == 0 ? new WorldGenTallGrass(Block.tallGrass.blockID, 1) : new WorldGenTallGrass(Blocks.foliage.get().blockID, 2);
}
/**
* Provides the basic grass color based on the biome temperature and rainfall
*/
public int getBiomeGrassColor()
{
return 5341009;
}
/** /**
* Provides the basic foliage color based on the biome temperature and rainfall * Gets a WorldGen appropriate for this biome.
*/ */
public int getBiomeFoliageColor() @Override
{ public WorldGenerator getRandomWorldGenForTrees(Random par1Random)
return 6396257; {
} return par1Random.nextInt(2) == 0 ? new WorldGenChaparral2() : par1Random.nextInt(3) == 0 ? new WorldGenPoplar2() : new WorldGenPoplar();
//return (WorldGenerator)(par1Random.nextInt(3) == 0 ? new WorldGenNorwaySpruce1() : new WorldGenNorwaySpruce2());
}
/**
* Gets a WorldGen appropriate for this biome.
*/
@Override
public WorldGenerator getRandomWorldGenForGrass(Random par1Random)
{
return par1Random.nextInt(2) == 0 ? new WorldGenTallGrass(Block.tallGrass.blockID, 1) : new WorldGenTallGrass(Blocks.foliage.get().blockID, 2);
}
/**
* Provides the basic grass color based on the biome temperature and rainfall
*/
@Override
public int getBiomeGrassColor()
{
return 5341009;
}
/**
* Provides the basic foliage color based on the biome temperature and rainfall
*/
@Override
public int getBiomeFoliageColor()
{
return 6396257;
}
} }

View File

@ -9,43 +9,46 @@ import biomesoplenty.worldgen.WorldGenJacarandaShrub;
public class BiomeGenHeathland extends BiomeGenBase public class BiomeGenHeathland extends BiomeGenBase
{ {
private BiomeDecoratorBOP customBiomeDecorator; private BiomeDecoratorBOP customBiomeDecorator;
public BiomeGenHeathland(int par1) public BiomeGenHeathland(int par1)
{ {
super(par1); super(par1);
this.spawnableCreatureList.clear(); spawnableCreatureList.clear();
this.theBiomeDecorator = new BiomeDecoratorBOP(this); theBiomeDecorator = new BiomeDecoratorBOP(this);
this.customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator; customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator;
this.customBiomeDecorator.treesPerChunk = 3; customBiomeDecorator.treesPerChunk = 3;
this.customBiomeDecorator.grassPerChunk = 10; customBiomeDecorator.grassPerChunk = 10;
this.customBiomeDecorator.purpleFlowersPerChunk = 30; customBiomeDecorator.purpleFlowersPerChunk = 30;
this.customBiomeDecorator.deadBushPerChunk = 2; customBiomeDecorator.deadBushPerChunk = 2;
this.customBiomeDecorator.berryBushesPerChunk = 1; customBiomeDecorator.berryBushesPerChunk = 1;
this.customBiomeDecorator.generatePumpkins = false; customBiomeDecorator.generatePumpkins = false;
} }
/** /**
* Gets a WorldGen appropriate for this biome. * Gets a WorldGen appropriate for this biome.
*/ */
public WorldGenerator getRandomWorldGenForTrees(Random par1Random) @Override
{ public WorldGenerator getRandomWorldGenForTrees(Random par1Random)
return (WorldGenerator)(par1Random.nextInt(3) == 0 ? new WorldGenJacarandaShrub(0, 0) : (par1Random.nextInt(2) == 0 ? new WorldGenShrub(0, 0) : this.worldGeneratorTrees)); {
} return par1Random.nextInt(3) == 0 ? new WorldGenJacarandaShrub(0, 0) : (par1Random.nextInt(2) == 0 ? new WorldGenShrub(0, 0) : worldGeneratorTrees);
}
/** /**
* Provides the basic grass color based on the biome temperature and rainfall * Provides the basic grass color based on the biome temperature and rainfall
*/ */
public int getBiomeGrassColor() @Override
{ public int getBiomeGrassColor()
return 13550967; {
} return 13550967;
}
/** /**
* Provides the basic foliage color based on the biome temperature and rainfall * Provides the basic foliage color based on the biome temperature and rainfall
*/ */
public int getBiomeFoliageColor() @Override
{ public int getBiomeFoliageColor()
return 11454081; {
} return 11454081;
}
} }

View File

@ -4,17 +4,17 @@ import net.minecraft.world.biome.BiomeGenBase;
public class BiomeGenHighland extends BiomeGenBase public class BiomeGenHighland extends BiomeGenBase
{ {
private BiomeDecoratorBOP customBiomeDecorator; private BiomeDecoratorBOP customBiomeDecorator;
public BiomeGenHighland(int par1) public BiomeGenHighland(int par1)
{ {
super(par1); super(par1);
this.theBiomeDecorator = new BiomeDecoratorBOP(this); theBiomeDecorator = new BiomeDecoratorBOP(this);
this.customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator; customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator;
this.customBiomeDecorator.treesPerChunk = -999; customBiomeDecorator.treesPerChunk = -999;
this.customBiomeDecorator.highGrassPerChunk = 25; customBiomeDecorator.highGrassPerChunk = 25;
this.customBiomeDecorator.grassPerChunk = 25; customBiomeDecorator.grassPerChunk = 25;
this.customBiomeDecorator.potatoesPerChunk = -999; customBiomeDecorator.potatoesPerChunk = -999;
this.customBiomeDecorator.generateBoulders = true; customBiomeDecorator.generateBoulders = true;
} }
} }

View File

@ -11,54 +11,56 @@ import biomesoplenty.worldgen.WorldGenJacaranda;
public class BiomeGenHillsNew extends BiomeGenBase public class BiomeGenHillsNew extends BiomeGenBase
{ {
private WorldGenerator theWorldGenerator; private WorldGenerator theWorldGenerator;
private BiomeDecoratorBOP customBiomeDecorator; private BiomeDecoratorBOP customBiomeDecorator;
public BiomeGenHillsNew(int par1) public BiomeGenHillsNew(int par1)
{ {
super(par1); super(par1);
this.theBiomeDecorator = new BiomeDecoratorBOP(this); theBiomeDecorator = new BiomeDecoratorBOP(this);
this.customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator; customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator;
this.customBiomeDecorator.treesPerChunk = 1; customBiomeDecorator.treesPerChunk = 1;
this.customBiomeDecorator.violetsPerChunk = 5; customBiomeDecorator.violetsPerChunk = 5;
this.theWorldGenerator = new WorldGenMinable(Block.silverfish.blockID, 8); theWorldGenerator = new WorldGenMinable(Block.silverfish.blockID, 8);
} }
/**
* Gets a WorldGen appropriate for this biome.
*/
public WorldGenerator getRandomWorldGenForTrees(Random par1Random)
{
return (WorldGenerator)(par1Random.nextInt(3) == 0 ? new WorldGenJacaranda(false) : this.worldGeneratorTrees);
}
public void decorate(World par1World, Random par2Random, int par3, int par4) /**
{ * Gets a WorldGen appropriate for this biome.
super.decorate(par1World, par2Random, par3, par4); */
int var5 = 3 + par2Random.nextInt(6); @Override
int var6; public WorldGenerator getRandomWorldGenForTrees(Random par1Random)
int var7; {
int var8; return par1Random.nextInt(3) == 0 ? new WorldGenJacaranda(false) : worldGeneratorTrees;
}
for (var6 = 0; var6 < var5; ++var6) @Override
{ public void decorate(World par1World, Random par2Random, int par3, int par4)
var7 = par3 + par2Random.nextInt(16); {
var8 = par2Random.nextInt(28) + 4; super.decorate(par1World, par2Random, par3, par4);
int var9 = par4 + par2Random.nextInt(16); int var5 = 3 + par2Random.nextInt(6);
int var10 = par1World.getBlockId(var7, var8, var9); int var6;
int var7;
int var8;
if (var10 == Block.stone.blockID) for (var6 = 0; var6 < var5; ++var6)
{ {
par1World.setBlock(var7, var8, var9, Block.oreEmerald.blockID, 0, 2); var7 = par3 + par2Random.nextInt(16);
} var8 = par2Random.nextInt(28) + 4;
} int var9 = par4 + par2Random.nextInt(16);
int var10 = par1World.getBlockId(var7, var8, var9);
for (var5 = 0; var5 < 7; ++var5) if (var10 == Block.stone.blockID)
{ {
var6 = par3 + par2Random.nextInt(16); par1World.setBlock(var7, var8, var9, Block.oreEmerald.blockID, 0, 2);
var7 = par2Random.nextInt(64); }
var8 = par4 + par2Random.nextInt(16); }
this.theWorldGenerator.generate(par1World, par2Random, var6, var7, var8);
} for (var5 = 0; var5 < 7; ++var5)
} {
var6 = par3 + par2Random.nextInt(16);
var7 = par2Random.nextInt(64);
var8 = par4 + par2Random.nextInt(16);
theWorldGenerator.generate(par1World, par2Random, var6, var7, var8);
}
}
} }

View File

@ -10,27 +10,28 @@ import biomesoplenty.worldgen.WorldGenTaiga6;
public class BiomeGenHotSprings extends BiomeGenBase public class BiomeGenHotSprings extends BiomeGenBase
{ {
private BiomeDecoratorBOP customBiomeDecorator; private BiomeDecoratorBOP customBiomeDecorator;
public BiomeGenHotSprings(int par1) public BiomeGenHotSprings(int par1)
{ {
super(par1); super(par1);
this.topBlock = (byte)Block.stone.blockID; topBlock = (byte)Block.stone.blockID;
this.fillerBlock = (byte)Block.stone.blockID; fillerBlock = (byte)Block.stone.blockID;
this.theBiomeDecorator = new BiomeDecoratorBOP(this); theBiomeDecorator = new BiomeDecoratorBOP(this);
this.customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator; customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator;
this.customBiomeDecorator.treesPerChunk = 3; customBiomeDecorator.treesPerChunk = 3;
this.customBiomeDecorator.grassPerChunk = -999; customBiomeDecorator.grassPerChunk = -999;
this.customBiomeDecorator.outbackPerChunk = 5; customBiomeDecorator.outbackPerChunk = 5;
this.customBiomeDecorator.hotSpringsPerChunk = 25; customBiomeDecorator.hotSpringsPerChunk = 25;
this.customBiomeDecorator.lavaLakesPerChunk = 5; customBiomeDecorator.lavaLakesPerChunk = 5;
} }
/** /**
* Gets a WorldGen appropriate for this biome. * Gets a WorldGen appropriate for this biome.
*/ */
public WorldGenerator getRandomWorldGenForTrees(Random par1Random) @Override
{ public WorldGenerator getRandomWorldGenForTrees(Random par1Random)
return (WorldGenerator)(par1Random.nextInt(3) == 0 ? new WorldGenPineTree() : new WorldGenTaiga6(false)); {
} return par1Random.nextInt(3) == 0 ? new WorldGenPineTree() : new WorldGenTaiga6(false);
}
} }

View File

@ -13,40 +13,40 @@ import biomesoplenty.worldgen.WorldGenIceTree;
public class BiomeGenIcyHills extends BiomeGenBase public class BiomeGenIcyHills extends BiomeGenBase
{ {
private BiomeDecoratorBOP customBiomeDecorator; private BiomeDecoratorBOP customBiomeDecorator;
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
public BiomeGenIcyHills(int par1) public BiomeGenIcyHills(int par1)
{ {
super(par1); super(par1);
this.spawnableCreatureList.clear(); spawnableCreatureList.clear();
this.topBlock = (byte)Block.blockSnow.blockID; topBlock = (byte)Block.blockSnow.blockID;
this.fillerBlock = (byte)Block.blockSnow.blockID; fillerBlock = (byte)Block.blockSnow.blockID;
this.theBiomeDecorator = new BiomeDecoratorBOP(this); theBiomeDecorator = new BiomeDecoratorBOP(this);
this.customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator; customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator;
this.customBiomeDecorator.treesPerChunk = 2; customBiomeDecorator.treesPerChunk = 2;
this.customBiomeDecorator.flowersPerChunk = -999; customBiomeDecorator.flowersPerChunk = -999;
this.customBiomeDecorator.grassPerChunk = -999; customBiomeDecorator.grassPerChunk = -999;
this.spawnableCreatureList.add(new SpawnListEntry(EntitySnowman.class, 30, 2, 4)); spawnableCreatureList.add(new SpawnListEntry(EntitySnowman.class, 30, 2, 4));
} }
/** /**
* Gets a WorldGen appropriate for this biome. * Gets a WorldGen appropriate for this biome.
*/ */
public WorldGenerator getRandomWorldGenForTrees(Random par1Random) @Override
{ public WorldGenerator getRandomWorldGenForTrees(Random par1Random)
return new WorldGenIceTree(false); {
} return new WorldGenIceTree(false);
}
/**
* takes temperature, returns color /**
*/ * takes temperature, returns color
public int getSkyColorByTemp(float par1) */
{ @Override
public int getSkyColorByTemp(float par1)
{
if (BOPConfiguration.skyColors = true) if (BOPConfiguration.skyColors = true)
{ return 16777215;
return 16777215;
}
else else
{ {
par1 /= 3.0F; par1 /= 3.0F;
@ -63,5 +63,5 @@ public class BiomeGenIcyHills extends BiomeGenBase
return Color.getHSBColor(0.62222224F - par1 * 0.05F, 0.5F + par1 * 0.1F, 1.0F).getRGB(); return Color.getHSBColor(0.62222224F - par1 * 0.05F, 0.5F + par1 * 0.1F, 1.0F).getRGB();
} }
} }
} }

View File

@ -13,53 +13,54 @@ import biomesoplenty.worldgen.WorldGenPineTree;
public class BiomeGenJadeCliffs extends BiomeGenBase public class BiomeGenJadeCliffs extends BiomeGenBase
{ {
private BiomeDecoratorBOP customBiomeDecorator; private BiomeDecoratorBOP customBiomeDecorator;
public BiomeGenJadeCliffs(int par1) public BiomeGenJadeCliffs(int par1)
{ {
super(par1); super(par1);
this.theBiomeDecorator = new BiomeDecoratorBOP(this); theBiomeDecorator = new BiomeDecoratorBOP(this);
this.customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator; customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator;
this.customBiomeDecorator.treesPerChunk = 12; customBiomeDecorator.treesPerChunk = 12;
this.customBiomeDecorator.grassPerChunk = 3; customBiomeDecorator.grassPerChunk = 3;
} }
/**
* Gets a WorldGen appropriate for this biome.
*/
public WorldGenerator getRandomWorldGenForTrees(Random par1Random)
{
return (WorldGenerator)(par1Random.nextInt(4) == 0 ? new WorldGenShrub(0, 1) : new WorldGenPineTree());
}
public void decorate(World par1World, Random par2Random, int par3, int par4)
{
super.decorate(par1World, par2Random, par3, par4);
int var5 = 3 + par2Random.nextInt(6);
for (int var6 = 0; var6 < var5; ++var6) /**
{ * Gets a WorldGen appropriate for this biome.
int var7 = par3 + par2Random.nextInt(16); */
int var8 = par2Random.nextInt(28) + 4; @Override
int var9 = par4 + par2Random.nextInt(16); public WorldGenerator getRandomWorldGenForTrees(Random par1Random)
int var10 = par1World.getBlockId(var7, var8, var9); {
return par1Random.nextInt(4) == 0 ? new WorldGenShrub(0, 1) : new WorldGenPineTree();
}
if (var10 == Block.stone.blockID) @Override
{ public void decorate(World par1World, Random par2Random, int par3, int par4)
par1World.setBlock(var7, var8, var9, Block.oreEmerald.blockID, 0, 2); {
} super.decorate(par1World, par2Random, par3, par4);
} int var5 = 3 + par2Random.nextInt(6);
}
for (int var6 = 0; var6 < var5; ++var6)
/**
* takes temperature, returns color
*/
public int getSkyColorByTemp(float par1)
{
if (BOPConfiguration.skyColors = true)
{ {
return 12045485; int var7 = par3 + par2Random.nextInt(16);
} int var8 = par2Random.nextInt(28) + 4;
int var9 = par4 + par2Random.nextInt(16);
int var10 = par1World.getBlockId(var7, var8, var9);
if (var10 == Block.stone.blockID)
{
par1World.setBlock(var7, var8, var9, Block.oreEmerald.blockID, 0, 2);
}
}
}
/**
* takes temperature, returns color
*/
@Override
public int getSkyColorByTemp(float par1)
{
if (BOPConfiguration.skyColors = true)
return 12045485;
else else
{ {
par1 /= 3.0F; par1 /= 3.0F;
@ -76,21 +77,23 @@ public class BiomeGenJadeCliffs extends BiomeGenBase
return Color.getHSBColor(0.62222224F - par1 * 0.05F, 0.5F + par1 * 0.1F, 1.0F).getRGB(); return Color.getHSBColor(0.62222224F - par1 * 0.05F, 0.5F + par1 * 0.1F, 1.0F).getRGB();
} }
} }
/**
* Provides the basic grass color based on the biome temperature and rainfall
*/
public int getBiomeGrassColor()
{
return 8168808;
}
/** /**
* Provides the basic foliage color based on the biome temperature and rainfall * Provides the basic grass color based on the biome temperature and rainfall
*/ */
public int getBiomeFoliageColor() @Override
{ public int getBiomeGrassColor()
return 9096298; {
} return 8168808;
}
/**
* Provides the basic foliage color based on the biome temperature and rainfall
*/
@Override
public int getBiomeFoliageColor()
{
return 9096298;
}
} }

View File

@ -18,70 +18,75 @@ import biomesoplenty.mobs.EntityJungleSpider;
public class BiomeGenJungleNew extends BiomeGenBase public class BiomeGenJungleNew extends BiomeGenBase
{ {
private BiomeDecoratorBOP customBiomeDecorator; private BiomeDecoratorBOP customBiomeDecorator;
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
public BiomeGenJungleNew(int par1) public BiomeGenJungleNew(int par1)
{ {
super(par1); super(par1);
this.theBiomeDecorator = new BiomeDecoratorBOP(this); theBiomeDecorator = new BiomeDecoratorBOP(this);
this.customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator; customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator;
this.customBiomeDecorator.treesPerChunk = 45; customBiomeDecorator.treesPerChunk = 45;
this.customBiomeDecorator.grassPerChunk = 25; customBiomeDecorator.grassPerChunk = 25;
this.customBiomeDecorator.flowersPerChunk = 4; customBiomeDecorator.flowersPerChunk = 4;
this.customBiomeDecorator.orangeFlowersPerChunk = 5; customBiomeDecorator.orangeFlowersPerChunk = 5;
this.customBiomeDecorator.poisonIvyPerChunk = 1; customBiomeDecorator.poisonIvyPerChunk = 1;
this.customBiomeDecorator.generateMelons = true; customBiomeDecorator.generateMelons = true;
this.waterColorMultiplier = 10745289; waterColorMultiplier = 10745289;
this.spawnableMonsterList.add(new SpawnListEntry(EntityOcelot.class, 2, 1, 1)); spawnableMonsterList.add(new SpawnListEntry(EntityOcelot.class, 2, 1, 1));
this.spawnableMonsterList.add(new SpawnListEntry(EntityJungleSpider.class, 12, 6, 6)); spawnableMonsterList.add(new SpawnListEntry(EntityJungleSpider.class, 12, 6, 6));
this.spawnableCreatureList.add(new SpawnListEntry(EntityChicken.class, 10, 4, 4)); spawnableCreatureList.add(new SpawnListEntry(EntityChicken.class, 10, 4, 4));
} }
/** /**
* Gets a WorldGen appropriate for this biome. * Gets a WorldGen appropriate for this biome.
*/ */
public WorldGenerator getRandomWorldGenForTrees(Random par1Random) @Override
{ public WorldGenerator getRandomWorldGenForTrees(Random par1Random)
//return (WorldGenerator)(par1Random.nextInt(5) == 0 ? new WorldGenBrazilNut1() : (par1Random.nextInt(10) == 0 ? new WorldGenSandboxTree1() : (par1Random.nextInt(2) == 0 ? new WorldGenBrazilNut2() : (par1Random.nextInt(3) == 0 ? new WorldGenSandboxTree2() : new WorldGenShrub(3, 0))))); {
return (WorldGenerator)(par1Random.nextInt(10) == 0 ? this.worldGeneratorBigTree : (par1Random.nextInt(2) == 0 ? new WorldGenShrub(3, 0) : (par1Random.nextInt(3) == 0 ? new WorldGenHugeTrees(false, 10 + par1Random.nextInt(20), 3, 3) : new WorldGenTrees(false, 4 + par1Random.nextInt(7), 3, 3, true)))); //return (WorldGenerator)(par1Random.nextInt(5) == 0 ? new WorldGenBrazilNut1() : (par1Random.nextInt(10) == 0 ? new WorldGenSandboxTree1() : (par1Random.nextInt(2) == 0 ? new WorldGenBrazilNut2() : (par1Random.nextInt(3) == 0 ? new WorldGenSandboxTree2() : new WorldGenShrub(3, 0)))));
return par1Random.nextInt(10) == 0 ? worldGeneratorBigTree : (par1Random.nextInt(2) == 0 ? new WorldGenShrub(3, 0) : (par1Random.nextInt(3) == 0 ? new WorldGenHugeTrees(false, 10 + par1Random.nextInt(20), 3, 3) : new WorldGenTrees(false, 4 + par1Random.nextInt(7), 3, 3, true)));
}
/**
* Gets a WorldGen appropriate for this biome.
*/
@Override
public WorldGenerator getRandomWorldGenForGrass(Random par1Random)
{
return par1Random.nextInt(4) == 0 ? new WorldGenTallGrass(Block.tallGrass.blockID, 2) : new WorldGenTallGrass(Block.tallGrass.blockID, 1);
}
@Override
public void decorate(World par1World, Random par2Random, int par3, int par4)
{
super.decorate(par1World, par2Random, par3, par4);
WorldGenVines var5 = new WorldGenVines();
for (int var6 = 0; var6 < 50; ++var6)
{
int var7 = par3 + par2Random.nextInt(16) + 8;
byte var8 = 32;
int var9 = par4 + par2Random.nextInt(16) + 8;
var5.generate(par1World, par2Random, var7, var8, var9);
} }
}
/** /**
* Gets a WorldGen appropriate for this biome. * Provides the basic grass color based on the biome temperature and rainfall
*/ */
public WorldGenerator getRandomWorldGenForGrass(Random par1Random) @Override
{ public int getBiomeGrassColor()
return par1Random.nextInt(4) == 0 ? new WorldGenTallGrass(Block.tallGrass.blockID, 2) : new WorldGenTallGrass(Block.tallGrass.blockID, 1); {
} return 5232218;
}
public void decorate(World par1World, Random par2Random, int par3, int par4) /**
{ * Provides the basic foliage color based on the biome temperature and rainfall
super.decorate(par1World, par2Random, par3, par4); */
WorldGenVines var5 = new WorldGenVines(); @Override
public int getBiomeFoliageColor()
for (int var6 = 0; var6 < 50; ++var6) {
{ return 3266623;
int var7 = par3 + par2Random.nextInt(16) + 8; }
byte var8 = 32;
int var9 = par4 + par2Random.nextInt(16) + 8;
var5.generate(par1World, par2Random, var7, var8, var9);
}
}
/**
* Provides the basic grass color based on the biome temperature and rainfall
*/
public int getBiomeGrassColor()
{
return 5232218;
}
/**
* Provides the basic foliage color based on the biome temperature and rainfall
*/
public int getBiomeFoliageColor()
{
return 3266623;
}
} }

View File

@ -13,56 +13,58 @@ import biomesoplenty.worldgen.WorldGenDeadTree3;
public class BiomeGenLushDesert extends BiomeGenBase public class BiomeGenLushDesert extends BiomeGenBase
{ {
private BiomeDecoratorBOP customBiomeDecorator; private BiomeDecoratorBOP customBiomeDecorator;
public BiomeGenLushDesert(int par1) public BiomeGenLushDesert(int par1)
{ {
super(par1); super(par1);
this.topBlock = (byte)Blocks.redRock.get().blockID; topBlock = (byte)Blocks.redRock.get().blockID;
this.fillerBlock = (byte)Blocks.redRock.get().blockID; fillerBlock = (byte)Blocks.redRock.get().blockID;
this.theBiomeDecorator = new BiomeDecoratorBOP(this); theBiomeDecorator = new BiomeDecoratorBOP(this);
this.customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator; customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator;
this.customBiomeDecorator.treesPerChunk = 12; customBiomeDecorator.treesPerChunk = 12;
this.customBiomeDecorator.grassPerChunk = 8; customBiomeDecorator.grassPerChunk = 8;
this.customBiomeDecorator.oasesPerChunk = 999; customBiomeDecorator.oasesPerChunk = 999;
this.customBiomeDecorator.oasesPerChunk2 = 999; customBiomeDecorator.oasesPerChunk2 = 999;
this.customBiomeDecorator.deadBushPerChunk = 2; customBiomeDecorator.deadBushPerChunk = 2;
this.customBiomeDecorator.purpleFlowersPerChunk = 5; customBiomeDecorator.purpleFlowersPerChunk = 5;
this.customBiomeDecorator.desertGrassPerChunk = 10; customBiomeDecorator.desertGrassPerChunk = 10;
this.customBiomeDecorator.desertCactiPerChunk = 10; customBiomeDecorator.desertCactiPerChunk = 10;
this.customBiomeDecorator.cactiPerChunk = 20; customBiomeDecorator.cactiPerChunk = 20;
this.customBiomeDecorator.tinyCactiPerChunk = 5; customBiomeDecorator.tinyCactiPerChunk = 5;
this.customBiomeDecorator.waterLakesPerChunk = 5; customBiomeDecorator.waterLakesPerChunk = 5;
this.customBiomeDecorator.aloePerChunk = 3; customBiomeDecorator.aloePerChunk = 3;
this.customBiomeDecorator.generateGrass = true; customBiomeDecorator.generateGrass = true;
this.customBiomeDecorator.generateSand = true; customBiomeDecorator.generateSand = true;
this.customBiomeDecorator.generatePumpkins = false; customBiomeDecorator.generatePumpkins = false;
} }
/**
* Gets a WorldGen appropriate for this biome.
*/
public WorldGenerator getRandomWorldGenForTrees(Random par1Random)
{
return (WorldGenerator)(par1Random.nextInt(4) == 0 ? new WorldGenAcacia(false) : (par1Random.nextInt(24) == 0 ? new WorldGenDeadTree3(false) : (par1Random.nextInt(2) == 0 ? this.worldGeneratorTrees : new WorldGenShrub(0,0))));
}
public void decorate(World par1World, Random par2Random, int par3, int par4)
{
super.decorate(par1World, par2Random, par3, par4);
int var5 = par2Random.nextInt(50);
for (int var6 = 0; var6 < var5; ++var6) /**
{ * Gets a WorldGen appropriate for this biome.
int var7 = par3 + par2Random.nextInt(16); */
int var8 = par2Random.nextInt(53) + 75; @Override
int var9 = par4 + par2Random.nextInt(16); public WorldGenerator getRandomWorldGenForTrees(Random par1Random)
int var10 = par1World.getBlockId(var7, var8, var9); {
return par1Random.nextInt(4) == 0 ? new WorldGenAcacia(false) : (par1Random.nextInt(24) == 0 ? new WorldGenDeadTree3(false) : (par1Random.nextInt(2) == 0 ? worldGeneratorTrees : new WorldGenShrub(0,0)));
}
if (var10 == Block.stone.blockID || var10 == Blocks.redRock.get().blockID) @Override
{ public void decorate(World par1World, Random par2Random, int par3, int par4)
par1World.setBlock(var7, var8, var9, Block.waterMoving.blockID, 0, 2); {
} super.decorate(par1World, par2Random, par3, par4);
} int var5 = par2Random.nextInt(50);
}
for (int var6 = 0; var6 < var5; ++var6)
{
int var7 = par3 + par2Random.nextInt(16);
int var8 = par2Random.nextInt(53) + 75;
int var9 = par4 + par2Random.nextInt(16);
int var10 = par1World.getBlockId(var7, var8, var9);
if (var10 == Block.stone.blockID || var10 == Blocks.redRock.get().blockID)
{
par1World.setBlock(var7, var8, var9, Block.waterMoving.blockID, 0, 2);
}
}
}
} }

View File

@ -12,51 +12,53 @@ import biomesoplenty.worldgen.WorldGenSwampTall;
public class BiomeGenLushSwamp extends BiomeGenBase public class BiomeGenLushSwamp extends BiomeGenBase
{ {
private BiomeDecoratorBOP customBiomeDecorator; private BiomeDecoratorBOP customBiomeDecorator;
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
public BiomeGenLushSwamp(int par1) public BiomeGenLushSwamp(int par1)
{ {
super(par1); super(par1);
this.theBiomeDecorator = new BiomeDecoratorBOP(this); theBiomeDecorator = new BiomeDecoratorBOP(this);
this.customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator; customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator;
this.customBiomeDecorator.treesPerChunk = 10; customBiomeDecorator.treesPerChunk = 10;
this.customBiomeDecorator.grassPerChunk = 4; customBiomeDecorator.grassPerChunk = 4;
this.customBiomeDecorator.mushroomsPerChunk = 8; customBiomeDecorator.mushroomsPerChunk = 8;
this.customBiomeDecorator.reedsPerChunk = 16; customBiomeDecorator.reedsPerChunk = 16;
this.customBiomeDecorator.cattailsPerChunk = 10; customBiomeDecorator.cattailsPerChunk = 10;
this.customBiomeDecorator.highCattailsPerChunk = 5; customBiomeDecorator.highCattailsPerChunk = 5;
this.customBiomeDecorator.waterlilyPerChunk = 3; customBiomeDecorator.waterlilyPerChunk = 3;
this.customBiomeDecorator.hydrangeasPerChunk = 1; customBiomeDecorator.hydrangeasPerChunk = 1;
this.customBiomeDecorator.reedsBOPPerChunk = 5; customBiomeDecorator.reedsBOPPerChunk = 5;
this.customBiomeDecorator.poisonWaterPerChunk = 2; customBiomeDecorator.poisonWaterPerChunk = 2;
this.spawnableMonsterList.add(new SpawnListEntry(EntitySlime.class, 1, 1, 1)); spawnableMonsterList.add(new SpawnListEntry(EntitySlime.class, 1, 1, 1));
} }
/**
* Gets a WorldGen appropriate for this biome.
*/
public WorldGenerator getRandomWorldGenForTrees(Random par1Random)
{
return new WorldGenSwampTall();
}
public void decorate(World par1World, Random par2Random, int par3, int par4)
{
super.decorate(par1World, par2Random, par3, par4);
int var5 = 3 + par2Random.nextInt(6);
for (int var6 = 0; var6 < var5; ++var6) /**
{ * Gets a WorldGen appropriate for this biome.
int var7 = par3 + par2Random.nextInt(16); */
int var8 = par2Random.nextInt(28) + 4; @Override
int var9 = par4 + par2Random.nextInt(16); public WorldGenerator getRandomWorldGenForTrees(Random par1Random)
int var10 = par1World.getBlockId(var7, var8, var9); {
return new WorldGenSwampTall();
}
if (var10 == Block.stone.blockID) @Override
{ public void decorate(World par1World, Random par2Random, int par3, int par4)
par1World.setBlock(var7, var8, var9, Block.oreEmerald.blockID, 0, 2); {
} super.decorate(par1World, par2Random, par3, par4);
} int var5 = 3 + par2Random.nextInt(6);
}
for (int var6 = 0; var6 < var5; ++var6)
{
int var7 = par3 + par2Random.nextInt(16);
int var8 = par2Random.nextInt(28) + 4;
int var9 = par4 + par2Random.nextInt(16);
int var10 = par1World.getBlockId(var7, var8, var9);
if (var10 == Block.stone.blockID)
{
par1World.setBlock(var7, var8, var9, Block.oreEmerald.blockID, 0, 2);
}
}
}
} }

View File

@ -10,30 +10,31 @@ import biomesoplenty.worldgen.WorldGenMangrove2;
public class BiomeGenMangrove extends BiomeGenBase public class BiomeGenMangrove extends BiomeGenBase
{ {
private BiomeDecoratorBOP customBiomeDecorator; private BiomeDecoratorBOP customBiomeDecorator;
public BiomeGenMangrove(int par1) public BiomeGenMangrove(int par1)
{ {
super(par1); super(par1);
this.spawnableCreatureList.clear(); spawnableCreatureList.clear();
this.topBlock = (byte)Block.sand.blockID; topBlock = (byte)Block.sand.blockID;
this.fillerBlock = (byte)Block.sand.blockID; fillerBlock = (byte)Block.sand.blockID;
this.theBiomeDecorator = new BiomeDecoratorBOP(this); theBiomeDecorator = new BiomeDecoratorBOP(this);
this.customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator; customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator;
this.customBiomeDecorator.treesPerChunk = 6; customBiomeDecorator.treesPerChunk = 6;
this.customBiomeDecorator.deadBushPerChunk = 1; customBiomeDecorator.deadBushPerChunk = 1;
this.customBiomeDecorator.deadGrassPerChunk = 9; customBiomeDecorator.deadGrassPerChunk = 9;
this.customBiomeDecorator.reedsPerChunk = -999; customBiomeDecorator.reedsPerChunk = -999;
this.customBiomeDecorator.cactiPerChunk = -999; customBiomeDecorator.cactiPerChunk = -999;
this.customBiomeDecorator.desertSproutsPerChunk = 1; customBiomeDecorator.desertSproutsPerChunk = 1;
this.customBiomeDecorator.waterLakesPerChunk = 10; customBiomeDecorator.waterLakesPerChunk = 10;
} }
/** /**
* Gets a WorldGen appropriate for this biome. * Gets a WorldGen appropriate for this biome.
*/ */
public WorldGenerator getRandomWorldGenForTrees(Random par1Random) @Override
{ public WorldGenerator getRandomWorldGenForTrees(Random par1Random)
return (WorldGenerator)(par1Random.nextInt(3) == 0 ? new WorldGenMangrove2(0,0) : new WorldGenMangrove(false)); {
} return par1Random.nextInt(3) == 0 ? new WorldGenMangrove2(0,0) : new WorldGenMangrove(false);
}
} }

View File

@ -9,24 +9,25 @@ import biomesoplenty.worldgen.WorldGenTaiga5;
public class BiomeGenMapleWoods extends BiomeGenBase public class BiomeGenMapleWoods extends BiomeGenBase
{ {
private BiomeDecoratorBOP customBiomeDecorator; private BiomeDecoratorBOP customBiomeDecorator;
public BiomeGenMapleWoods(int par1) public BiomeGenMapleWoods(int par1)
{ {
super(par1); super(par1);
this.theBiomeDecorator = new BiomeDecoratorBOP(this); theBiomeDecorator = new BiomeDecoratorBOP(this);
this.customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator; customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator;
this.customBiomeDecorator.treesPerChunk = 9; customBiomeDecorator.treesPerChunk = 9;
this.customBiomeDecorator.grassPerChunk = 1; customBiomeDecorator.grassPerChunk = 1;
this.customBiomeDecorator.violetsPerChunk = 1; customBiomeDecorator.violetsPerChunk = 1;
this.customBiomeDecorator.poisonIvyPerChunk = 1; customBiomeDecorator.poisonIvyPerChunk = 1;
} }
/** /**
* Gets a WorldGen appropriate for this biome. * Gets a WorldGen appropriate for this biome.
*/ */
public WorldGenerator getRandomWorldGenForTrees(Random par1Random) @Override
{ public WorldGenerator getRandomWorldGenForTrees(Random par1Random)
return (WorldGenerator)(par1Random.nextInt(6) == 0 ? new WorldGenTaiga5(false) : new WorldGenMaple(false)); {
} return par1Random.nextInt(6) == 0 ? new WorldGenTaiga5(false) : new WorldGenMaple(false);
}
} }

View File

@ -14,42 +14,44 @@ import biomesoplenty.worldgen.WorldGenMarsh;
public class BiomeGenMarsh extends BiomeGenBase public class BiomeGenMarsh extends BiomeGenBase
{ {
private BiomeDecoratorBOP customBiomeDecorator; private BiomeDecoratorBOP customBiomeDecorator;
public BiomeGenMarsh(int par1) public BiomeGenMarsh(int par1)
{ {
super(par1); super(par1);
this.spawnableCreatureList.clear(); spawnableCreatureList.clear();
this.spawnableWaterCreatureList.clear(); spawnableWaterCreatureList.clear();
this.theBiomeDecorator = new BiomeDecoratorBOP(this); theBiomeDecorator = new BiomeDecoratorBOP(this);
this.customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator; customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator;
this.customBiomeDecorator.treesPerChunk = -999; customBiomeDecorator.treesPerChunk = -999;
this.customBiomeDecorator.flowersPerChunk = -999; customBiomeDecorator.flowersPerChunk = -999;
this.customBiomeDecorator.grassPerChunk = 65; customBiomeDecorator.grassPerChunk = 65;
this.customBiomeDecorator.highGrassPerChunk = 25; customBiomeDecorator.highGrassPerChunk = 25;
this.customBiomeDecorator.generatePumpkins = false; customBiomeDecorator.generatePumpkins = false;
this.spawnableMonsterList.add(new SpawnListEntry(EntitySlime.class, 10, 1, 3)); spawnableMonsterList.add(new SpawnListEntry(EntitySlime.class, 10, 1, 3));
} }
public void decorate(World par1World, Random par2Random, int par3, int par4)
{
super.decorate(par1World, par2Random, par3, par4);
WorldGenMarsh var5 = new WorldGenMarsh();
for (int var6 = 0; var6 < 25; ++var6) @Override
{ public void decorate(World par1World, Random par2Random, int par3, int par4)
int var7 = par3 + par2Random.nextInt(16) + 8; {
byte var8 = 62; super.decorate(par1World, par2Random, par3, par4);
int var9 = par4 + par2Random.nextInt(16) + 8; WorldGenMarsh var5 = new WorldGenMarsh();
var5.generate(par1World, par2Random, var7, var8, var9);
} for (int var6 = 0; var6 < 25; ++var6)
} {
int var7 = par3 + par2Random.nextInt(16) + 8;
/** byte var8 = 62;
* Gets a WorldGen appropriate for this biome. int var9 = par4 + par2Random.nextInt(16) + 8;
*/ var5.generate(par1World, par2Random, var7, var8, var9);
public WorldGenerator getRandomWorldGenForGrass(Random par1Random) }
{ }
return par1Random.nextInt(2) == 0 ? new WorldGenTallGrass(Block.tallGrass.blockID, 1) : new WorldGenTallGrass(Blocks.foliage.get().blockID, 1);
} /**
* Gets a WorldGen appropriate for this biome.
*/
@Override
public WorldGenerator getRandomWorldGenForGrass(Random par1Random)
{
return par1Random.nextInt(2) == 0 ? new WorldGenTallGrass(Block.tallGrass.blockID, 1) : new WorldGenTallGrass(Blocks.foliage.get().blockID, 1);
}
} }

View File

@ -11,62 +11,66 @@ import net.minecraft.world.gen.feature.WorldGenerator;
public class BiomeGenMeadow extends BiomeGenBase public class BiomeGenMeadow extends BiomeGenBase
{ {
private BiomeDecoratorBOP customBiomeDecorator; private BiomeDecoratorBOP customBiomeDecorator;
public BiomeGenMeadow(int par1) public BiomeGenMeadow(int par1)
{ {
super(par1); super(par1);
this.theBiomeDecorator = new BiomeDecoratorBOP(this); theBiomeDecorator = new BiomeDecoratorBOP(this);
this.customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator; customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator;
this.customBiomeDecorator.treesPerChunk = 2; customBiomeDecorator.treesPerChunk = 2;
this.customBiomeDecorator.grassPerChunk = 10; customBiomeDecorator.grassPerChunk = 10;
this.customBiomeDecorator.tinyFlowersPerChunk = 14; customBiomeDecorator.tinyFlowersPerChunk = 14;
this.customBiomeDecorator.flowersPerChunk = 10; customBiomeDecorator.flowersPerChunk = 10;
this.customBiomeDecorator.carrotsPerChunk = -999; customBiomeDecorator.carrotsPerChunk = -999;
this.customBiomeDecorator.sandPerChunk = -999; customBiomeDecorator.sandPerChunk = -999;
this.customBiomeDecorator.sandPerChunk2 = -999; customBiomeDecorator.sandPerChunk2 = -999;
this.customBiomeDecorator.hydrangeasPerChunk = 3; customBiomeDecorator.hydrangeasPerChunk = 3;
this.customBiomeDecorator.sunflowersPerChunk = 1; customBiomeDecorator.sunflowersPerChunk = 1;
this.customBiomeDecorator.generatePumpkins = false; customBiomeDecorator.generatePumpkins = false;
} }
/**
* Gets a WorldGen appropriate for this biome.
*/
public WorldGenerator getRandomWorldGenForTrees(Random par1Random)
{
return (WorldGenerator)(par1Random.nextInt(3) == 0 ? new WorldGenTaiga2(false) : new WorldGenShrub(0, 1));
}
public void decorate(World par1World, Random par2Random, int par3, int par4)
{
super.decorate(par1World, par2Random, par3, par4);
int var5 = 3 + par2Random.nextInt(6);
for (int var6 = 0; var6 < var5; ++var6) /**
{ * Gets a WorldGen appropriate for this biome.
int var7 = par3 + par2Random.nextInt(16); */
int var8 = par2Random.nextInt(28) + 4; @Override
int var9 = par4 + par2Random.nextInt(16); public WorldGenerator getRandomWorldGenForTrees(Random par1Random)
int var10 = par1World.getBlockId(var7, var8, var9); {
return par1Random.nextInt(3) == 0 ? new WorldGenTaiga2(false) : new WorldGenShrub(0, 1);
}
if (var10 == Block.stone.blockID) @Override
{ public void decorate(World par1World, Random par2Random, int par3, int par4)
par1World.setBlock(var7, var8, var9, Block.oreEmerald.blockID, 0, 2); {
} super.decorate(par1World, par2Random, par3, par4);
} int var5 = 3 + par2Random.nextInt(6);
}
for (int var6 = 0; var6 < var5; ++var6)
/** {
* Provides the basic grass color based on the biome temperature and rainfall int var7 = par3 + par2Random.nextInt(16);
*/ int var8 = par2Random.nextInt(28) + 4;
public int getBiomeGrassColor() int var9 = par4 + par2Random.nextInt(16);
{ int var10 = par1World.getBlockId(var7, var8, var9);
return 6533741;
} if (var10 == Block.stone.blockID)
{
public int getBiomeFoliageColor() par1World.setBlock(var7, var8, var9, Block.oreEmerald.blockID, 0, 2);
{ }
return 6533741; }
} }
/**
* Provides the basic grass color based on the biome temperature and rainfall
*/
@Override
public int getBiomeGrassColor()
{
return 6533741;
}
@Override
public int getBiomeFoliageColor()
{
return 6533741;
}
} }

View File

@ -10,33 +10,32 @@ import biomesoplenty.configuration.BOPConfiguration;
public class BiomeGenMesa extends BiomeGenBase public class BiomeGenMesa extends BiomeGenBase
{ {
private BiomeDecoratorBOP customBiomeDecorator; private BiomeDecoratorBOP customBiomeDecorator;
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
public BiomeGenMesa(int par1) public BiomeGenMesa(int par1)
{ {
super(par1); super(par1);
this.spawnableCreatureList.clear(); spawnableCreatureList.clear();
this.topBlock = (byte)Blocks.redRock.get().blockID; topBlock = (byte)Blocks.redRock.get().blockID;
this.fillerBlock = (byte)Blocks.redRock.get().blockID; fillerBlock = (byte)Blocks.redRock.get().blockID;
this.theBiomeDecorator = new BiomeDecoratorBOP(this); theBiomeDecorator = new BiomeDecoratorBOP(this);
this.customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator; customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator;
this.customBiomeDecorator.treesPerChunk = -999; customBiomeDecorator.treesPerChunk = -999;
this.customBiomeDecorator.deadBushPerChunk = 2; customBiomeDecorator.deadBushPerChunk = 2;
this.customBiomeDecorator.desertGrassPerChunk = 10; customBiomeDecorator.desertGrassPerChunk = 10;
this.customBiomeDecorator.tinyCactiPerChunk = 2; customBiomeDecorator.tinyCactiPerChunk = 2;
this.spawnableMonsterList.add(new SpawnListEntry(EntitySpider.class, 15, 2, 6)); spawnableMonsterList.add(new SpawnListEntry(EntitySpider.class, 15, 2, 6));
} }
/** /**
* takes temperature, returns color * takes temperature, returns color
*/ */
public int getSkyColorByTemp(float par1) @Override
{ public int getSkyColorByTemp(float par1)
{
if (BOPConfiguration.skyColors = true) if (BOPConfiguration.skyColors = true)
{ return 15898486;
return 15898486;
}
else else
{ {
par1 /= 3.0F; par1 /= 3.0F;
@ -53,5 +52,5 @@ public class BiomeGenMesa extends BiomeGenBase
return Color.getHSBColor(0.62222224F - par1 * 0.05F, 0.5F + par1 * 0.1F, 1.0F).getRGB(); return Color.getHSBColor(0.62222224F - par1 * 0.05F, 0.5F + par1 * 0.1F, 1.0F).getRGB();
} }
} }
} }

View File

@ -12,71 +12,73 @@ import biomesoplenty.configuration.BOPConfiguration;
public class BiomeGenMoor extends BiomeGenBase public class BiomeGenMoor extends BiomeGenBase
{ {
private BiomeDecoratorBOP customBiomeDecorator; private BiomeDecoratorBOP customBiomeDecorator;
public BiomeGenMoor(int par1) public BiomeGenMoor(int par1)
{ {
super(par1); super(par1);
this.spawnableCreatureList.clear(); spawnableCreatureList.clear();
this.spawnableWaterCreatureList.clear(); spawnableWaterCreatureList.clear();
this.theBiomeDecorator = new BiomeDecoratorBOP(this); theBiomeDecorator = new BiomeDecoratorBOP(this);
this.customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator; customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator;
this.customBiomeDecorator.treesPerChunk = -999; customBiomeDecorator.treesPerChunk = -999;
this.customBiomeDecorator.flowersPerChunk = -999; customBiomeDecorator.flowersPerChunk = -999;
this.customBiomeDecorator.grassPerChunk = 15; customBiomeDecorator.grassPerChunk = 15;
this.customBiomeDecorator.sandPerChunk = -999; customBiomeDecorator.sandPerChunk = -999;
this.customBiomeDecorator.sandPerChunk2 = -999; customBiomeDecorator.sandPerChunk2 = -999;
this.customBiomeDecorator.mudPerChunk = 1; customBiomeDecorator.mudPerChunk = 1;
this.customBiomeDecorator.mudPerChunk2 = 1; customBiomeDecorator.mudPerChunk2 = 1;
this.customBiomeDecorator.waterLakesPerChunk = 10; customBiomeDecorator.waterLakesPerChunk = 10;
this.waterColorMultiplier = 5800566; waterColorMultiplier = 5800566;
this.customBiomeDecorator.generatePumpkins = false; customBiomeDecorator.generatePumpkins = false;
} }
//public void decorate(World par1World, Random par2Random, int par3, int par4) //public void decorate(World par1World, Random par2Random, int par3, int par4)
//{ //{
// super.decorate(par1World, par2Random, par3, par4); // super.decorate(par1World, par2Random, par3, par4);
// WorldGenMoor var5 = new WorldGenMoor(); // WorldGenMoor var5 = new WorldGenMoor();
// //
// for (int var6 = 0; var6 < 16; ++var6) // for (int var6 = 0; var6 < 16; ++var6)
// { // {
// int var7 = par3 + par2Random.nextInt(16) + 8; // int var7 = par3 + par2Random.nextInt(16) + 8;
// byte var8 = 64; // byte var8 = 64;
// int var9 = par4 + par2Random.nextInt(16) + 8; // int var9 = par4 + par2Random.nextInt(16) + 8;
// var5.generate(par1World, par2Random, var7, var8, var9); // var5.generate(par1World, par2Random, var7, var8, var9);
// } // }
//} //}
/** /**
* Gets a WorldGen appropriate for this biome. * Gets a WorldGen appropriate for this biome.
*/ */
public WorldGenerator getRandomWorldGenForGrass(Random par1Random) @Override
{ public WorldGenerator getRandomWorldGenForGrass(Random par1Random)
{
return (par1Random.nextInt(4) == 0 ? new WorldGenTallGrass(Block.tallGrass.blockID, 1) : (par1Random.nextInt(3) == 0 ? new WorldGenTallGrass(Blocks.foliage.get().blockID, 2) : new WorldGenTallGrass(Blocks.foliage.get().blockID, 1))); return (par1Random.nextInt(4) == 0 ? new WorldGenTallGrass(Block.tallGrass.blockID, 1) : (par1Random.nextInt(3) == 0 ? new WorldGenTallGrass(Blocks.foliage.get().blockID, 2) : new WorldGenTallGrass(Blocks.foliage.get().blockID, 1)));
} }
/** /**
* Provides the basic grass color based on the biome temperature and rainfall * Provides the basic grass color based on the biome temperature and rainfall
*/ */
public int getBiomeGrassColor() @Override
{ public int getBiomeGrassColor()
return 6394725; {
} return 6394725;
}
public int getBiomeFoliageColor()
{ @Override
return 6394725; public int getBiomeFoliageColor()
} {
return 6394725;
/** }
* takes temperature, returns color
*/ /**
public int getSkyColorByTemp(float par1) * takes temperature, returns color
{ */
@Override
public int getSkyColorByTemp(float par1)
{
if (BOPConfiguration.skyColors = true) if (BOPConfiguration.skyColors = true)
{ return 10536403;
return 10536403;
}
else else
{ {
par1 /= 3.0F; par1 /= 3.0F;
@ -93,5 +95,5 @@ public class BiomeGenMoor extends BiomeGenBase
return Color.getHSBColor(0.62222224F - par1 * 0.05F, 0.5F + par1 * 0.1F, 1.0F).getRGB(); return Color.getHSBColor(0.62222224F - par1 * 0.05F, 0.5F + par1 * 0.1F, 1.0F).getRGB();
} }
} }
} }

View File

@ -8,23 +8,24 @@ import biomesoplenty.worldgen.WorldGenPineTree;
public class BiomeGenMountain extends BiomeGenBase public class BiomeGenMountain extends BiomeGenBase
{ {
private BiomeDecoratorBOP customBiomeDecorator; private BiomeDecoratorBOP customBiomeDecorator;
public BiomeGenMountain(int par1) public BiomeGenMountain(int par1)
{ {
super(par1); super(par1);
this.theBiomeDecorator = new BiomeDecoratorBOP(this); theBiomeDecorator = new BiomeDecoratorBOP(this);
this.customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator; customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator;
this.customBiomeDecorator.treesPerChunk = 2; customBiomeDecorator.treesPerChunk = 2;
this.customBiomeDecorator.grassPerChunk = 3; customBiomeDecorator.grassPerChunk = 3;
this.customBiomeDecorator.berryBushesPerChunk = 3; customBiomeDecorator.berryBushesPerChunk = 3;
} }
/** /**
* Gets a WorldGen appropriate for this biome. * Gets a WorldGen appropriate for this biome.
*/ */
public WorldGenerator getRandomWorldGenForTrees(Random par1Random) @Override
{ public WorldGenerator getRandomWorldGenForTrees(Random par1Random)
return (WorldGenerator)(par1Random.nextInt(4) == 0 ? this.worldGeneratorTrees : new WorldGenPineTree()); {
} return par1Random.nextInt(4) == 0 ? worldGeneratorTrees : new WorldGenPineTree();
}
} }

View File

@ -15,76 +15,79 @@ import biomesoplenty.worldgen.WorldGenMystic2;
public class BiomeGenMysticGrove extends BiomeGenBase public class BiomeGenMysticGrove extends BiomeGenBase
{ {
private BiomeDecoratorBOP customBiomeDecorator; private BiomeDecoratorBOP customBiomeDecorator;
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
public BiomeGenMysticGrove(int par1) public BiomeGenMysticGrove(int par1)
{ {
super(par1); super(par1);
this.theBiomeDecorator = new BiomeDecoratorBOP(this); theBiomeDecorator = new BiomeDecoratorBOP(this);
this.customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator; customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator;
this.customBiomeDecorator.treesPerChunk = 8; customBiomeDecorator.treesPerChunk = 8;
this.customBiomeDecorator.grassPerChunk = 7; customBiomeDecorator.grassPerChunk = 7;
this.customBiomeDecorator.flowersPerChunk = 8; customBiomeDecorator.flowersPerChunk = 8;
this.customBiomeDecorator.pinkFlowersPerChunk = 6; customBiomeDecorator.pinkFlowersPerChunk = 6;
this.customBiomeDecorator.glowFlowersPerChunk = 15; customBiomeDecorator.glowFlowersPerChunk = 15;
this.customBiomeDecorator.rosesPerChunk = 8; customBiomeDecorator.rosesPerChunk = 8;
this.customBiomeDecorator.sandPerChunk = -999; customBiomeDecorator.sandPerChunk = -999;
this.customBiomeDecorator.sandPerChunk2 = -999; customBiomeDecorator.sandPerChunk2 = -999;
this.customBiomeDecorator.sproutsPerChunk = 3; customBiomeDecorator.sproutsPerChunk = 3;
this.customBiomeDecorator.hydrangeasPerChunk = 3; customBiomeDecorator.hydrangeasPerChunk = 3;
this.customBiomeDecorator.blueMilksPerChunk = 4; customBiomeDecorator.blueMilksPerChunk = 4;
this.customBiomeDecorator.glowshroomsPerChunk = 2; customBiomeDecorator.glowshroomsPerChunk = 2;
this.customBiomeDecorator.lilyflowersPerChunk = 3; customBiomeDecorator.lilyflowersPerChunk = 3;
this.customBiomeDecorator.hotSpringsPerChunk = 2; customBiomeDecorator.hotSpringsPerChunk = 2;
this.waterColorMultiplier = 15349914; waterColorMultiplier = 15349914;
this.spawnableMonsterList.clear(); spawnableMonsterList.clear();
this.spawnableCreatureList.clear(); spawnableCreatureList.clear();
this.spawnableWaterCreatureList.clear(); spawnableWaterCreatureList.clear();
this.spawnableMonsterList.add(new SpawnListEntry(EntityWitch.class, 10, 4, 4)); spawnableMonsterList.add(new SpawnListEntry(EntityWitch.class, 10, 4, 4));
} }
/** /**
* Gets a WorldGen appropriate for this biome. * Gets a WorldGen appropriate for this biome.
*/ */
public WorldGenerator getRandomWorldGenForTrees(Random par1Random) @Override
{ public WorldGenerator getRandomWorldGenForTrees(Random par1Random)
return (WorldGenerator)(par1Random.nextInt(5) == 0 ? new WorldGenMystic2(false) : new WorldGenMystic1(false)); {
} return par1Random.nextInt(5) == 0 ? new WorldGenMystic2(false) : new WorldGenMystic1(false);
}
/** /**
* Gets a WorldGen appropriate for this biome. * Gets a WorldGen appropriate for this biome.
*/ */
public WorldGenerator getRandomWorldGenForGrass(Random par1Random) @Override
{ public WorldGenerator getRandomWorldGenForGrass(Random par1Random)
return par1Random.nextInt(2) == 0 ? new WorldGenTallGrass(Block.tallGrass.blockID, 2) : new WorldGenTallGrass(Block.tallGrass.blockID, 1); {
} return par1Random.nextInt(2) == 0 ? new WorldGenTallGrass(Block.tallGrass.blockID, 2) : new WorldGenTallGrass(Block.tallGrass.blockID, 1);
}
/** /**
* Provides the basic grass color based on the biome temperature and rainfall * Provides the basic grass color based on the biome temperature and rainfall
*/ */
public int getBiomeGrassColor() @Override
{ public int getBiomeGrassColor()
return 7004860; {
} return 7004860;
}
/**
* Provides the basic foliage color based on the biome temperature and rainfall /**
*/ * Provides the basic foliage color based on the biome temperature and rainfall
public int getBiomeFoliageColor() */
{ @Override
return 3530896; public int getBiomeFoliageColor()
} {
return 3530896;
/** }
* takes temperature, returns color
*/ /**
public int getSkyColorByTemp(float par1) * takes temperature, returns color
{ */
@Override
public int getSkyColorByTemp(float par1)
{
if (BOPConfiguration.skyColors = true) if (BOPConfiguration.skyColors = true)
{ return 16751558;
return 16751558;
}
else else
{ {
par1 /= 3.0F; par1 /= 3.0F;
@ -101,5 +104,5 @@ public class BiomeGenMysticGrove extends BiomeGenBase
return Color.getHSBColor(0.62222224F - par1 * 0.05F, 0.5F + par1 * 0.1F, 1.0F).getRGB(); return Color.getHSBColor(0.62222224F - par1 * 0.05F, 0.5F + par1 * 0.1F, 1.0F).getRGB();
} }
} }
} }

View File

@ -10,20 +10,20 @@ import net.minecraft.world.biome.SpawnListEntry;
public class BiomeGenNetherBase extends BiomeGenBase public class BiomeGenNetherBase extends BiomeGenBase
{ {
private BiomeDecoratorBOP customBiomeDecorator; private BiomeDecoratorBOP customBiomeDecorator;
public BiomeGenNetherBase(int par1) public BiomeGenNetherBase(int par1)
{ {
super(par1); super(par1);
this.theBiomeDecorator = new BiomeDecoratorBOP(this); theBiomeDecorator = new BiomeDecoratorBOP(this);
this.customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator; customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator;
this.topBlock = (byte)Block.netherrack.blockID; topBlock = (byte)Block.netherrack.blockID;
this.fillerBlock = (byte)Block.netherrack.blockID; fillerBlock = (byte)Block.netherrack.blockID;
this.spawnableMonsterList.clear(); spawnableMonsterList.clear();
this.spawnableCreatureList.clear(); spawnableCreatureList.clear();
this.spawnableWaterCreatureList.clear(); spawnableWaterCreatureList.clear();
this.spawnableCaveCreatureList.clear(); spawnableCaveCreatureList.clear();
this.spawnableMonsterList.add(new SpawnListEntry(EntityGhast.class, 50, 4, 4)); spawnableMonsterList.add(new SpawnListEntry(EntityGhast.class, 50, 4, 4));
this.spawnableMonsterList.add(new SpawnListEntry(EntityPigZombie.class, 100, 4, 4)); spawnableMonsterList.add(new SpawnListEntry(EntityPigZombie.class, 100, 4, 4));
this.spawnableMonsterList.add(new SpawnListEntry(EntityMagmaCube.class, 1, 4, 4)); spawnableMonsterList.add(new SpawnListEntry(EntityMagmaCube.class, 1, 4, 4));
} }
} }

View File

@ -1,36 +1,31 @@
package biomesoplenty.biomes; package biomesoplenty.biomes;
import java.util.Random;
import biomesoplenty.worldgen.WorldGenBoneSpine;
import net.minecraft.block.Block; import net.minecraft.block.Block;
import net.minecraft.entity.monster.EntityGhast; import net.minecraft.entity.monster.EntityGhast;
import net.minecraft.entity.monster.EntityMagmaCube; import net.minecraft.entity.monster.EntityMagmaCube;
import net.minecraft.entity.monster.EntityPigZombie; import net.minecraft.entity.monster.EntityPigZombie;
import net.minecraft.world.biome.BiomeGenBase; import net.minecraft.world.biome.BiomeGenBase;
import net.minecraft.world.biome.SpawnListEntry; import net.minecraft.world.biome.SpawnListEntry;
import net.minecraft.world.gen.feature.WorldGenerator;
public class BiomeGenNetherBone extends BiomeGenBase public class BiomeGenNetherBone extends BiomeGenBase
{ {
private BiomeDecoratorBOP customBiomeDecorator; private BiomeDecoratorBOP customBiomeDecorator;
public BiomeGenNetherBone(int par1) public BiomeGenNetherBone(int par1)
{ {
super(par1); super(par1);
this.theBiomeDecorator = new BiomeDecoratorBOP(this); theBiomeDecorator = new BiomeDecoratorBOP(this);
this.customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator; customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator;
this.topBlock = (byte)Block.netherrack.blockID; topBlock = (byte)Block.netherrack.blockID;
this.fillerBlock = (byte)Block.netherrack.blockID; fillerBlock = (byte)Block.netherrack.blockID;
this.customBiomeDecorator.boneSpinesPerChunk = 6; customBiomeDecorator.boneSpinesPerChunk = 6;
this.customBiomeDecorator.boneSpines2PerChunk = 9; customBiomeDecorator.boneSpines2PerChunk = 9;
this.spawnableMonsterList.clear(); spawnableMonsterList.clear();
this.spawnableCreatureList.clear(); spawnableCreatureList.clear();
this.spawnableWaterCreatureList.clear(); spawnableWaterCreatureList.clear();
this.spawnableCaveCreatureList.clear(); spawnableCaveCreatureList.clear();
this.spawnableMonsterList.add(new SpawnListEntry(EntityGhast.class, 50, 4, 4)); spawnableMonsterList.add(new SpawnListEntry(EntityGhast.class, 50, 4, 4));
this.spawnableMonsterList.add(new SpawnListEntry(EntityPigZombie.class, 100, 4, 4)); spawnableMonsterList.add(new SpawnListEntry(EntityPigZombie.class, 100, 4, 4));
this.spawnableMonsterList.add(new SpawnListEntry(EntityMagmaCube.class, 1, 4, 4)); spawnableMonsterList.add(new SpawnListEntry(EntityMagmaCube.class, 1, 4, 4));
} }
} }

View File

@ -10,22 +10,22 @@ import net.minecraft.world.biome.SpawnListEntry;
public class BiomeGenNetherDesert extends BiomeGenBase public class BiomeGenNetherDesert extends BiomeGenBase
{ {
private BiomeDecoratorBOP customBiomeDecorator; private BiomeDecoratorBOP customBiomeDecorator;
public BiomeGenNetherDesert(int par1) public BiomeGenNetherDesert(int par1)
{ {
super(par1); super(par1);
this.theBiomeDecorator = new BiomeDecoratorBOP(this); theBiomeDecorator = new BiomeDecoratorBOP(this);
this.customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator; customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator;
this.topBlock = (byte)Block.slowSand.blockID; topBlock = (byte)Block.slowSand.blockID;
this.fillerBlock = (byte)Block.slowSand.blockID; fillerBlock = (byte)Block.slowSand.blockID;
this.customBiomeDecorator.thornsPerChunk = 10; customBiomeDecorator.thornsPerChunk = 10;
this.customBiomeDecorator.tinyCactiPerChunk = 3; customBiomeDecorator.tinyCactiPerChunk = 3;
this.spawnableMonsterList.clear(); spawnableMonsterList.clear();
this.spawnableCreatureList.clear(); spawnableCreatureList.clear();
this.spawnableWaterCreatureList.clear(); spawnableWaterCreatureList.clear();
this.spawnableCaveCreatureList.clear(); spawnableCaveCreatureList.clear();
this.spawnableMonsterList.add(new SpawnListEntry(EntityGhast.class, 50, 4, 4)); spawnableMonsterList.add(new SpawnListEntry(EntityGhast.class, 50, 4, 4));
this.spawnableMonsterList.add(new SpawnListEntry(EntityPigZombie.class, 100, 4, 4)); spawnableMonsterList.add(new SpawnListEntry(EntityPigZombie.class, 100, 4, 4));
this.spawnableMonsterList.add(new SpawnListEntry(EntityMagmaCube.class, 1, 4, 4)); spawnableMonsterList.add(new SpawnListEntry(EntityMagmaCube.class, 1, 4, 4));
} }
} }

View File

@ -14,36 +14,37 @@ import biomesoplenty.worldgen.WorldGenNetherMushroom;
public class BiomeGenNetherGarden extends BiomeGenBase public class BiomeGenNetherGarden extends BiomeGenBase
{ {
private BiomeDecoratorBOP customBiomeDecorator; private BiomeDecoratorBOP customBiomeDecorator;
public BiomeGenNetherGarden(int par1) public BiomeGenNetherGarden(int par1)
{ {
super(par1); super(par1);
this.theBiomeDecorator = new BiomeDecoratorBOP(this); theBiomeDecorator = new BiomeDecoratorBOP(this);
this.customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator; customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator;
this.topBlock = (byte)Block.netherrack.blockID; topBlock = (byte)Block.netherrack.blockID;
this.fillerBlock = (byte)Block.netherrack.blockID; fillerBlock = (byte)Block.netherrack.blockID;
this.customBiomeDecorator.treesPerChunk = 80; customBiomeDecorator.treesPerChunk = 80;
this.customBiomeDecorator.netherVinesPerChunk = 60; customBiomeDecorator.netherVinesPerChunk = 60;
this.customBiomeDecorator.mushroomsPerChunk = 30; customBiomeDecorator.mushroomsPerChunk = 30;
this.customBiomeDecorator.bigMushroomsPerChunk = 30; customBiomeDecorator.bigMushroomsPerChunk = 30;
this.customBiomeDecorator.netherWartPerChunk = 3; customBiomeDecorator.netherWartPerChunk = 3;
this.customBiomeDecorator.netherGrassPerChunk = 10; customBiomeDecorator.netherGrassPerChunk = 10;
this.customBiomeDecorator.glowshroomsPerChunk = 3; customBiomeDecorator.glowshroomsPerChunk = 3;
this.customBiomeDecorator.toadstoolsPerChunk = 5; customBiomeDecorator.toadstoolsPerChunk = 5;
this.spawnableMonsterList.clear(); spawnableMonsterList.clear();
this.spawnableCreatureList.clear(); spawnableCreatureList.clear();
this.spawnableWaterCreatureList.clear(); spawnableWaterCreatureList.clear();
this.spawnableCaveCreatureList.clear(); spawnableCaveCreatureList.clear();
this.spawnableMonsterList.add(new SpawnListEntry(EntityGhast.class, 50, 4, 4)); spawnableMonsterList.add(new SpawnListEntry(EntityGhast.class, 50, 4, 4));
this.spawnableMonsterList.add(new SpawnListEntry(EntityPigZombie.class, 100, 4, 4)); spawnableMonsterList.add(new SpawnListEntry(EntityPigZombie.class, 100, 4, 4));
this.spawnableMonsterList.add(new SpawnListEntry(EntityMagmaCube.class, 1, 4, 4)); spawnableMonsterList.add(new SpawnListEntry(EntityMagmaCube.class, 1, 4, 4));
} }
/** /**
* Gets a WorldGen appropriate for this biome. * Gets a WorldGen appropriate for this biome.
*/ */
public WorldGenerator getRandomWorldGenForTrees(Random par1Random) @Override
{ public WorldGenerator getRandomWorldGenForTrees(Random par1Random)
return new WorldGenNetherMushroom(); {
} return new WorldGenNetherMushroom();
}
} }

View File

@ -17,50 +17,52 @@ public class BiomeGenNetherLava extends BiomeGenBase
{ {
private WorldGenerator theWorldGenerator; private WorldGenerator theWorldGenerator;
private BiomeDecoratorBOP customBiomeDecorator; private BiomeDecoratorBOP customBiomeDecorator;
public BiomeGenNetherLava(int par1)
{
super(par1);
this.theBiomeDecorator = new BiomeDecoratorBOP(this);
this.customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator;
this.topBlock = (byte)Block.netherrack.blockID;
this.fillerBlock = (byte)Block.netherrack.blockID;
this.customBiomeDecorator.grassPerChunk = 8;
this.customBiomeDecorator.netherLavaPerChunk = 20;
this.customBiomeDecorator.smolderingGrassPerChunk = 2;
this.customBiomeDecorator.generateAsh = true;
this.spawnableMonsterList.clear();
this.spawnableCreatureList.clear();
this.spawnableWaterCreatureList.clear();
this.spawnableCaveCreatureList.clear();
this.spawnableMonsterList.add(new SpawnListEntry(EntityGhast.class, 50, 4, 4));
this.spawnableMonsterList.add(new SpawnListEntry(EntityPigZombie.class, 100, 4, 4));
this.spawnableMonsterList.add(new SpawnListEntry(EntityMagmaCube.class, 4, 4, 4));
this.theWorldGenerator = new WorldGenLavaSpring(Block.lavaMoving.blockID, 4);
}
/**
* Gets a WorldGen appropriate for this biome.
*/
public WorldGenerator getRandomWorldGenForGrass(Random par1Random)
{
return new WorldGenFire();
}
public void decorate(World par1World, Random par2Random, int par3, int par4)
{
super.decorate(par1World, par2Random, par3, par4);
int var5 = 100;
int var6;
int var7;
int var8;
for (var5 = 0; var5 < 3; ++var5) public BiomeGenNetherLava(int par1)
{ {
var6 = par3 + par2Random.nextInt(16); super(par1);
var7 = 64 + par2Random.nextInt(64); theBiomeDecorator = new BiomeDecoratorBOP(this);
var8 = par4 + par2Random.nextInt(16); customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator;
this.theWorldGenerator.generate(par1World, par2Random, var6, var7, var8); topBlock = (byte)Block.netherrack.blockID;
} fillerBlock = (byte)Block.netherrack.blockID;
} customBiomeDecorator.grassPerChunk = 8;
customBiomeDecorator.netherLavaPerChunk = 20;
customBiomeDecorator.smolderingGrassPerChunk = 2;
customBiomeDecorator.generateAsh = true;
spawnableMonsterList.clear();
spawnableCreatureList.clear();
spawnableWaterCreatureList.clear();
spawnableCaveCreatureList.clear();
spawnableMonsterList.add(new SpawnListEntry(EntityGhast.class, 50, 4, 4));
spawnableMonsterList.add(new SpawnListEntry(EntityPigZombie.class, 100, 4, 4));
spawnableMonsterList.add(new SpawnListEntry(EntityMagmaCube.class, 4, 4, 4));
theWorldGenerator = new WorldGenLavaSpring(Block.lavaMoving.blockID, 4);
}
/**
* Gets a WorldGen appropriate for this biome.
*/
@Override
public WorldGenerator getRandomWorldGenForGrass(Random par1Random)
{
return new WorldGenFire();
}
@Override
public void decorate(World par1World, Random par2Random, int par3, int par4)
{
super.decorate(par1World, par2Random, par3, par4);
int var5 = 100;
int var6;
int var7;
int var8;
for (var5 = 0; var5 < 3; ++var5)
{
var6 = par3 + par2Random.nextInt(16);
var7 = 64 + par2Random.nextInt(64);
var8 = par4 + par2Random.nextInt(16);
theWorldGenerator.generate(par1World, par2Random, var6, var7, var8);
}
}
} }

View File

@ -9,37 +9,38 @@ import biomesoplenty.worldgen.WorldGenPalmTree3;
public class BiomeGenOasis extends BiomeGenBase public class BiomeGenOasis extends BiomeGenBase
{ {
private BiomeDecoratorBOP customBiomeDecorator; private BiomeDecoratorBOP customBiomeDecorator;
public BiomeGenOasis(int par1) public BiomeGenOasis(int par1)
{ {
super(par1); super(par1);
this.spawnableCreatureList.clear(); spawnableCreatureList.clear();
this.topBlock = (byte)Block.sand.blockID; topBlock = (byte)Block.sand.blockID;
this.fillerBlock = (byte)Block.sand.blockID; fillerBlock = (byte)Block.sand.blockID;
this.theBiomeDecorator = new BiomeDecoratorBOP(this); theBiomeDecorator = new BiomeDecoratorBOP(this);
this.customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator; customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator;
this.customBiomeDecorator.treesPerChunk = 3; customBiomeDecorator.treesPerChunk = 3;
this.customBiomeDecorator.grassPerChunk = 15; customBiomeDecorator.grassPerChunk = 15;
this.customBiomeDecorator.reedsPerChunk = 100; customBiomeDecorator.reedsPerChunk = 100;
this.customBiomeDecorator.oasesPerChunk = 999; customBiomeDecorator.oasesPerChunk = 999;
this.customBiomeDecorator.oasesPerChunk2 = 999; customBiomeDecorator.oasesPerChunk2 = 999;
this.customBiomeDecorator.cactiPerChunk = 7; customBiomeDecorator.cactiPerChunk = 7;
this.customBiomeDecorator.desertSproutsPerChunk = 3; customBiomeDecorator.desertSproutsPerChunk = 3;
this.customBiomeDecorator.tinyCactiPerChunk = 2; customBiomeDecorator.tinyCactiPerChunk = 2;
this.customBiomeDecorator.generatePumpkins = false; customBiomeDecorator.generatePumpkins = false;
this.customBiomeDecorator.generateMelons = true; customBiomeDecorator.generateMelons = true;
this.customBiomeDecorator.generateQuicksand = true; customBiomeDecorator.generateQuicksand = true;
this.customBiomeDecorator.waterLakesPerChunk = 10; customBiomeDecorator.waterLakesPerChunk = 10;
this.customBiomeDecorator.aloePerChunk = 4; customBiomeDecorator.aloePerChunk = 4;
this.customBiomeDecorator.hotSpringsPerChunk = 2; customBiomeDecorator.hotSpringsPerChunk = 2;
} }
/** /**
* Gets a WorldGen appropriate for this biome. * Gets a WorldGen appropriate for this biome.
*/ */
public WorldGenerator getRandomWorldGenForTrees(Random par1Random) @Override
{ public WorldGenerator getRandomWorldGenForTrees(Random par1Random)
return new WorldGenPalmTree3(); {
} return new WorldGenPalmTree3();
}
} }

View File

@ -4,9 +4,9 @@ import net.minecraft.world.biome.BiomeGenBase;
public class BiomeGenOceanCoral extends BiomeGenBase public class BiomeGenOceanCoral extends BiomeGenBase
{ {
public BiomeGenOceanCoral(int par1) public BiomeGenOceanCoral(int par1)
{ {
super(par1); super(par1);
this.spawnableCreatureList.clear(); spawnableCreatureList.clear();
} }
} }

View File

@ -11,21 +11,22 @@ public class BiomeGenOceanKelp extends BiomeGenBase
{ {
private BiomeDecoratorBOP customBiomeDecorator; private BiomeDecoratorBOP customBiomeDecorator;
public BiomeGenOceanKelp(int par1) public BiomeGenOceanKelp(int par1)
{ {
super(par1); super(par1);
this.theBiomeDecorator = new BiomeDecoratorBOP(this); theBiomeDecorator = new BiomeDecoratorBOP(this);
this.customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator; customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator;
this.customBiomeDecorator.grassPerChunk = 50; customBiomeDecorator.grassPerChunk = 50;
this.spawnableCreatureList.clear(); spawnableCreatureList.clear();
} }
/**
* Gets a WorldGen appropriate for this biome. /**
*/ * Gets a WorldGen appropriate for this biome.
public WorldGenerator getRandomWorldGenForGrass(Random par1Random) */
{ @Override
return new WorldGenTallGrass(Blocks.coral.get().blockID, 0); public WorldGenerator getRandomWorldGenForGrass(Random par1Random)
} {
return new WorldGenTallGrass(Blocks.coral.get().blockID, 0);
}
} }

View File

@ -18,77 +18,80 @@ import biomesoplenty.worldgen.WorldGenOminous2;
public class BiomeGenOminousWoods extends BiomeGenBase public class BiomeGenOminousWoods extends BiomeGenBase
{ {
private BiomeDecoratorBOP customBiomeDecorator; private BiomeDecoratorBOP customBiomeDecorator;
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
public BiomeGenOminousWoods(int par1) public BiomeGenOminousWoods(int par1)
{ {
super(par1); super(par1);
this.theBiomeDecorator = new BiomeDecoratorBOP(this); theBiomeDecorator = new BiomeDecoratorBOP(this);
this.customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator; customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator;
this.customBiomeDecorator.treesPerChunk = 10; customBiomeDecorator.treesPerChunk = 10;
this.customBiomeDecorator.grassPerChunk = 1; customBiomeDecorator.grassPerChunk = 1;
this.customBiomeDecorator.flowersPerChunk = -999; customBiomeDecorator.flowersPerChunk = -999;
this.customBiomeDecorator.deathbloomsPerChunk = 1; customBiomeDecorator.deathbloomsPerChunk = 1;
this.customBiomeDecorator.mushroomsPerChunk = 8; customBiomeDecorator.mushroomsPerChunk = 8;
this.customBiomeDecorator.reedsPerChunk = -999; customBiomeDecorator.reedsPerChunk = -999;
this.customBiomeDecorator.sandPerChunk = -999; customBiomeDecorator.sandPerChunk = -999;
this.customBiomeDecorator.sandPerChunk2 = -999; customBiomeDecorator.sandPerChunk2 = -999;
this.customBiomeDecorator.thornsPerChunk = 9; customBiomeDecorator.thornsPerChunk = 9;
this.customBiomeDecorator.poisonIvyPerChunk = 3; customBiomeDecorator.poisonIvyPerChunk = 3;
this.customBiomeDecorator.poisonWaterPerChunk = 15; customBiomeDecorator.poisonWaterPerChunk = 15;
this.waterColorMultiplier = 1973030; waterColorMultiplier = 1973030;
this.spawnableMonsterList.clear(); spawnableMonsterList.clear();
this.spawnableCreatureList.clear(); spawnableCreatureList.clear();
this.spawnableWaterCreatureList.clear(); spawnableWaterCreatureList.clear();
this.spawnableMonsterList.add(new SpawnListEntry(EntityCaveSpider.class, 5, 1, 2)); spawnableMonsterList.add(new SpawnListEntry(EntityCaveSpider.class, 5, 1, 2));
this.spawnableMonsterList.add(new SpawnListEntry(EntitySpider.class, 7, 1, 2)); spawnableMonsterList.add(new SpawnListEntry(EntitySpider.class, 7, 1, 2));
this.spawnableMonsterList.add(new SpawnListEntry(EntityEnderman.class, 10, 1, 4)); spawnableMonsterList.add(new SpawnListEntry(EntityEnderman.class, 10, 1, 4));
this.spawnableCaveCreatureList.add(new SpawnListEntry(EntityBat.class, 10, 8, 8)); spawnableCaveCreatureList.add(new SpawnListEntry(EntityBat.class, 10, 8, 8));
}
/**
* Gets a WorldGen appropriate for this biome.
*/
public WorldGenerator getRandomWorldGenForTrees(Random par1Random)
{
//return (WorldGenerator)(par1Random.nextInt(3) == 0 ? new WorldGenWillow2() : (par1Random.nextInt(7) == 0 ? new WorldGenDarkTree1() : (par1Random.nextInt(5) == 0 ? new WorldGenWillow1() : new WorldGenDarkTree2())));
return (WorldGenerator)(par1Random.nextInt(2) == 0 ? new WorldGenOminous1(false) : new WorldGenOminous2());
} }
/** /**
* Gets a WorldGen appropriate for this biome. * Gets a WorldGen appropriate for this biome.
*/ */
public WorldGenerator getRandomWorldGenForGrass(Random par1Random) @Override
{ public WorldGenerator getRandomWorldGenForTrees(Random par1Random)
return par1Random.nextInt(6) == 0 ? new WorldGenTallGrass(Block.tallGrass.blockID, 0) : new WorldGenTallGrass(Block.tallGrass.blockID, 1); {
} //return (WorldGenerator)(par1Random.nextInt(3) == 0 ? new WorldGenWillow2() : (par1Random.nextInt(7) == 0 ? new WorldGenDarkTree1() : (par1Random.nextInt(5) == 0 ? new WorldGenWillow1() : new WorldGenDarkTree2())));
return par1Random.nextInt(2) == 0 ? new WorldGenOminous1(false) : new WorldGenOminous2();
}
/** /**
* Provides the basic grass color based on the biome temperature and rainfall * Gets a WorldGen appropriate for this biome.
*/ */
public int getBiomeGrassColor() @Override
{ public WorldGenerator getRandomWorldGenForGrass(Random par1Random)
return 4145489; {
} return par1Random.nextInt(6) == 0 ? new WorldGenTallGrass(Block.tallGrass.blockID, 0) : new WorldGenTallGrass(Block.tallGrass.blockID, 1);
}
/**
* Provides the basic foliage color based on the biome temperature and rainfall /**
*/ * Provides the basic grass color based on the biome temperature and rainfall
public int getBiomeFoliageColor() */
{ @Override
return 4145489; public int getBiomeGrassColor()
} {
return 4145489;
/** }
* takes temperature, returns color
*/ /**
public int getSkyColorByTemp(float par1) * Provides the basic foliage color based on the biome temperature and rainfall
{ */
@Override
public int getBiomeFoliageColor()
{
return 4145489;
}
/**
* takes temperature, returns color
*/
@Override
public int getSkyColorByTemp(float par1)
{
if (BOPConfiguration.skyColors = true) if (BOPConfiguration.skyColors = true)
{ return 5069168;
return 5069168;
}
else else
{ {
par1 /= 3.0F; par1 /= 3.0F;
@ -105,5 +108,5 @@ public class BiomeGenOminousWoods extends BiomeGenBase
return Color.getHSBColor(0.62222224F - par1 * 0.05F, 0.5F + par1 * 0.1F, 1.0F).getRGB(); return Color.getHSBColor(0.62222224F - par1 * 0.05F, 0.5F + par1 * 0.1F, 1.0F).getRGB();
} }
} }
} }

View File

@ -8,43 +8,46 @@ import biomesoplenty.worldgen.WorldGenApple;
public class BiomeGenOrchard extends BiomeGenBase public class BiomeGenOrchard extends BiomeGenBase
{ {
private BiomeDecoratorBOP customBiomeDecorator; private BiomeDecoratorBOP customBiomeDecorator;
public BiomeGenOrchard(int par1) public BiomeGenOrchard(int par1)
{ {
super(par1); super(par1);
this.theBiomeDecorator = new BiomeDecoratorBOP(this); theBiomeDecorator = new BiomeDecoratorBOP(this);
this.customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator; customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator;
this.customBiomeDecorator.treesPerChunk = 2; customBiomeDecorator.treesPerChunk = 2;
this.customBiomeDecorator.flowersPerChunk = 20; customBiomeDecorator.flowersPerChunk = 20;
this.customBiomeDecorator.whiteFlowersPerChunk = 20; customBiomeDecorator.whiteFlowersPerChunk = 20;
this.customBiomeDecorator.tinyFlowersPerChunk = 20; customBiomeDecorator.tinyFlowersPerChunk = 20;
this.customBiomeDecorator.grassPerChunk = 15; customBiomeDecorator.grassPerChunk = 15;
this.customBiomeDecorator.portobellosPerChunk = 2; customBiomeDecorator.portobellosPerChunk = 2;
this.customBiomeDecorator.sunflowersPerChunk = 1; customBiomeDecorator.sunflowersPerChunk = 1;
this.customBiomeDecorator.lilyflowersPerChunk = 2; customBiomeDecorator.lilyflowersPerChunk = 2;
this.customBiomeDecorator.berryBushesPerChunk = 3; customBiomeDecorator.berryBushesPerChunk = 3;
} }
/** /**
* Gets a WorldGen appropriate for this biome. * Gets a WorldGen appropriate for this biome.
*/ */
public WorldGenerator getRandomWorldGenForTrees(Random par1Random) @Override
{ public WorldGenerator getRandomWorldGenForTrees(Random par1Random)
//return (WorldGenerator)(par1Random.nextInt(3) == 0 ? new WorldGenAppleTree1() : new WorldGenAppleTree2()); {
//return (WorldGenerator)(par1Random.nextInt(3) == 0 ? new WorldGenAppleTree1() : new WorldGenAppleTree2());
return new WorldGenApple(false); return new WorldGenApple(false);
} }
/** /**
* Provides the basic grass color based on the biome temperature and rainfall * Provides the basic grass color based on the biome temperature and rainfall
*/ */
public int getBiomeGrassColor() @Override
{ public int getBiomeGrassColor()
return 14024557; {
} return 14024557;
}
public int getBiomeFoliageColor()
{ @Override
return 14024557; public int getBiomeFoliageColor()
} {
return 14024557;
}
} }

View File

@ -11,55 +11,57 @@ import biomesoplenty.worldgen.WorldGenOriginTree;
public class BiomeGenOriginValley extends BiomeGenBase public class BiomeGenOriginValley extends BiomeGenBase
{ {
private BiomeDecoratorBOP customBiomeDecorator; private BiomeDecoratorBOP customBiomeDecorator;
public BiomeGenOriginValley(int par1) public BiomeGenOriginValley(int par1)
{ {
super(par1); super(par1);
this.theBiomeDecorator = new BiomeDecoratorBOP(this); theBiomeDecorator = new BiomeDecoratorBOP(this);
this.customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator; customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator;
this.topBlock = (byte)Blocks.originGrass.get().blockID; topBlock = (byte)Blocks.originGrass.get().blockID;
this.customBiomeDecorator.treesPerChunk = 4; customBiomeDecorator.treesPerChunk = 4;
this.customBiomeDecorator.grassPerChunk = -999; customBiomeDecorator.grassPerChunk = -999;
this.customBiomeDecorator.generatePumpkins = false; customBiomeDecorator.generatePumpkins = false;
this.customBiomeDecorator.sandPerChunk = 0; customBiomeDecorator.sandPerChunk = 0;
this.customBiomeDecorator.sandPerChunk2 = 0; customBiomeDecorator.sandPerChunk2 = 0;
this.customBiomeDecorator.clayPerChunk = 0; customBiomeDecorator.clayPerChunk = 0;
} }
/** /**
* Gets a WorldGen appropriate for this biome. * Gets a WorldGen appropriate for this biome.
*/ */
public WorldGenerator getRandomWorldGenForTrees(Random par1Random) @Override
{ public WorldGenerator getRandomWorldGenForTrees(Random par1Random)
return new WorldGenOriginTree(false); {
} return new WorldGenOriginTree(false);
}
/** /**
* Provides the basic grass color based on the biome temperature and rainfall * Provides the basic grass color based on the biome temperature and rainfall
*/ */
public int getBiomeGrassColor() @Override
{ public int getBiomeGrassColor()
return 10682207; {
} return 10682207;
}
/** /**
* Provides the basic foliage color based on the biome temperature and rainfall * Provides the basic foliage color based on the biome temperature and rainfall
*/ */
public int getBiomeFoliageColor() @Override
{ public int getBiomeFoliageColor()
return 3866368; {
} return 3866368;
}
/**
* takes temperature, returns color /**
*/ * takes temperature, returns color
public int getSkyColorByTemp(float par1) */
{ @Override
public int getSkyColorByTemp(float par1)
{
if (BOPConfiguration.skyColors = true) if (BOPConfiguration.skyColors = true)
{ return 8703228;
return 8703228;
}
else else
{ {
par1 /= 3.0F; par1 /= 3.0F;
@ -76,5 +78,5 @@ public class BiomeGenOriginValley extends BiomeGenBase
return Color.getHSBColor(0.62222224F - par1 * 0.05F, 0.5F + par1 * 0.1F, 1.0F).getRGB(); return Color.getHSBColor(0.62222224F - par1 * 0.05F, 0.5F + par1 * 0.1F, 1.0F).getRGB();
} }
} }
} }

View File

@ -10,30 +10,31 @@ import biomesoplenty.worldgen.WorldGenOutbackTree;
public class BiomeGenOutback extends BiomeGenBase public class BiomeGenOutback extends BiomeGenBase
{ {
private BiomeDecoratorBOP customBiomeDecorator; private BiomeDecoratorBOP customBiomeDecorator;
public BiomeGenOutback(int par1) public BiomeGenOutback(int par1)
{ {
super(par1); super(par1);
this.spawnableCreatureList.clear(); spawnableCreatureList.clear();
this.theBiomeDecorator = new BiomeDecoratorBOP(this); theBiomeDecorator = new BiomeDecoratorBOP(this);
this.customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator; customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator;
this.topBlock = (byte)Blocks.hardSand.get().blockID; topBlock = (byte)Blocks.hardSand.get().blockID;
this.fillerBlock = (byte)Blocks.hardSand.get().blockID; fillerBlock = (byte)Blocks.hardSand.get().blockID;
this.customBiomeDecorator.treesPerChunk = 3; customBiomeDecorator.treesPerChunk = 3;
this.customBiomeDecorator.flowersPerChunk = -999; customBiomeDecorator.flowersPerChunk = -999;
this.customBiomeDecorator.outbackPerChunk = 10; customBiomeDecorator.outbackPerChunk = 10;
this.customBiomeDecorator.deadBushPerChunk = 7; customBiomeDecorator.deadBushPerChunk = 7;
this.customBiomeDecorator.tinyCactiPerChunk = 2; customBiomeDecorator.tinyCactiPerChunk = 2;
this.customBiomeDecorator.bushesPerChunk = 5; customBiomeDecorator.bushesPerChunk = 5;
this.customBiomeDecorator.generatePumpkins = false; customBiomeDecorator.generatePumpkins = false;
} }
/** /**
* Gets a WorldGen appropriate for this biome. * Gets a WorldGen appropriate for this biome.
*/ */
public WorldGenerator getRandomWorldGenForTrees(Random par1Random) @Override
{ public WorldGenerator getRandomWorldGenForTrees(Random par1Random)
return (WorldGenerator)(par1Random.nextInt(3) == 0 ? new WorldGenOutbackShrub(0,0) : new WorldGenOutbackTree()); {
} return par1Random.nextInt(3) == 0 ? new WorldGenOutbackShrub(0,0) : new WorldGenOutbackTree();
}
} }

View File

@ -9,48 +9,52 @@ import biomesoplenty.api.Blocks;
public class BiomeGenPasture extends BiomeGenBase public class BiomeGenPasture extends BiomeGenBase
{ {
private BiomeDecoratorBOP customBiomeDecorator; private BiomeDecoratorBOP customBiomeDecorator;
public BiomeGenPasture(int par1) public BiomeGenPasture(int par1)
{ {
super(par1); super(par1);
this.theBiomeDecorator = new BiomeDecoratorBOP(this); theBiomeDecorator = new BiomeDecoratorBOP(this);
this.customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator; customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator;
this.customBiomeDecorator.treesPerChunk = 0; customBiomeDecorator.treesPerChunk = 0;
this.customBiomeDecorator.grassPerChunk = 999; customBiomeDecorator.grassPerChunk = 999;
this.customBiomeDecorator.flowersPerChunk = -999; customBiomeDecorator.flowersPerChunk = -999;
this.spawnableCreatureList.clear(); spawnableCreatureList.clear();
} }
/**
* Gets a WorldGen appropriate for this biome.
*/
public WorldGenerator getRandomWorldGenForGrass(Random par1Random)
{
return new WorldGenTallGrass(Blocks.plants.get().blockID, 6);
}
/** /**
* Gets a WorldGen appropriate for this biome. * Gets a WorldGen appropriate for this biome.
*/ */
public WorldGenerator getRandomWorldGenForTrees(Random par1Random) @Override
{ public WorldGenerator getRandomWorldGenForGrass(Random par1Random)
return this.worldGeneratorBigTree; {
} return new WorldGenTallGrass(Blocks.plants.get().blockID, 6);
}
/** /**
* Provides the basic grass color based on the biome temperature and rainfall * Gets a WorldGen appropriate for this biome.
*/ */
public int getBiomeGrassColor() @Override
{ public WorldGenerator getRandomWorldGenForTrees(Random par1Random)
return 13166666; {
} return worldGeneratorBigTree;
}
/** /**
* Provides the basic foliage color based on the biome temperature and rainfall * Provides the basic grass color based on the biome temperature and rainfall
*/ */
public int getBiomeFoliageColor() @Override
{ public int getBiomeGrassColor()
return 13166666; {
} return 13166666;
}
/**
* Provides the basic foliage color based on the biome temperature and rainfall
*/
@Override
public int getBiomeFoliageColor()
{
return 13166666;
}
} }

View File

@ -10,26 +10,27 @@ import biomesoplenty.api.Blocks;
public class BiomeGenPlainsNew extends BiomeGenBase public class BiomeGenPlainsNew extends BiomeGenBase
{ {
private BiomeDecoratorBOP customBiomeDecorator; private BiomeDecoratorBOP customBiomeDecorator;
public BiomeGenPlainsNew(int par1) public BiomeGenPlainsNew(int par1)
{ {
super(par1); super(par1);
this.theBiomeDecorator = new BiomeDecoratorBOP(this); theBiomeDecorator = new BiomeDecoratorBOP(this);
this.customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator; customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator;
this.customBiomeDecorator.treesPerChunk = -999; customBiomeDecorator.treesPerChunk = -999;
this.customBiomeDecorator.flowersPerChunk = 4; customBiomeDecorator.flowersPerChunk = 4;
this.customBiomeDecorator.grassPerChunk = 10; customBiomeDecorator.grassPerChunk = 10;
this.customBiomeDecorator.tinyFlowersPerChunk = 1; customBiomeDecorator.tinyFlowersPerChunk = 1;
this.customBiomeDecorator.portobellosPerChunk = 1; customBiomeDecorator.portobellosPerChunk = 1;
this.customBiomeDecorator.sunflowersPerChunk = 2; customBiomeDecorator.sunflowersPerChunk = 2;
} }
/** /**
* Gets a WorldGen appropriate for this biome. * Gets a WorldGen appropriate for this biome.
*/ */
public WorldGenerator getRandomWorldGenForGrass(Random par1Random) @Override
{ public WorldGenerator getRandomWorldGenForGrass(Random par1Random)
return par1Random.nextInt(2) == 0 ? new WorldGenTallGrass(Blocks.foliage.get().blockID, 2) : new WorldGenTallGrass(Block.tallGrass.blockID, 1); {
} return par1Random.nextInt(2) == 0 ? new WorldGenTallGrass(Blocks.foliage.get().blockID, 2) : new WorldGenTallGrass(Block.tallGrass.blockID, 1);
}
} }

View File

@ -4,19 +4,19 @@ import net.minecraft.world.biome.BiomeGenBase;
public class BiomeGenPolar extends BiomeGenBase public class BiomeGenPolar extends BiomeGenBase
{ {
private BiomeDecoratorBOP customBiomeDecorator; private BiomeDecoratorBOP customBiomeDecorator;
public BiomeGenPolar(int par1) public BiomeGenPolar(int par1)
{ {
super(par1); super(par1);
this.spawnableCreatureList.clear(); spawnableCreatureList.clear();
this.theBiomeDecorator = new BiomeDecoratorBOP(this); theBiomeDecorator = new BiomeDecoratorBOP(this);
this.customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator; customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator;
this.customBiomeDecorator.treesPerChunk = -999; customBiomeDecorator.treesPerChunk = -999;
this.customBiomeDecorator.flowersPerChunk = -999; customBiomeDecorator.flowersPerChunk = -999;
this.customBiomeDecorator.grassPerChunk = -999; customBiomeDecorator.grassPerChunk = -999;
this.customBiomeDecorator.sandPerChunk = -999; customBiomeDecorator.sandPerChunk = -999;
this.customBiomeDecorator.sandPerChunk2 = -999; customBiomeDecorator.sandPerChunk2 = -999;
this.waterColorMultiplier = 3685739; waterColorMultiplier = 3685739;
} }
} }

View File

@ -11,33 +11,35 @@ import biomesoplenty.worldgen.WorldGenPrairie;
public class BiomeGenPrairie extends BiomeGenBase public class BiomeGenPrairie extends BiomeGenBase
{ {
private BiomeDecoratorBOP customBiomeDecorator; private BiomeDecoratorBOP customBiomeDecorator;
public BiomeGenPrairie(int par1) public BiomeGenPrairie(int par1)
{ {
super(par1); super(par1);
this.theBiomeDecorator = new BiomeDecoratorBOP(this); theBiomeDecorator = new BiomeDecoratorBOP(this);
this.customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator; customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator;
this.customBiomeDecorator.treesPerChunk = 1; customBiomeDecorator.treesPerChunk = 1;
this.customBiomeDecorator.grassPerChunk = 999; customBiomeDecorator.grassPerChunk = 999;
this.customBiomeDecorator.whiteFlowersPerChunk = 45; customBiomeDecorator.whiteFlowersPerChunk = 45;
this.customBiomeDecorator.portobellosPerChunk = 2; customBiomeDecorator.portobellosPerChunk = 2;
this.customBiomeDecorator.berryBushesPerChunk = 2; customBiomeDecorator.berryBushesPerChunk = 2;
} }
/** /**
* Gets a WorldGen appropriate for this biome. * Gets a WorldGen appropriate for this biome.
*/ */
public WorldGenerator getRandomWorldGenForTrees(Random par1Random) @Override
{ public WorldGenerator getRandomWorldGenForTrees(Random par1Random)
return new WorldGenPrairie(false); {
} return new WorldGenPrairie(false);
}
/**
* Gets a WorldGen appropriate for this biome. /**
*/ * Gets a WorldGen appropriate for this biome.
public WorldGenerator getRandomWorldGenForGrass(Random par1Random) */
{ @Override
public WorldGenerator getRandomWorldGenForGrass(Random par1Random)
{
return (par1Random.nextInt(4) == 0 ? new WorldGenTallGrass(Block.tallGrass.blockID, 1) : (par1Random.nextInt(3) == 0 ? new WorldGenTallGrass(Blocks.foliage.get().blockID, 2) : new WorldGenTallGrass(Blocks.foliage.get().blockID, 1))); return (par1Random.nextInt(4) == 0 ? new WorldGenTallGrass(Block.tallGrass.blockID, 1) : (par1Random.nextInt(3) == 0 ? new WorldGenTallGrass(Blocks.foliage.get().blockID, 2) : new WorldGenTallGrass(Blocks.foliage.get().blockID, 1)));
} }
} }

View File

@ -18,36 +18,36 @@ import biomesoplenty.worldgen.WorldGenWaterSpring;
public class BiomeGenPromisedLandForest extends BiomeGenBase public class BiomeGenPromisedLandForest extends BiomeGenBase
{ {
private WorldGenerator theWorldGenerator; private WorldGenerator theWorldGenerator;
private BiomeDecoratorBOP customBiomeDecorator; private BiomeDecoratorBOP customBiomeDecorator;
public BiomeGenPromisedLandForest(int par1) public BiomeGenPromisedLandForest(int par1)
{ {
super(par1); super(par1);
this.theBiomeDecorator = new BiomeDecoratorBOP(this); theBiomeDecorator = new BiomeDecoratorBOP(this);
this.customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator; customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator;
this.topBlock = (byte)Blocks.holyGrass.get().blockID; topBlock = (byte)Blocks.holyGrass.get().blockID;
this.fillerBlock = (byte)Blocks.holyDirt.get().blockID; fillerBlock = (byte)Blocks.holyDirt.get().blockID;
this.customBiomeDecorator.treesPerChunk = 20; customBiomeDecorator.treesPerChunk = 20;
this.customBiomeDecorator.grassPerChunk = -999; customBiomeDecorator.grassPerChunk = -999;
this.customBiomeDecorator.holyTallGrassPerChunk = 50; customBiomeDecorator.holyTallGrassPerChunk = 50;
this.customBiomeDecorator.promisedWillowPerChunk = 80; customBiomeDecorator.promisedWillowPerChunk = 80;
this.customBiomeDecorator.pinkFlowersPerChunk = 12; customBiomeDecorator.pinkFlowersPerChunk = 12;
this.customBiomeDecorator.blueMilksPerChunk = 5; customBiomeDecorator.blueMilksPerChunk = 5;
this.customBiomeDecorator.generateLakes = false; customBiomeDecorator.generateLakes = false;
this.customBiomeDecorator.pondsPerChunk = -100; customBiomeDecorator.pondsPerChunk = -100;
this.customBiomeDecorator.hotSpringsPerChunk = 10; customBiomeDecorator.hotSpringsPerChunk = 10;
this.customBiomeDecorator.crystalsPerChunk = 25; customBiomeDecorator.crystalsPerChunk = 25;
this.customBiomeDecorator.crystals2PerChunk = 50; customBiomeDecorator.crystals2PerChunk = 50;
this.spawnableCreatureList.clear(); spawnableCreatureList.clear();
this.spawnableWaterCreatureList.clear(); spawnableWaterCreatureList.clear();
this.spawnableMonsterList.clear(); spawnableMonsterList.clear();
this.spawnableCaveCreatureList.clear(); spawnableCaveCreatureList.clear();
this.customBiomeDecorator.generatePumpkins = false; customBiomeDecorator.generatePumpkins = false;
//this.customBiomeDecorator.generateClouds = true; //this.customBiomeDecorator.generateClouds = true;
//this.customBiomeDecorator.generateLakes = false; //this.customBiomeDecorator.generateLakes = false;
this.theWorldGenerator = new WorldGenWaterSpring(Liquids.springWater.get().blockID, 8); theWorldGenerator = new WorldGenWaterSpring(Liquids.springWater.get().blockID, 8);
/*this.spawnableMonsterList.add(new SpawnListEntry(EntityCow.class, 6, 1, 4)); /*this.spawnableMonsterList.add(new SpawnListEntry(EntityCow.class, 6, 1, 4));
if (Loader.isModLoaded("TwilightForest")) if (Loader.isModLoaded("TwilightForest"))
{ {
try { try {
@ -59,65 +59,67 @@ public class BiomeGenPromisedLandForest extends BiomeGenBase
e.printStackTrace(); e.printStackTrace();
} }
}*/ }*/
} }
/**
* Gets a WorldGen appropriate for this biome.
*/
public WorldGenerator getRandomWorldGenForTrees(Random par1Random)
{
return (WorldGenerator)(par1Random.nextInt(4) == 0 ? new WorldGenPromisedTree3(false) : (par1Random.nextInt(2) == 0 ? new WorldGenPromisedShrub(0,0) : (par1Random.nextInt(8) == 0 ? new WorldGenPromisedTree2(false) : new WorldGenPromisedTree(false))));
}
/**
* Provides the basic foliage color based on the biome temperature and rainfall
*/
public int getBiomeFoliageColor()
{
return 7925125;
}
public void decorate(World par1World, Random par2Random, int par3, int par4)
{
super.decorate(par1World, par2Random, par3, par4);
int var5 = 100;
int var6;
int var7;
int var8;
for (var5 = 0; var5 < 10; ++var5) /**
{ * Gets a WorldGen appropriate for this biome.
var6 = par3 + par2Random.nextInt(16); */
var7 = par2Random.nextInt(60); @Override
var8 = par4 + par2Random.nextInt(16); public WorldGenerator getRandomWorldGenForTrees(Random par1Random)
this.theWorldGenerator.generate(par1World, par2Random, var6, var7, var8); {
} return par1Random.nextInt(4) == 0 ? new WorldGenPromisedTree3(false) : (par1Random.nextInt(2) == 0 ? new WorldGenPromisedShrub(0,0) : (par1Random.nextInt(8) == 0 ? new WorldGenPromisedTree2(false) : new WorldGenPromisedTree(false)));
} }
/** /**
* takes temperature, returns color * Provides the basic foliage color based on the biome temperature and rainfall
*/ */
public int getSkyColorByTemp(float par1) @Override
{ public int getBiomeFoliageColor()
if (BOPConfiguration.skyColors = true) {
return 7925125;
}
@Override
public void decorate(World par1World, Random par2Random, int par3, int par4)
{
super.decorate(par1World, par2Random, par3, par4);
int var5 = 100;
int var6;
int var7;
int var8;
for (var5 = 0; var5 < 10; ++var5)
{ {
return BOPConfiguration.promisedLandSkyColor; var6 = par3 + par2Random.nextInt(16);
} var7 = par2Random.nextInt(60);
else var8 = par4 + par2Random.nextInt(16);
{ theWorldGenerator.generate(par1World, par2Random, var6, var7, var8);
par1 /= 3.0F;
if (par1 < -1.0F)
{
par1 = -1.0F;
}
if (par1 > 1.0F)
{
par1 = 1.0F;
}
return Color.getHSBColor(0.62222224F - par1 * 0.05F, 0.5F + par1 * 0.1F, 1.0F).getRGB();
} }
} }
/**
* takes temperature, returns color
*/
@Override
public int getSkyColorByTemp(float par1)
{
if (BOPConfiguration.skyColors = true)
return BOPConfiguration.promisedLandSkyColor;
else
{
par1 /= 3.0F;
if (par1 < -1.0F)
{
par1 = -1.0F;
}
if (par1 > 1.0F)
{
par1 = 1.0F;
}
return Color.getHSBColor(0.62222224F - par1 * 0.05F, 0.5F + par1 * 0.1F, 1.0F).getRGB();
}
}
} }

View File

@ -15,33 +15,33 @@ import biomesoplenty.worldgen.WorldGenWaterSpring;
public class BiomeGenPromisedLandPlains extends BiomeGenBase public class BiomeGenPromisedLandPlains extends BiomeGenBase
{ {
private WorldGenerator theWorldGenerator; private WorldGenerator theWorldGenerator;
private BiomeDecoratorBOP customBiomeDecorator; private BiomeDecoratorBOP customBiomeDecorator;
public BiomeGenPromisedLandPlains(int par1) public BiomeGenPromisedLandPlains(int par1)
{ {
super(par1); super(par1);
this.theBiomeDecorator = new BiomeDecoratorBOP(this); theBiomeDecorator = new BiomeDecoratorBOP(this);
this.customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator; customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator;
this.topBlock = (byte)Blocks.holyGrass.get().blockID; topBlock = (byte)Blocks.holyGrass.get().blockID;
this.fillerBlock = (byte)Blocks.holyDirt.get().blockID; fillerBlock = (byte)Blocks.holyDirt.get().blockID;
this.customBiomeDecorator.treesPerChunk = 4; customBiomeDecorator.treesPerChunk = 4;
this.customBiomeDecorator.grassPerChunk = -999; customBiomeDecorator.grassPerChunk = -999;
this.customBiomeDecorator.holyTallGrassPerChunk = 999; customBiomeDecorator.holyTallGrassPerChunk = 999;
this.customBiomeDecorator.promisedWillowPerChunk = 80; customBiomeDecorator.promisedWillowPerChunk = 80;
this.customBiomeDecorator.generateLakes = false; customBiomeDecorator.generateLakes = false;
this.customBiomeDecorator.pondsPerChunk = -100; customBiomeDecorator.pondsPerChunk = -100;
this.customBiomeDecorator.hotSpringsPerChunk = 6; customBiomeDecorator.hotSpringsPerChunk = 6;
this.customBiomeDecorator.crystalsPerChunk = 25; customBiomeDecorator.crystalsPerChunk = 25;
this.customBiomeDecorator.crystals2PerChunk = 50; customBiomeDecorator.crystals2PerChunk = 50;
this.spawnableCreatureList.clear(); spawnableCreatureList.clear();
this.spawnableWaterCreatureList.clear(); spawnableWaterCreatureList.clear();
this.spawnableMonsterList.clear(); spawnableMonsterList.clear();
this.spawnableCaveCreatureList.clear(); spawnableCaveCreatureList.clear();
this.customBiomeDecorator.generatePumpkins = false; customBiomeDecorator.generatePumpkins = false;
//this.customBiomeDecorator.generateClouds = true; //this.customBiomeDecorator.generateClouds = true;
//this.customBiomeDecorator.generateLakes = false; //this.customBiomeDecorator.generateLakes = false;
this.theWorldGenerator = new WorldGenWaterSpring(Liquids.springWater.get().blockID, 8); theWorldGenerator = new WorldGenWaterSpring(Liquids.springWater.get().blockID, 8);
/*if (Loader.isModLoaded("TwilightForest")) /*if (Loader.isModLoaded("TwilightForest"))
{ {
try { try {
@ -53,65 +53,67 @@ public class BiomeGenPromisedLandPlains extends BiomeGenBase
e.printStackTrace(); e.printStackTrace();
} }
}*/ }*/
} }
/** /**
* Gets a WorldGen appropriate for this biome. * Gets a WorldGen appropriate for this biome.
*/ */
public WorldGenerator getRandomWorldGenForTrees(Random par1Random) @Override
{ public WorldGenerator getRandomWorldGenForTrees(Random par1Random)
{
return new WorldGenPromisedBush(); return new WorldGenPromisedBush();
} }
/**
* Provides the basic foliage color based on the biome temperature and rainfall
*/
public int getBiomeFoliageColor()
{
return 11266663;
}
public void decorate(World par1World, Random par2Random, int par3, int par4)
{
super.decorate(par1World, par2Random, par3, par4);
int var5 = 100;
int var6;
int var7;
int var8;
for (var5 = 0; var5 < 10; ++var5) /**
{ * Provides the basic foliage color based on the biome temperature and rainfall
var6 = par3 + par2Random.nextInt(16); */
var7 = par2Random.nextInt(60); @Override
var8 = par4 + par2Random.nextInt(16); public int getBiomeFoliageColor()
this.theWorldGenerator.generate(par1World, par2Random, var6, var7, var8); {
} return 11266663;
} }
/** @Override
* takes temperature, returns color public void decorate(World par1World, Random par2Random, int par3, int par4)
*/ {
public int getSkyColorByTemp(float par1) super.decorate(par1World, par2Random, par3, par4);
{ int var5 = 100;
if (BOPConfiguration.skyColors = true) int var6;
int var7;
int var8;
for (var5 = 0; var5 < 10; ++var5)
{ {
return BOPConfiguration.promisedLandSkyColor; var6 = par3 + par2Random.nextInt(16);
} var7 = par2Random.nextInt(60);
else var8 = par4 + par2Random.nextInt(16);
{ theWorldGenerator.generate(par1World, par2Random, var6, var7, var8);
par1 /= 3.0F;
if (par1 < -1.0F)
{
par1 = -1.0F;
}
if (par1 > 1.0F)
{
par1 = 1.0F;
}
return Color.getHSBColor(0.62222224F - par1 * 0.05F, 0.5F + par1 * 0.1F, 1.0F).getRGB();
} }
} }
/**
* takes temperature, returns color
*/
@Override
public int getSkyColorByTemp(float par1)
{
if (BOPConfiguration.skyColors = true)
return BOPConfiguration.promisedLandSkyColor;
else
{
par1 /= 3.0F;
if (par1 < -1.0F)
{
par1 = -1.0F;
}
if (par1 > 1.0F)
{
par1 = 1.0F;
}
return Color.getHSBColor(0.62222224F - par1 * 0.05F, 0.5F + par1 * 0.1F, 1.0F).getRGB();
}
}
} }

View File

@ -16,38 +16,38 @@ import biomesoplenty.worldgen.WorldGenWaterSpring;
public class BiomeGenPromisedLandSwamp extends BiomeGenBase public class BiomeGenPromisedLandSwamp extends BiomeGenBase
{ {
private WorldGenerator theWorldGenerator; private WorldGenerator theWorldGenerator;
private BiomeDecoratorBOP customBiomeDecorator; private BiomeDecoratorBOP customBiomeDecorator;
public BiomeGenPromisedLandSwamp(int par1) public BiomeGenPromisedLandSwamp(int par1)
{ {
super(par1); super(par1);
this.theBiomeDecorator = new BiomeDecoratorBOP(this); theBiomeDecorator = new BiomeDecoratorBOP(this);
this.customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator; customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator;
this.topBlock = (byte)Blocks.holyGrass.get().blockID; topBlock = (byte)Blocks.holyGrass.get().blockID;
this.fillerBlock = (byte)Blocks.holyDirt.get().blockID; fillerBlock = (byte)Blocks.holyDirt.get().blockID;
this.customBiomeDecorator.treesPerChunk = 12; customBiomeDecorator.treesPerChunk = 12;
this.customBiomeDecorator.grassPerChunk = -999; customBiomeDecorator.grassPerChunk = -999;
this.customBiomeDecorator.holyTallGrassPerChunk = 100; customBiomeDecorator.holyTallGrassPerChunk = 100;
this.customBiomeDecorator.promisedWillowPerChunk = 80; customBiomeDecorator.promisedWillowPerChunk = 80;
this.customBiomeDecorator.pinkFlowersPerChunk = 6; customBiomeDecorator.pinkFlowersPerChunk = 6;
this.customBiomeDecorator.blueMilksPerChunk = 15; customBiomeDecorator.blueMilksPerChunk = 15;
this.customBiomeDecorator.toadstoolsPerChunk = 10; customBiomeDecorator.toadstoolsPerChunk = 10;
this.customBiomeDecorator.portobellosPerChunk = 5; customBiomeDecorator.portobellosPerChunk = 5;
this.customBiomeDecorator.generateLakes = false; customBiomeDecorator.generateLakes = false;
this.customBiomeDecorator.pondsPerChunk = -100; customBiomeDecorator.pondsPerChunk = -100;
this.customBiomeDecorator.hotSpringsPerChunk = 20; customBiomeDecorator.hotSpringsPerChunk = 20;
this.customBiomeDecorator.crystalsPerChunk = 25; customBiomeDecorator.crystalsPerChunk = 25;
this.customBiomeDecorator.crystals2PerChunk = 50; customBiomeDecorator.crystals2PerChunk = 50;
this.spawnableCreatureList.clear(); spawnableCreatureList.clear();
this.spawnableWaterCreatureList.clear(); spawnableWaterCreatureList.clear();
this.spawnableMonsterList.clear(); spawnableMonsterList.clear();
this.spawnableCaveCreatureList.clear(); spawnableCaveCreatureList.clear();
this.customBiomeDecorator.generatePumpkins = false; customBiomeDecorator.generatePumpkins = false;
//this.customBiomeDecorator.generateClouds = true; //this.customBiomeDecorator.generateClouds = true;
//this.customBiomeDecorator.generateLakes = false; //this.customBiomeDecorator.generateLakes = false;
this.theWorldGenerator = new WorldGenWaterSpring(Liquids.springWater.get().blockID, 8); theWorldGenerator = new WorldGenWaterSpring(Liquids.springWater.get().blockID, 8);
/*this.spawnableMonsterList.add(new SpawnListEntry(EntityPig.class, 4, 1, 4)); /*this.spawnableMonsterList.add(new SpawnListEntry(EntityPig.class, 4, 1, 4));
if (Loader.isModLoaded("TwilightForest")) if (Loader.isModLoaded("TwilightForest"))
{ {
try { try {
@ -58,65 +58,67 @@ public class BiomeGenPromisedLandSwamp extends BiomeGenBase
e.printStackTrace(); e.printStackTrace();
} }
}*/ }*/
} }
/**
* Gets a WorldGen appropriate for this biome.
*/
public WorldGenerator getRandomWorldGenForTrees(Random par1Random)
{
return (WorldGenerator)(par1Random.nextInt(6) == 0 ? new WorldGenPromisedTree(false) : new WorldGenPromisedWillowTree());
}
/**
* Provides the basic foliage color based on the biome temperature and rainfall
*/
public int getBiomeFoliageColor()
{
return 4583331;
}
public void decorate(World par1World, Random par2Random, int par3, int par4)
{
super.decorate(par1World, par2Random, par3, par4);
int var5 = 100;
int var6;
int var7;
int var8;
for (var5 = 0; var5 < 10; ++var5) /**
{ * Gets a WorldGen appropriate for this biome.
var6 = par3 + par2Random.nextInt(16); */
var7 = par2Random.nextInt(60); @Override
var8 = par4 + par2Random.nextInt(16); public WorldGenerator getRandomWorldGenForTrees(Random par1Random)
this.theWorldGenerator.generate(par1World, par2Random, var6, var7, var8); {
} return par1Random.nextInt(6) == 0 ? new WorldGenPromisedTree(false) : new WorldGenPromisedWillowTree();
} }
/** /**
* takes temperature, returns color * Provides the basic foliage color based on the biome temperature and rainfall
*/ */
public int getSkyColorByTemp(float par1) @Override
{ public int getBiomeFoliageColor()
if (BOPConfiguration.skyColors = true) {
return 4583331;
}
@Override
public void decorate(World par1World, Random par2Random, int par3, int par4)
{
super.decorate(par1World, par2Random, par3, par4);
int var5 = 100;
int var6;
int var7;
int var8;
for (var5 = 0; var5 < 10; ++var5)
{ {
return BOPConfiguration.promisedLandSkyColor; var6 = par3 + par2Random.nextInt(16);
} var7 = par2Random.nextInt(60);
else var8 = par4 + par2Random.nextInt(16);
{ theWorldGenerator.generate(par1World, par2Random, var6, var7, var8);
par1 /= 3.0F;
if (par1 < -1.0F)
{
par1 = -1.0F;
}
if (par1 > 1.0F)
{
par1 = 1.0F;
}
return Color.getHSBColor(0.62222224F - par1 * 0.05F, 0.5F + par1 * 0.1F, 1.0F).getRGB();
} }
} }
/**
* takes temperature, returns color
*/
@Override
public int getSkyColorByTemp(float par1)
{
if (BOPConfiguration.skyColors = true)
return BOPConfiguration.promisedLandSkyColor;
else
{
par1 /= 3.0F;
if (par1 < -1.0F)
{
par1 = -1.0F;
}
if (par1 > 1.0F)
{
par1 = 1.0F;
}
return Color.getHSBColor(0.62222224F - par1 * 0.05F, 0.5F + par1 * 0.1F, 1.0F).getRGB();
}
}
} }

View File

@ -11,74 +11,76 @@ import biomesoplenty.worldgen.WorldGenDeadTree;
public class BiomeGenQuagmire extends BiomeGenBase public class BiomeGenQuagmire extends BiomeGenBase
{ {
private BiomeDecoratorBOP customBiomeDecorator; private BiomeDecoratorBOP customBiomeDecorator;
public BiomeGenQuagmire(int par1) public BiomeGenQuagmire(int par1)
{ {
super(par1); super(par1);
this.spawnableCreatureList.clear(); spawnableCreatureList.clear();
this.spawnableWaterCreatureList.clear(); spawnableWaterCreatureList.clear();
this.topBlock = (byte)Blocks.mud.get().blockID; topBlock = (byte)Blocks.mud.get().blockID;
this.fillerBlock = (byte)Blocks.mud.get().blockID; fillerBlock = (byte)Blocks.mud.get().blockID;
this.theBiomeDecorator = new BiomeDecoratorBOP(this); theBiomeDecorator = new BiomeDecoratorBOP(this);
this.customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator; customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator;
this.customBiomeDecorator.treesPerChunk = 0; customBiomeDecorator.treesPerChunk = 0;
this.customBiomeDecorator.grassPerChunk = 10; customBiomeDecorator.grassPerChunk = 10;
this.customBiomeDecorator.flowersPerChunk = -999; customBiomeDecorator.flowersPerChunk = -999;
this.customBiomeDecorator.sandPerChunk = -999; customBiomeDecorator.sandPerChunk = -999;
this.customBiomeDecorator.sandPerChunk2 = -999; customBiomeDecorator.sandPerChunk2 = -999;
this.waterColorMultiplier = 13390080; waterColorMultiplier = 13390080;
this.customBiomeDecorator.generateQuagmire = true; customBiomeDecorator.generateQuagmire = true;
} }
/**
* Gets a WorldGen appropriate for this biome.
*/
public WorldGenerator getRandomWorldGenForTrees(Random par1Random)
{
return new WorldGenDeadTree(false);
}
/** /**
* Provides the basic grass color based on the biome temperature and rainfall * Gets a WorldGen appropriate for this biome.
*/ */
public int getBiomeGrassColor() @Override
{ public WorldGenerator getRandomWorldGenForTrees(Random par1Random)
return 10390377; {
} return new WorldGenDeadTree(false);
}
/** /**
* Provides the basic foliage color based on the biome temperature and rainfall * Provides the basic grass color based on the biome temperature and rainfall
*/ */
public int getBiomeFoliageColor() @Override
{ public int getBiomeGrassColor()
return 10390377; {
} return 10390377;
}
/**
* takes temperature, returns color
*/
public int getSkyColorByTemp(float par1)
{
if (BOPConfiguration.skyColors = true)
{
return 12436670;
}
else
{
par1 /= 3.0F;
if (par1 < -1.0F) /**
{ * Provides the basic foliage color based on the biome temperature and rainfall
par1 = -1.0F; */
} @Override
public int getBiomeFoliageColor()
{
return 10390377;
}
if (par1 > 1.0F) /**
{ * takes temperature, returns color
par1 = 1.0F; */
} @Override
public int getSkyColorByTemp(float par1)
{
if (BOPConfiguration.skyColors = true)
return 12436670;
else
{
par1 /= 3.0F;
return Color.getHSBColor(0.62222224F - par1 * 0.05F, 0.5F + par1 * 0.1F, 1.0F).getRGB(); if (par1 < -1.0F)
} {
} par1 = -1.0F;
}
if (par1 > 1.0F)
{
par1 = 1.0F;
}
return Color.getHSBColor(0.62222224F - par1 * 0.05F, 0.5F + par1 * 0.1F, 1.0F).getRGB();
}
}
} }

View File

@ -13,55 +13,59 @@ import biomesoplenty.worldgen.WorldGenRainforestTree1;
public class BiomeGenRainforest extends BiomeGenBase public class BiomeGenRainforest extends BiomeGenBase
{ {
private BiomeDecoratorBOP customBiomeDecorator; private BiomeDecoratorBOP customBiomeDecorator;
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
public BiomeGenRainforest(int par1) public BiomeGenRainforest(int par1)
{ {
super(par1); super(par1);
this.theBiomeDecorator = new BiomeDecoratorBOP(this); theBiomeDecorator = new BiomeDecoratorBOP(this);
this.customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator; customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator;
this.customBiomeDecorator.treesPerChunk = 14; customBiomeDecorator.treesPerChunk = 14;
this.customBiomeDecorator.grassPerChunk = 25; customBiomeDecorator.grassPerChunk = 25;
this.customBiomeDecorator.pinkFlowersPerChunk = 2; customBiomeDecorator.pinkFlowersPerChunk = 2;
this.customBiomeDecorator.flowersPerChunk = 25; customBiomeDecorator.flowersPerChunk = 25;
this.customBiomeDecorator.rosesPerChunk = 10; customBiomeDecorator.rosesPerChunk = 10;
this.customBiomeDecorator.mushroomsPerChunk = 25; customBiomeDecorator.mushroomsPerChunk = 25;
this.customBiomeDecorator.orangeFlowersPerChunk = 6; customBiomeDecorator.orangeFlowersPerChunk = 6;
this.customBiomeDecorator.generatePumpkins = false; customBiomeDecorator.generatePumpkins = false;
this.spawnableMonsterList.add(new SpawnListEntry(EntityOcelot.class, 2, 1, 1)); spawnableMonsterList.add(new SpawnListEntry(EntityOcelot.class, 2, 1, 1));
this.spawnableMonsterList.add(new SpawnListEntry(EntityJungleSpider.class, 12, 6, 6)); spawnableMonsterList.add(new SpawnListEntry(EntityJungleSpider.class, 12, 6, 6));
} }
/** /**
* Gets a WorldGen appropriate for this biome. * Gets a WorldGen appropriate for this biome.
*/ */
public WorldGenerator getRandomWorldGenForTrees(Random par1Random) @Override
{ public WorldGenerator getRandomWorldGenForTrees(Random par1Random)
return (WorldGenerator)(par1Random.nextInt(15) == 0 ? this.worldGeneratorForest : (par1Random.nextInt(5) == 0 ? this.worldGeneratorBigTree : new WorldGenRainforestTree1(false))); {
} return par1Random.nextInt(15) == 0 ? worldGeneratorForest : (par1Random.nextInt(5) == 0 ? worldGeneratorBigTree : new WorldGenRainforestTree1(false));
}
/** /**
* Gets a WorldGen appropriate for this biome. * Gets a WorldGen appropriate for this biome.
*/ */
public WorldGenerator getRandomWorldGenForGrass(Random par1Random) @Override
{ public WorldGenerator getRandomWorldGenForGrass(Random par1Random)
return par1Random.nextInt(4) == 0 ? new WorldGenTallGrass(Block.tallGrass.blockID, 2) : new WorldGenTallGrass(Block.tallGrass.blockID, 1); {
} return par1Random.nextInt(4) == 0 ? new WorldGenTallGrass(Block.tallGrass.blockID, 2) : new WorldGenTallGrass(Block.tallGrass.blockID, 1);
}
/**
* Provides the basic grass color based on the biome temperature and rainfall
*/
public int getBiomeGrassColor()
{
return 1759340;
}
/** /**
* Provides the basic foliage color based on the biome temperature and rainfall * Provides the basic grass color based on the biome temperature and rainfall
*/ */
public int getBiomeFoliageColor() @Override
{ public int getBiomeGrassColor()
return 1368687; {
} return 1759340;
}
/**
* Provides the basic foliage color based on the biome temperature and rainfall
*/
@Override
public int getBiomeFoliageColor()
{
return 1368687;
}
} }

View File

@ -12,33 +12,35 @@ import biomesoplenty.worldgen.WorldGenRedwoodTree2;
public class BiomeGenRedwoodForest extends BiomeGenBase public class BiomeGenRedwoodForest extends BiomeGenBase
{ {
private BiomeDecoratorBOP customBiomeDecorator; private BiomeDecoratorBOP customBiomeDecorator;
public BiomeGenRedwoodForest(int par1) public BiomeGenRedwoodForest(int par1)
{ {
super(par1); super(par1);
this.theBiomeDecorator = new BiomeDecoratorBOP(this); theBiomeDecorator = new BiomeDecoratorBOP(this);
this.customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator; customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator;
this.customBiomeDecorator.treesPerChunk = 6; customBiomeDecorator.treesPerChunk = 6;
this.customBiomeDecorator.grassPerChunk = 16; customBiomeDecorator.grassPerChunk = 16;
this.customBiomeDecorator.bushesPerChunk = 4; customBiomeDecorator.bushesPerChunk = 4;
this.customBiomeDecorator.berryBushesPerChunk = 1; customBiomeDecorator.berryBushesPerChunk = 1;
this.customBiomeDecorator.generatePumpkins = false; customBiomeDecorator.generatePumpkins = false;
} }
/**
* Gets a WorldGen appropriate for this biome.
*/
public WorldGenerator getRandomWorldGenForTrees(Random par1Random)
{
return (WorldGenerator)(par1Random.nextInt(4) == 0 ? new WorldGenRedwoodTree(false) : (par1Random.nextInt(2) == 0 ? new WorldGenShrub(0,0) : new WorldGenRedwoodTree2(false)));
}
/** /**
* Gets a WorldGen appropriate for this biome. * Gets a WorldGen appropriate for this biome.
*/ */
public WorldGenerator getRandomWorldGenForGrass(Random par1Random) @Override
{ public WorldGenerator getRandomWorldGenForTrees(Random par1Random)
return par1Random.nextInt(4) == 0 ? new WorldGenTallGrass(Block.tallGrass.blockID, 2) : new WorldGenTallGrass(Block.tallGrass.blockID, 1); {
} return par1Random.nextInt(4) == 0 ? new WorldGenRedwoodTree(false) : (par1Random.nextInt(2) == 0 ? new WorldGenShrub(0,0) : new WorldGenRedwoodTree2(false));
}
/**
* Gets a WorldGen appropriate for this biome.
*/
@Override
public WorldGenerator getRandomWorldGenForGrass(Random par1Random)
{
return par1Random.nextInt(4) == 0 ? new WorldGenTallGrass(Block.tallGrass.blockID, 2) : new WorldGenTallGrass(Block.tallGrass.blockID, 1);
}
} }

View File

@ -14,90 +14,93 @@ import biomesoplenty.mobs.EntityJungleSpider;
public class BiomeGenSacredSprings extends BiomeGenBase public class BiomeGenSacredSprings extends BiomeGenBase
{ {
private BiomeDecoratorBOP customBiomeDecorator; private BiomeDecoratorBOP customBiomeDecorator;
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
public BiomeGenSacredSprings(int par1) public BiomeGenSacredSprings(int par1)
{ {
super(par1); super(par1);
this.theBiomeDecorator = new BiomeDecoratorBOP(this); theBiomeDecorator = new BiomeDecoratorBOP(this);
this.customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator; customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator;
this.customBiomeDecorator.treesPerChunk = 30; customBiomeDecorator.treesPerChunk = 30;
this.customBiomeDecorator.grassPerChunk = 4; customBiomeDecorator.grassPerChunk = 4;
this.customBiomeDecorator.waterlilyPerChunk = 5; customBiomeDecorator.waterlilyPerChunk = 5;
this.customBiomeDecorator.violetsPerChunk = 1; customBiomeDecorator.violetsPerChunk = 1;
this.customBiomeDecorator.hotSpringsPerChunk = 1; customBiomeDecorator.hotSpringsPerChunk = 1;
this.customBiomeDecorator.generatePumpkins = false; customBiomeDecorator.generatePumpkins = false;
this.spawnableMonsterList.add(new SpawnListEntry(EntityJungleSpider.class, 12, 6, 6)); spawnableMonsterList.add(new SpawnListEntry(EntityJungleSpider.class, 12, 6, 6));
} }
/**
* Gets a WorldGen appropriate for this biome.
*/
public WorldGenerator getRandomWorldGenForTrees(Random par1Random)
{
return new WorldGenShrub(0, 0);
}
public void decorate(World par1World, Random par2Random, int par3, int par4)
{
super.decorate(par1World, par2Random, par3, par4);
int var5 = par2Random.nextInt(75);
for (int var6 = 0; var6 < var5; ++var6) /**
{ * Gets a WorldGen appropriate for this biome.
int var7 = par3 + par2Random.nextInt(16); */
int var8 = par2Random.nextInt(53) + 75; @Override
int var9 = par4 + par2Random.nextInt(16); public WorldGenerator getRandomWorldGenForTrees(Random par1Random)
int var10 = par1World.getBlockId(var7, var8, var9); {
return new WorldGenShrub(0, 0);
}
if (var10 == Block.stone.blockID || var10 == Block.dirt.blockID) @Override
{ public void decorate(World par1World, Random par2Random, int par3, int par4)
par1World.setBlock(var7, var8, var9, Block.waterMoving.blockID, 0, 2); {
} super.decorate(par1World, par2Random, par3, par4);
} int var5 = par2Random.nextInt(75);
}
/**
* Provides the basic grass color based on the biome temperature and rainfall
*/
public int getBiomeGrassColor()
{
return 39259;
}
/** for (int var6 = 0; var6 < var5; ++var6)
* Provides the basic foliage color based on the biome temperature and rainfall
*/
public int getBiomeFoliageColor()
{
return 39259;
}
/**
* takes temperature, returns color
*/
public int getSkyColorByTemp(float par1)
{
if (BOPConfiguration.skyColors = true)
{ {
return 1995007; int var7 = par3 + par2Random.nextInt(16);
} int var8 = par2Random.nextInt(53) + 75;
else int var9 = par4 + par2Random.nextInt(16);
{ int var10 = par1World.getBlockId(var7, var8, var9);
par1 /= 3.0F;
if (par1 < -1.0F) if (var10 == Block.stone.blockID || var10 == Block.dirt.blockID)
{ {
par1 = -1.0F; par1World.setBlock(var7, var8, var9, Block.waterMoving.blockID, 0, 2);
} }
if (par1 > 1.0F)
{
par1 = 1.0F;
}
return Color.getHSBColor(0.62222224F - par1 * 0.05F, 0.5F + par1 * 0.1F, 1.0F).getRGB();
} }
} }
/**
* Provides the basic grass color based on the biome temperature and rainfall
*/
@Override
public int getBiomeGrassColor()
{
return 39259;
}
/**
* Provides the basic foliage color based on the biome temperature and rainfall
*/
@Override
public int getBiomeFoliageColor()
{
return 39259;
}
/**
* takes temperature, returns color
*/
@Override
public int getSkyColorByTemp(float par1)
{
if (BOPConfiguration.skyColors = true)
return 1995007;
else
{
par1 /= 3.0F;
if (par1 < -1.0F)
{
par1 = -1.0F;
}
if (par1 > 1.0F)
{
par1 = 1.0F;
}
return Color.getHSBColor(0.62222224F - par1 * 0.05F, 0.5F + par1 * 0.1F, 1.0F).getRGB();
}
}
} }

View File

@ -11,35 +11,37 @@ import biomesoplenty.worldgen.WorldGenAcacia;
public class BiomeGenSavanna extends BiomeGenBase public class BiomeGenSavanna extends BiomeGenBase
{ {
private BiomeDecoratorBOP customBiomeDecorator; private BiomeDecoratorBOP customBiomeDecorator;
public BiomeGenSavanna(int par1) public BiomeGenSavanna(int par1)
{ {
super(par1); super(par1);
this.theBiomeDecorator = new BiomeDecoratorBOP(this); theBiomeDecorator = new BiomeDecoratorBOP(this);
this.customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator; customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator;
this.customBiomeDecorator.treesPerChunk = 2; customBiomeDecorator.treesPerChunk = 2;
this.customBiomeDecorator.flowersPerChunk = -999; customBiomeDecorator.flowersPerChunk = -999;
this.customBiomeDecorator.purpleFlowersPerChunk = 10; customBiomeDecorator.purpleFlowersPerChunk = 10;
this.customBiomeDecorator.tinyFlowersPerChunk = 2; customBiomeDecorator.tinyFlowersPerChunk = 2;
this.customBiomeDecorator.grassPerChunk = 25; customBiomeDecorator.grassPerChunk = 25;
this.customBiomeDecorator.bushesPerChunk = 10; customBiomeDecorator.bushesPerChunk = 10;
this.customBiomeDecorator.generatePumpkins = false; customBiomeDecorator.generatePumpkins = false;
} }
/** /**
* Gets a WorldGen appropriate for this biome. * Gets a WorldGen appropriate for this biome.
*/ */
public WorldGenerator getRandomWorldGenForTrees(Random par1Random) @Override
{ public WorldGenerator getRandomWorldGenForTrees(Random par1Random)
return (WorldGenerator)(par1Random.nextInt(3) == 0 ? new WorldGenAcacia(false) : new WorldGenShrub(0,0)); {
} return par1Random.nextInt(3) == 0 ? new WorldGenAcacia(false) : new WorldGenShrub(0,0);
}
/**
* Gets a WorldGen appropriate for this biome. /**
*/ * Gets a WorldGen appropriate for this biome.
public WorldGenerator getRandomWorldGenForGrass(Random par1Random) */
{ @Override
return par1Random.nextInt(4) == 0 ? new WorldGenTallGrass(Blocks.foliage.get().blockID, 2) : new WorldGenTallGrass(Blocks.foliage.get().blockID, 1); public WorldGenerator getRandomWorldGenForGrass(Random par1Random)
} {
return par1Random.nextInt(4) == 0 ? new WorldGenTallGrass(Blocks.foliage.get().blockID, 2) : new WorldGenTallGrass(Blocks.foliage.get().blockID, 1);
}
} }

View File

@ -11,33 +11,35 @@ import biomesoplenty.worldgen.WorldGenScrubland;
public class BiomeGenScrubland extends BiomeGenBase public class BiomeGenScrubland extends BiomeGenBase
{ {
private BiomeDecoratorBOP customBiomeDecorator; private BiomeDecoratorBOP customBiomeDecorator;
public BiomeGenScrubland(int par1) public BiomeGenScrubland(int par1)
{ {
super(par1); super(par1);
this.theBiomeDecorator = new BiomeDecoratorBOP(this); theBiomeDecorator = new BiomeDecoratorBOP(this);
this.customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator; customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator;
this.customBiomeDecorator.treesPerChunk = 7; customBiomeDecorator.treesPerChunk = 7;
this.customBiomeDecorator.flowersPerChunk = -999; customBiomeDecorator.flowersPerChunk = -999;
this.customBiomeDecorator.highGrassPerChunk = 2; customBiomeDecorator.highGrassPerChunk = 2;
this.customBiomeDecorator.grassPerChunk = 30; customBiomeDecorator.grassPerChunk = 30;
this.customBiomeDecorator.generatePumpkins = false; customBiomeDecorator.generatePumpkins = false;
} }
/** /**
* Gets a WorldGen appropriate for this biome. * Gets a WorldGen appropriate for this biome.
*/ */
public WorldGenerator getRandomWorldGenForTrees(Random par1Random) @Override
{ public WorldGenerator getRandomWorldGenForTrees(Random par1Random)
return (WorldGenerator)(par1Random.nextInt(3) == 0 ? new WorldGenShrub(0, 0) : new WorldGenScrubland(false)); {
} return par1Random.nextInt(3) == 0 ? new WorldGenShrub(0, 0) : new WorldGenScrubland(false);
}
/** /**
* Gets a WorldGen appropriate for this biome. * Gets a WorldGen appropriate for this biome.
*/ */
public WorldGenerator getRandomWorldGenForGrass(Random par1Random) @Override
{ public WorldGenerator getRandomWorldGenForGrass(Random par1Random)
return par1Random.nextInt(5) == 0 ? new WorldGenTallGrass(Block.tallGrass.blockID, 0) : new WorldGenTallGrass(Block.tallGrass.blockID, 1); {
} return par1Random.nextInt(5) == 0 ? new WorldGenTallGrass(Block.tallGrass.blockID, 0) : new WorldGenTallGrass(Block.tallGrass.blockID, 1);
}
} }

View File

@ -17,51 +17,55 @@ import biomesoplenty.worldgen.WorldGenMapleBig;
public class BiomeGenSeasonalForest extends BiomeGenBase public class BiomeGenSeasonalForest extends BiomeGenBase
{ {
private BiomeDecoratorBOP customBiomeDecorator; private BiomeDecoratorBOP customBiomeDecorator;
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
public BiomeGenSeasonalForest(int par1) public BiomeGenSeasonalForest(int par1)
{ {
super(par1); super(par1);
this.spawnableCreatureList.add(new SpawnListEntry(EntityWolf.class, 5, 4, 4)); spawnableCreatureList.add(new SpawnListEntry(EntityWolf.class, 5, 4, 4));
this.theBiomeDecorator = new BiomeDecoratorBOP(this); theBiomeDecorator = new BiomeDecoratorBOP(this);
this.customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator; customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator;
this.customBiomeDecorator.treesPerChunk = 20; customBiomeDecorator.treesPerChunk = 20;
this.customBiomeDecorator.grassPerChunk = 8; customBiomeDecorator.grassPerChunk = 8;
this.customBiomeDecorator.flowersPerChunk = -999; customBiomeDecorator.flowersPerChunk = -999;
this.customBiomeDecorator.toadstoolsPerChunk = 4; customBiomeDecorator.toadstoolsPerChunk = 4;
} }
/**
* Gets a WorldGen appropriate for this biome.
*/
public WorldGenerator getRandomWorldGenForGrass(Random par1Random)
{
return par1Random.nextInt(2) == 0 ? new WorldGenTallGrass(Blocks.foliage.get().blockID, 2) : new WorldGenTallGrass(Blocks.foliage.get().blockID, 1);
}
/**
* Gets a WorldGen appropriate for this biome.
*/
public WorldGenerator getRandomWorldGenForTrees(Random par1Random)
{
return (WorldGenerator)(par1Random.nextInt(2) == 0 ? new WorldGenAutumn2(false) : (par1Random.nextInt(3) == 0 ? new WorldGenAutumn(false) : (par1Random.nextInt(6) == 0 ? new WorldGenAutumn2Big(false) : (par1Random.nextInt(6) == 0 ? new WorldGenMapleBig(false) : (par1Random.nextInt(3) == 0 ? new WorldGenMaple(false) : (par1Random.nextInt(5) == 0 ? new WorldGenDeadTree2(false) : (par1Random.nextInt(6) == 0 ? this.worldGeneratorBigTree : this.worldGeneratorTrees)))))));
}
/**
* Provides the basic foliage color based on the biome temperature and rainfall
*/
public int getBiomeFoliageColor()
{
return 11781186;
}
/** /**
* Provides the basic grass color based on the biome temperature and rainfall * Gets a WorldGen appropriate for this biome.
*/ */
public int getBiomeGrassColor() @Override
{ public WorldGenerator getRandomWorldGenForGrass(Random par1Random)
{
return par1Random.nextInt(2) == 0 ? new WorldGenTallGrass(Blocks.foliage.get().blockID, 2) : new WorldGenTallGrass(Blocks.foliage.get().blockID, 1);
}
/**
* Gets a WorldGen appropriate for this biome.
*/
@Override
public WorldGenerator getRandomWorldGenForTrees(Random par1Random)
{
return par1Random.nextInt(2) == 0 ? new WorldGenAutumn2(false) : (par1Random.nextInt(3) == 0 ? new WorldGenAutumn(false) : (par1Random.nextInt(6) == 0 ? new WorldGenAutumn2Big(false) : (par1Random.nextInt(6) == 0 ? new WorldGenMapleBig(false) : (par1Random.nextInt(3) == 0 ? new WorldGenMaple(false) : (par1Random.nextInt(5) == 0 ? new WorldGenDeadTree2(false) : (par1Random.nextInt(6) == 0 ? worldGeneratorBigTree : worldGeneratorTrees))))));
}
/**
* Provides the basic foliage color based on the biome temperature and rainfall
*/
@Override
public int getBiomeFoliageColor()
{
return 11781186;
}
/**
* Provides the basic grass color based on the biome temperature and rainfall
*/
@Override
public int getBiomeGrassColor()
{
return 12502092; return 12502092;
//return 12502595; //return 12502595;
} }
} }

View File

@ -11,57 +11,61 @@ import biomesoplenty.worldgen.WorldGenTaiga5;
public class BiomeGenShield extends BiomeGenBase public class BiomeGenShield extends BiomeGenBase
{ {
private BiomeDecoratorBOP customBiomeDecorator; private BiomeDecoratorBOP customBiomeDecorator;
public BiomeGenShield(int par1) public BiomeGenShield(int par1)
{ {
super(par1); super(par1);
this.theBiomeDecorator = new BiomeDecoratorBOP(this); theBiomeDecorator = new BiomeDecoratorBOP(this);
this.customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator; customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator;
this.customBiomeDecorator.treesPerChunk = 7; customBiomeDecorator.treesPerChunk = 7;
this.customBiomeDecorator.grassPerChunk = 12; customBiomeDecorator.grassPerChunk = 12;
this.customBiomeDecorator.sandPerChunk = -999; customBiomeDecorator.sandPerChunk = -999;
this.customBiomeDecorator.sandPerChunk2 = -999; customBiomeDecorator.sandPerChunk2 = -999;
this.customBiomeDecorator.gravelPerChunk = 4; customBiomeDecorator.gravelPerChunk = 4;
this.customBiomeDecorator.gravelPerChunk2 = 4; customBiomeDecorator.gravelPerChunk2 = 4;
this.customBiomeDecorator.generateStoneInGrass2 = true; customBiomeDecorator.generateStoneInGrass2 = true;
} }
/** /**
* Gets a WorldGen appropriate for this biome. * Gets a WorldGen appropriate for this biome.
*/ */
public WorldGenerator getRandomWorldGenForTrees(Random par1Random) @Override
{ public WorldGenerator getRandomWorldGenForTrees(Random par1Random)
return (WorldGenerator)(par1Random.nextInt(2) == 0 ? new WorldGenShrub(0,0) : new WorldGenTaiga5(false)); {
} return par1Random.nextInt(2) == 0 ? new WorldGenShrub(0,0) : new WorldGenTaiga5(false);
}
public void decorate(World par1World, Random par2Random, int par3, int par4)
{
super.decorate(par1World, par2Random, par3, par4);
WorldGenMoss var5 = new WorldGenMoss();
for (int var6 = 0; var6 < 20; ++var6) @Override
{ public void decorate(World par1World, Random par2Random, int par3, int par4)
int var7 = par3 + par2Random.nextInt(16) + 8; {
byte var8 = 58; super.decorate(par1World, par2Random, par3, par4);
int var9 = par4 + par2Random.nextInt(16) + 8; WorldGenMoss var5 = new WorldGenMoss();
var5.generate(par1World, par2Random, var7, var8, var9);
} for (int var6 = 0; var6 < 20; ++var6)
} {
int var7 = par3 + par2Random.nextInt(16) + 8;
/** byte var8 = 58;
* Provides the basic grass color based on the biome temperature and rainfall int var9 = par4 + par2Random.nextInt(16) + 8;
*/ var5.generate(par1World, par2Random, var7, var8, var9);
public int getBiomeGrassColor() }
{ }
return 6586168;
} /**
* Provides the basic grass color based on the biome temperature and rainfall
/** */
* Provides the basic foliage color based on the biome temperature and rainfall @Override
*/ public int getBiomeGrassColor()
public int getBiomeFoliageColor() {
{ return 6586168;
return 7902787; }
}
/**
* Provides the basic foliage color based on the biome temperature and rainfall
*/
@Override
public int getBiomeFoliageColor()
{
return 7902787;
}
} }

View File

@ -4,9 +4,9 @@ import net.minecraft.world.biome.BiomeGenBase;
public class BiomeGenShore extends BiomeGenBase public class BiomeGenShore extends BiomeGenBase
{ {
public BiomeGenShore(int par1) public BiomeGenShore(int par1)
{ {
super(par1); super(par1);
this.spawnableCreatureList.clear(); spawnableCreatureList.clear();
} }
} }

View File

@ -10,33 +10,35 @@ import biomesoplenty.api.Blocks;
public class BiomeGenShrubland extends BiomeGenBase public class BiomeGenShrubland extends BiomeGenBase
{ {
private BiomeDecoratorBOP customBiomeDecorator; private BiomeDecoratorBOP customBiomeDecorator;
public BiomeGenShrubland(int par1) public BiomeGenShrubland(int par1)
{ {
super(par1); super(par1);
this.theBiomeDecorator = new BiomeDecoratorBOP(this); theBiomeDecorator = new BiomeDecoratorBOP(this);
this.customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator; customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator;
this.customBiomeDecorator.treesPerChunk = 0; customBiomeDecorator.treesPerChunk = 0;
this.customBiomeDecorator.flowersPerChunk = 0; customBiomeDecorator.flowersPerChunk = 0;
this.customBiomeDecorator.grassPerChunk = 5; customBiomeDecorator.grassPerChunk = 5;
this.customBiomeDecorator.bushesPerChunk = 7; customBiomeDecorator.bushesPerChunk = 7;
this.customBiomeDecorator.generatePumpkins = false; customBiomeDecorator.generatePumpkins = false;
} }
/** /**
* Gets a WorldGen appropriate for this biome. * Gets a WorldGen appropriate for this biome.
*/ */
public WorldGenerator getRandomWorldGenForTrees(Random par1Random) @Override
{ public WorldGenerator getRandomWorldGenForTrees(Random par1Random)
return new WorldGenShrub(0, 0); {
} return new WorldGenShrub(0, 0);
}
/**
* Gets a WorldGen appropriate for this biome. /**
*/ * Gets a WorldGen appropriate for this biome.
public WorldGenerator getRandomWorldGenForGrass(Random par1Random) */
{ @Override
return new WorldGenTallGrass(Blocks.foliage.get().blockID, 1); public WorldGenerator getRandomWorldGenForGrass(Random par1Random)
} {
return new WorldGenTallGrass(Blocks.foliage.get().blockID, 1);
}
} }

View File

@ -16,71 +16,74 @@ import biomesoplenty.worldgen.WorldGenBog2;
public class BiomeGenSludgepit extends BiomeGenBase public class BiomeGenSludgepit extends BiomeGenBase
{ {
private BiomeDecoratorBOP customBiomeDecorator; private BiomeDecoratorBOP customBiomeDecorator;
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
public BiomeGenSludgepit(int par1) public BiomeGenSludgepit(int par1)
{ {
super(par1); super(par1);
this.spawnableCreatureList.clear(); spawnableCreatureList.clear();
this.spawnableWaterCreatureList.clear(); spawnableWaterCreatureList.clear();
this.theBiomeDecorator = new BiomeDecoratorBOP(this); theBiomeDecorator = new BiomeDecoratorBOP(this);
this.customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator; customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator;
this.customBiomeDecorator.treesPerChunk = 30; customBiomeDecorator.treesPerChunk = 30;
this.customBiomeDecorator.grassPerChunk = 30; customBiomeDecorator.grassPerChunk = 30;
this.customBiomeDecorator.flowersPerChunk = -999; customBiomeDecorator.flowersPerChunk = -999;
this.customBiomeDecorator.sandPerChunk = -999; customBiomeDecorator.sandPerChunk = -999;
this.customBiomeDecorator.sandPerChunk2 = -999; customBiomeDecorator.sandPerChunk2 = -999;
this.customBiomeDecorator.mudPerChunk = 5; customBiomeDecorator.mudPerChunk = 5;
this.customBiomeDecorator.mudPerChunk2 = 5; customBiomeDecorator.mudPerChunk2 = 5;
this.customBiomeDecorator.deadBushPerChunk = 5; customBiomeDecorator.deadBushPerChunk = 5;
this.customBiomeDecorator.algaePerChunk = 2; customBiomeDecorator.algaePerChunk = 2;
this.customBiomeDecorator.poisonWaterPerChunk = 5; customBiomeDecorator.poisonWaterPerChunk = 5;
this.spawnableCreatureList.add(new SpawnListEntry(EntitySlime.class, 1, 1, 1)); spawnableCreatureList.add(new SpawnListEntry(EntitySlime.class, 1, 1, 1));
this.waterColorMultiplier = 11506176; waterColorMultiplier = 11506176;
} }
/** /**
* Gets a WorldGen appropriate for this biome. * Gets a WorldGen appropriate for this biome.
*/ */
public WorldGenerator getRandomWorldGenForTrees(Random par1Random) @Override
{ public WorldGenerator getRandomWorldGenForTrees(Random par1Random)
return (WorldGenerator)(par1Random.nextInt(3) == 0 ? new WorldGenBog2() : new WorldGenBog1()); {
} return par1Random.nextInt(3) == 0 ? new WorldGenBog2() : new WorldGenBog1();
}
/** /**
* Gets a WorldGen appropriate for this biome. * Gets a WorldGen appropriate for this biome.
*/ */
public WorldGenerator getRandomWorldGenForGrass(Random par1Random) @Override
{ public WorldGenerator getRandomWorldGenForGrass(Random par1Random)
return par1Random.nextInt(9) == 0 ? new WorldGenTallGrass(Block.tallGrass.blockID, 0) : new WorldGenTallGrass(Blocks.foliage.get().blockID, 2); {
} return par1Random.nextInt(9) == 0 ? new WorldGenTallGrass(Block.tallGrass.blockID, 0) : new WorldGenTallGrass(Blocks.foliage.get().blockID, 2);
}
/** /**
* Provides the basic grass color based on the biome temperature and rainfall * Provides the basic grass color based on the biome temperature and rainfall
*/ */
public int getBiomeGrassColor() @Override
{ public int getBiomeGrassColor()
return 7627817; {
} return 7627817;
}
/** /**
* Provides the basic foliage color based on the biome temperature and rainfall * Provides the basic foliage color based on the biome temperature and rainfall
*/ */
public int getBiomeFoliageColor() @Override
{ public int getBiomeFoliageColor()
return 9539892; {
} return 9539892;
}
/**
* takes temperature, returns color /**
*/ * takes temperature, returns color
public int getSkyColorByTemp(float par1) */
{ @Override
public int getSkyColorByTemp(float par1)
{
if (BOPConfiguration.skyColors = true) if (BOPConfiguration.skyColors = true)
{ return 7039816;
return 7039816;
}
else else
{ {
par1 /= 3.0F; par1 /= 3.0F;
@ -97,5 +100,5 @@ public class BiomeGenSludgepit extends BiomeGenBase
return Color.getHSBColor(0.62222224F - par1 * 0.05F, 0.5F + par1 * 0.1F, 1.0F).getRGB(); return Color.getHSBColor(0.62222224F - par1 * 0.05F, 0.5F + par1 * 0.1F, 1.0F).getRGB();
} }
} }
} }

View File

@ -11,27 +11,28 @@ import biomesoplenty.worldgen.WorldGenTaiga5;
public class BiomeGenSpruceWoods extends BiomeGenBase public class BiomeGenSpruceWoods extends BiomeGenBase
{ {
private BiomeDecoratorBOP customBiomeDecorator; private BiomeDecoratorBOP customBiomeDecorator;
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
public BiomeGenSpruceWoods(int par1) public BiomeGenSpruceWoods(int par1)
{ {
super(par1); super(par1);
this.spawnableCreatureList.add(new SpawnListEntry(EntityWolf.class, 8, 4, 4)); spawnableCreatureList.add(new SpawnListEntry(EntityWolf.class, 8, 4, 4));
this.theBiomeDecorator = new BiomeDecoratorBOP(this); theBiomeDecorator = new BiomeDecoratorBOP(this);
this.customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator; customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator;
this.customBiomeDecorator.treesPerChunk = 10; customBiomeDecorator.treesPerChunk = 10;
this.customBiomeDecorator.grassPerChunk = 6; customBiomeDecorator.grassPerChunk = 6;
this.customBiomeDecorator.sproutsPerChunk = 3; customBiomeDecorator.sproutsPerChunk = 3;
this.customBiomeDecorator.poisonIvyPerChunk = 1; customBiomeDecorator.poisonIvyPerChunk = 1;
this.customBiomeDecorator.berryBushesPerChunk = 3; customBiomeDecorator.berryBushesPerChunk = 3;
} }
/** /**
* Gets a WorldGen appropriate for this biome. * Gets a WorldGen appropriate for this biome.
*/ */
public WorldGenerator getRandomWorldGenForTrees(Random par1Random) @Override
{ public WorldGenerator getRandomWorldGenForTrees(Random par1Random)
return (WorldGenerator)(par1Random.nextInt(3) == 0 ? new WorldGenTaiga5(false) : new WorldGenTaiga2(false)); {
} return par1Random.nextInt(3) == 0 ? new WorldGenTaiga5(false) : new WorldGenTaiga2(false);
}
} }

View File

@ -9,43 +9,46 @@ import biomesoplenty.api.Blocks;
public class BiomeGenSteppe extends BiomeGenBase public class BiomeGenSteppe extends BiomeGenBase
{ {
private BiomeDecoratorBOP customBiomeDecorator; private BiomeDecoratorBOP customBiomeDecorator;
public BiomeGenSteppe(int par1) public BiomeGenSteppe(int par1)
{ {
super(par1); super(par1);
this.spawnableCreatureList.clear(); spawnableCreatureList.clear();
this.theBiomeDecorator = new BiomeDecoratorBOP(this); theBiomeDecorator = new BiomeDecoratorBOP(this);
this.customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator; customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator;
this.customBiomeDecorator.treesPerChunk = -999; customBiomeDecorator.treesPerChunk = -999;
this.customBiomeDecorator.flowersPerChunk = -999; customBiomeDecorator.flowersPerChunk = -999;
this.customBiomeDecorator.grassPerChunk = 15; customBiomeDecorator.grassPerChunk = 15;
this.customBiomeDecorator.deadBushPerChunk = 7; customBiomeDecorator.deadBushPerChunk = 7;
this.customBiomeDecorator.tinyCactiPerChunk = 1; customBiomeDecorator.tinyCactiPerChunk = 1;
this.customBiomeDecorator.generateQuicksand = true; customBiomeDecorator.generateQuicksand = true;
this.customBiomeDecorator.steppePerChunk = 6; customBiomeDecorator.steppePerChunk = 6;
this.customBiomeDecorator.aloePerChunk = 2; customBiomeDecorator.aloePerChunk = 2;
this.customBiomeDecorator.generatePumpkins = false; customBiomeDecorator.generatePumpkins = false;
} }
/** /**
* Gets a WorldGen appropriate for this biome. * Gets a WorldGen appropriate for this biome.
*/ */
public WorldGenerator getRandomWorldGenForGrass(Random par1Random) @Override
{ public WorldGenerator getRandomWorldGenForGrass(Random par1Random)
{
return new WorldGenTallGrass(Blocks.foliage.get().blockID, 1); return new WorldGenTallGrass(Blocks.foliage.get().blockID, 1);
} }
/** /**
* Provides the basic grass color based on the biome temperature and rainfall * Provides the basic grass color based on the biome temperature and rainfall
*/ */
public int getBiomeGrassColor() @Override
{ public int getBiomeGrassColor()
return 13413215; {
} return 13413215;
}
public int getBiomeFoliageColor()
{ @Override
return 13413215; public int getBiomeFoliageColor()
} {
return 13413215;
}
} }

View File

@ -15,67 +15,71 @@ import biomesoplenty.worldgen.WorldGenWillow;
public class BiomeGenSwampNew extends BiomeGenBase public class BiomeGenSwampNew extends BiomeGenBase
{ {
private BiomeDecoratorBOP customBiomeDecorator; private BiomeDecoratorBOP customBiomeDecorator;
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
public BiomeGenSwampNew(int par1) public BiomeGenSwampNew(int par1)
{ {
super(par1); super(par1);
this.theBiomeDecorator = new BiomeDecoratorBOP(this); theBiomeDecorator = new BiomeDecoratorBOP(this);
this.customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator; customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator;
this.customBiomeDecorator.treesPerChunk = 4; customBiomeDecorator.treesPerChunk = 4;
this.customBiomeDecorator.flowersPerChunk = -999; customBiomeDecorator.flowersPerChunk = -999;
this.customBiomeDecorator.deadBushPerChunk = 1; customBiomeDecorator.deadBushPerChunk = 1;
this.customBiomeDecorator.mushroomsPerChunk = 8; customBiomeDecorator.mushroomsPerChunk = 8;
this.customBiomeDecorator.reedsPerChunk = 10; customBiomeDecorator.reedsPerChunk = 10;
this.customBiomeDecorator.clayPerChunk = 1; customBiomeDecorator.clayPerChunk = 1;
this.customBiomeDecorator.waterlilyPerChunk = 4; customBiomeDecorator.waterlilyPerChunk = 4;
this.customBiomeDecorator.mudPerChunk = 9; customBiomeDecorator.mudPerChunk = 9;
this.customBiomeDecorator.mudPerChunk2 = 9; customBiomeDecorator.mudPerChunk2 = 9;
this.customBiomeDecorator.portobellosPerChunk = 1; customBiomeDecorator.portobellosPerChunk = 1;
this.waterColorMultiplier = 14745456; waterColorMultiplier = 14745456;
this.spawnableMonsterList.add(new SpawnListEntry(EntitySlime.class, 1, 1, 1)); spawnableMonsterList.add(new SpawnListEntry(EntitySlime.class, 1, 1, 1));
} }
/**
* Gets a WorldGen appropriate for this biome.
*/
public WorldGenerator getRandomWorldGenForTrees(Random par1Random)
{
return (WorldGenerator)(par1Random.nextInt(3) == 0 ? new WorldGenLog() : new WorldGenWillow());
}
public void decorate(World par1World, Random par2Random, int par3, int par4)
{
super.decorate(par1World, par2Random, par3, par4);
WorldGenMoss var5 = new WorldGenMoss();
for (int var6 = 0; var6 < 20; ++var6) /**
{ * Gets a WorldGen appropriate for this biome.
int var7 = par3 + par2Random.nextInt(16) + 8; */
byte var8 = 58; @Override
int var9 = par4 + par2Random.nextInt(16) + 8; public WorldGenerator getRandomWorldGenForTrees(Random par1Random)
var5.generate(par1World, par2Random, var7, var8, var9); {
} return par1Random.nextInt(3) == 0 ? new WorldGenLog() : new WorldGenWillow();
} }
/** @Override
* Provides the basic grass color based on the biome temperature and rainfall public void decorate(World par1World, Random par2Random, int par3, int par4)
*/ {
public int getBiomeGrassColor() super.decorate(par1World, par2Random, par3, par4);
{ WorldGenMoss var5 = new WorldGenMoss();
double var1 = (double)this.getFloatTemperature();
double var3 = (double)this.getFloatRainfall();
return ((ColorizerGrass.getGrassColor(var1, var3) & 16711422) + 5115470) / 2;
}
/** for (int var6 = 0; var6 < 20; ++var6)
* Provides the basic foliage color based on the biome temperature and rainfall {
*/ int var7 = par3 + par2Random.nextInt(16) + 8;
public int getBiomeFoliageColor() byte var8 = 58;
{ int var9 = par4 + par2Random.nextInt(16) + 8;
double var1 = (double)this.getFloatTemperature(); var5.generate(par1World, par2Random, var7, var8, var9);
double var3 = (double)this.getFloatRainfall(); }
return ((ColorizerFoliage.getFoliageColor(var1, var3) & 16711422) + 5115470) / 2; }
}
/**
* Provides the basic grass color based on the biome temperature and rainfall
*/
@Override
public int getBiomeGrassColor()
{
double var1 = this.getFloatTemperature();
double var3 = this.getFloatRainfall();
return ((ColorizerGrass.getGrassColor(var1, var3) & 16711422) + 5115470) / 2;
}
/**
* Provides the basic foliage color based on the biome temperature and rainfall
*/
@Override
public int getBiomeFoliageColor()
{
double var1 = this.getFloatTemperature();
double var3 = this.getFloatRainfall();
return ((ColorizerFoliage.getFoliageColor(var1, var3) & 16711422) + 5115470) / 2;
}
} }

View File

@ -13,34 +13,36 @@ import biomesoplenty.api.Blocks;
public class BiomeGenTaigaNew extends BiomeGenBase public class BiomeGenTaigaNew extends BiomeGenBase
{ {
private BiomeDecoratorBOP customBiomeDecorator; private BiomeDecoratorBOP customBiomeDecorator;
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
public BiomeGenTaigaNew(int par1) public BiomeGenTaigaNew(int par1)
{ {
super(par1); super(par1);
this.spawnableCreatureList.add(new SpawnListEntry(EntityWolf.class, 8, 4, 4)); spawnableCreatureList.add(new SpawnListEntry(EntityWolf.class, 8, 4, 4));
this.theBiomeDecorator = new BiomeDecoratorBOP(this); theBiomeDecorator = new BiomeDecoratorBOP(this);
this.customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator; customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator;
this.customBiomeDecorator.treesPerChunk = 10; customBiomeDecorator.treesPerChunk = 10;
this.customBiomeDecorator.grassPerChunk = 1; customBiomeDecorator.grassPerChunk = 1;
this.customBiomeDecorator.violetsPerChunk = 1; customBiomeDecorator.violetsPerChunk = 1;
} }
/** /**
* Gets a WorldGen appropriate for this biome. * Gets a WorldGen appropriate for this biome.
*/ */
public WorldGenerator getRandomWorldGenForTrees(Random par1Random) @Override
{ public WorldGenerator getRandomWorldGenForTrees(Random par1Random)
return (WorldGenerator)(par1Random.nextInt(3) == 0 ? new WorldGenTaiga1() : new WorldGenTaiga2(false)); {
//return (WorldGenerator)(par1Random.nextInt(3) == 0 ? new WorldGenNorwaySpruce1() : new WorldGenNorwaySpruce2()); return par1Random.nextInt(3) == 0 ? new WorldGenTaiga1() : new WorldGenTaiga2(false);
} //return (WorldGenerator)(par1Random.nextInt(3) == 0 ? new WorldGenNorwaySpruce1() : new WorldGenNorwaySpruce2());
}
/**
* Gets a WorldGen appropriate for this biome. /**
*/ * Gets a WorldGen appropriate for this biome.
public WorldGenerator getRandomWorldGenForGrass(Random par1Random) */
{ @Override
return new WorldGenTallGrass(Blocks.foliage.get().blockID, 1); public WorldGenerator getRandomWorldGenForGrass(Random par1Random)
} {
return new WorldGenTallGrass(Blocks.foliage.get().blockID, 1);
}
} }

View File

@ -16,64 +16,69 @@ import biomesoplenty.worldgen.WorldGenWillow;
public class BiomeGenTemperateRainforest extends BiomeGenBase public class BiomeGenTemperateRainforest extends BiomeGenBase
{ {
private BiomeDecoratorBOP customBiomeDecorator; private BiomeDecoratorBOP customBiomeDecorator;
public BiomeGenTemperateRainforest(int par1) public BiomeGenTemperateRainforest(int par1)
{ {
super(par1); super(par1);
this.theBiomeDecorator = new BiomeDecoratorBOP(this); theBiomeDecorator = new BiomeDecoratorBOP(this);
this.customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator; customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator;
this.customBiomeDecorator.treesPerChunk = 22; customBiomeDecorator.treesPerChunk = 22;
this.customBiomeDecorator.grassPerChunk = 25; customBiomeDecorator.grassPerChunk = 25;
this.customBiomeDecorator.generatePumpkins = false; customBiomeDecorator.generatePumpkins = false;
this.customBiomeDecorator.blueMilksPerChunk = 3; customBiomeDecorator.blueMilksPerChunk = 3;
this.customBiomeDecorator.poisonIvyPerChunk = 1; customBiomeDecorator.poisonIvyPerChunk = 1;
}
/**
* Gets a WorldGen appropriate for this biome.
*/
public WorldGenerator getRandomWorldGenForTrees(Random par1Random)
{
//return (WorldGenerator)(par1Random.nextInt(3) == 0 ? new WorldGenGrandFir1() : (par1Random.nextInt(4) == 0 ? new WorldGenAlaskanCedar2() : (par1Random.nextInt(8) == 0 ? new WorldGenAlaskanCedar1() : (par1Random.nextInt(2) == 0 ? new WorldGenShrub(0,0) : new WorldGenGrandFir2()))));
return (WorldGenerator)(par1Random.nextInt(10) == 0 ? new WorldGenWillow() : (par1Random.nextInt(6) == 0 ? new WorldGenThickTree(false) : (par1Random.nextInt(2) == 0 ? new WorldGenTemperate(false) : new WorldGenShrub(0, 0))));
} }
/** /**
* Gets a WorldGen appropriate for this biome. * Gets a WorldGen appropriate for this biome.
*/ */
public WorldGenerator getRandomWorldGenForGrass(Random par1Random) @Override
{ public WorldGenerator getRandomWorldGenForTrees(Random par1Random)
{
//return (WorldGenerator)(par1Random.nextInt(3) == 0 ? new WorldGenGrandFir1() : (par1Random.nextInt(4) == 0 ? new WorldGenAlaskanCedar2() : (par1Random.nextInt(8) == 0 ? new WorldGenAlaskanCedar1() : (par1Random.nextInt(2) == 0 ? new WorldGenShrub(0,0) : new WorldGenGrandFir2()))));
return par1Random.nextInt(10) == 0 ? new WorldGenWillow() : (par1Random.nextInt(6) == 0 ? new WorldGenThickTree(false) : (par1Random.nextInt(2) == 0 ? new WorldGenTemperate(false) : new WorldGenShrub(0, 0)));
}
/**
* Gets a WorldGen appropriate for this biome.
*/
@Override
public WorldGenerator getRandomWorldGenForGrass(Random par1Random)
{
return (par1Random.nextInt(6) == 0 ? new WorldGenTallGrass(Block.tallGrass.blockID, 1) : (par1Random.nextInt(2) == 0 ? new WorldGenTallGrass(Block.tallGrass.blockID, 2) : (par1Random.nextInt(4) == 0 ? new WorldGenTallGrass(Blocks.foliage.get().blockID, 2) : new WorldGenTallGrass(Blocks.foliage.get().blockID, 1)))); return (par1Random.nextInt(6) == 0 ? new WorldGenTallGrass(Block.tallGrass.blockID, 1) : (par1Random.nextInt(2) == 0 ? new WorldGenTallGrass(Block.tallGrass.blockID, 2) : (par1Random.nextInt(4) == 0 ? new WorldGenTallGrass(Blocks.foliage.get().blockID, 2) : new WorldGenTallGrass(Blocks.foliage.get().blockID, 1))));
} }
public void decorate(World par1World, Random par2Random, int par3, int par4)
{
super.decorate(par1World, par2Random, par3, par4);
WorldGenMoss var5 = new WorldGenMoss();
for (int var6 = 0; var6 < 20; ++var6) @Override
{ public void decorate(World par1World, Random par2Random, int par3, int par4)
int var7 = par3 + par2Random.nextInt(16) + 8; {
byte var8 = 58; super.decorate(par1World, par2Random, par3, par4);
int var9 = par4 + par2Random.nextInt(16) + 8; WorldGenMoss var5 = new WorldGenMoss();
var5.generate(par1World, par2Random, var7, var8, var9);
}
}
/**
* Provides the basic grass color based on the biome temperature and rainfall
*/
public int getBiomeGrassColor()
{
return 11981671;
}
/** for (int var6 = 0; var6 < 20; ++var6)
* Provides the basic foliage color based on the biome temperature and rainfall {
*/ int var7 = par3 + par2Random.nextInt(16) + 8;
public int getBiomeFoliageColor() byte var8 = 58;
{ int var9 = par4 + par2Random.nextInt(16) + 8;
return 12311907; var5.generate(par1World, par2Random, var7, var8, var9);
} }
}
/**
* Provides the basic grass color based on the biome temperature and rainfall
*/
@Override
public int getBiomeGrassColor()
{
return 11981671;
}
/**
* Provides the basic foliage color based on the biome temperature and rainfall
*/
@Override
public int getBiomeFoliageColor()
{
return 12311907;
}
} }

View File

@ -10,42 +10,44 @@ import net.minecraft.world.gen.feature.WorldGenerator;
public class BiomeGenThicket extends BiomeGenBase public class BiomeGenThicket extends BiomeGenBase
{ {
private BiomeDecoratorBOP customBiomeDecorator; private BiomeDecoratorBOP customBiomeDecorator;
public BiomeGenThicket(int par1) public BiomeGenThicket(int par1)
{ {
super(par1); super(par1);
this.theBiomeDecorator = new BiomeDecoratorBOP(this); theBiomeDecorator = new BiomeDecoratorBOP(this);
this.customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator; customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator;
this.customBiomeDecorator.treesPerChunk = 17; customBiomeDecorator.treesPerChunk = 17;
this.customBiomeDecorator.grassPerChunk = 1; customBiomeDecorator.grassPerChunk = 1;
this.customBiomeDecorator.thornsPerChunk = 25; customBiomeDecorator.thornsPerChunk = 25;
} }
public void decorate(World par1World, Random par2Random, int par3, int par4)
{
super.decorate(par1World, par2Random, par3, par4);
int var5 = 3 + par2Random.nextInt(6);
for (int var6 = 0; var6 < var5; ++var6) @Override
{ public void decorate(World par1World, Random par2Random, int par3, int par4)
int var7 = par3 + par2Random.nextInt(16); {
int var8 = par2Random.nextInt(28) + 4; super.decorate(par1World, par2Random, par3, par4);
int var9 = par4 + par2Random.nextInt(16); int var5 = 3 + par2Random.nextInt(6);
int var10 = par1World.getBlockId(var7, var8, var9);
if (var10 == Block.stone.blockID) for (int var6 = 0; var6 < var5; ++var6)
{ {
par1World.setBlock(var7, var8, var9, Block.oreEmerald.blockID, 0, 2); int var7 = par3 + par2Random.nextInt(16);
} int var8 = par2Random.nextInt(28) + 4;
} int var9 = par4 + par2Random.nextInt(16);
} int var10 = par1World.getBlockId(var7, var8, var9);
/** if (var10 == Block.stone.blockID)
* Gets a WorldGen appropriate for this biome. {
*/ par1World.setBlock(var7, var8, var9, Block.oreEmerald.blockID, 0, 2);
public WorldGenerator getRandomWorldGenForTrees(Random par1Random) }
{ }
return (WorldGenerator)(par1Random.nextInt(5) == 0 ? this.worldGeneratorTrees : new WorldGenShrub(0, 0)); }
}
/**
* Gets a WorldGen appropriate for this biome.
*/
@Override
public WorldGenerator getRandomWorldGenForTrees(Random par1Random)
{
return par1Random.nextInt(5) == 0 ? worldGeneratorTrees : new WorldGenShrub(0, 0);
}
} }

Some files were not shown because too many files have changed in this diff Show More