From 118b0b993bd97d9c42cb4bf91fea7d7bcd2c91d4 Mon Sep 17 00:00:00 2001 From: afroraydude Date: Sun, 15 Sep 2013 12:04:29 -0400 Subject: [PATCH] Commit #24 --- common/com/emc/block/emcOre.java | 2 - common/com/emc/block/emcOreExperience.java | 2 - common/com/emc/emc.java | 17 +++- common/com/emc/entity/common/EntityMiner.java | 78 +++++++++++++++ common/com/emc/entity/model/ModelMiner.java | 93 ++++++++++++++++++ .../emc/entity/model/ModelTESTTESTTEST.java | 95 +++++++++++++++++++ common/com/emc/entity/render/RenderMiner.java | 38 ++++++++ common/com/emc/mat/biomeManager.java | 44 +++++++++ common/com/emc/mat/matManager.java | 4 +- common/com/emc/mat/mobManager.java | 54 +++++++++++ .../emc/newthings/common/configManager.java | 35 +++++++ .../emc/newthings/common/package-info.java | 8 ++ .../com/emc/world/biome/BiomeDoOctoBase.java | 16 ++++ .../com/emc/world/biome/BiomeIceDesert.java | 15 +++ .../emc/world/biome/BiomeRedwoodForest.java | 17 ++++ 15 files changed, 510 insertions(+), 8 deletions(-) create mode 100644 common/com/emc/entity/common/EntityMiner.java create mode 100644 common/com/emc/entity/model/ModelMiner.java create mode 100644 common/com/emc/entity/model/ModelTESTTESTTEST.java create mode 100644 common/com/emc/entity/render/RenderMiner.java create mode 100644 common/com/emc/mat/biomeManager.java create mode 100644 common/com/emc/mat/mobManager.java create mode 100644 common/com/emc/newthings/common/configManager.java create mode 100644 common/com/emc/newthings/common/package-info.java create mode 100644 common/com/emc/world/biome/BiomeDoOctoBase.java create mode 100644 common/com/emc/world/biome/BiomeIceDesert.java create mode 100644 common/com/emc/world/biome/BiomeRedwoodForest.java diff --git a/common/com/emc/block/emcOre.java b/common/com/emc/block/emcOre.java index b8e69ca..c2f9504 100644 --- a/common/com/emc/block/emcOre.java +++ b/common/com/emc/block/emcOre.java @@ -16,12 +16,10 @@ public class emcOre extends emcBlock { public emcOre(int id, Material mat) { super(id, mat); - // TODO Auto-generated constructor stub } public emcOre(int id, Material mat, CreativeTabs tab) { super(id, mat, tab); - // TODO Auto-generated constructor stub } public int idDropped(int i, Random random, int j) { return this.blockID; } diff --git a/common/com/emc/block/emcOreExperience.java b/common/com/emc/block/emcOreExperience.java index 8503cff..4234ba6 100644 --- a/common/com/emc/block/emcOreExperience.java +++ b/common/com/emc/block/emcOreExperience.java @@ -20,12 +20,10 @@ public class emcOreExperience extends emcOre { public emcOreExperience(int id, Material mat) { super(id, mat); - // TODO Auto-generated constructor stub } public emcOreExperience(int id, Material mat, CreativeTabs tab) { super(id, mat, tab); - // TODO Auto-generated constructor stub } public int idDropped(int i, Random random, int j) { return 0; } diff --git a/common/com/emc/emc.java b/common/com/emc/emc.java index a37815f..e0406bb 100644 --- a/common/com/emc/emc.java +++ b/common/com/emc/emc.java @@ -17,6 +17,7 @@ import com.emc.lib.emcLib; import com.emc.localization.localizationHandler; import com.emc.mat.matManager; +import com.emc.newthings.common.configManager; import com.emc.proxy.commonProxy; import com.emc.world.emcWorldGenerator; @@ -29,8 +30,8 @@ import cpw.mods.fml.common.network.NetworkMod; import cpw.mods.fml.common.registry.GameRegistry; -//@NetworkMod(clientSideRequired = true, serverSideRequired = false) -//@Mod(modid = emcLib.ID, name = emcLib.NAME, version = emcLib.VERSION) +@NetworkMod(clientSideRequired = true, serverSideRequired = false) +@Mod(modid = emcLib.ID, name = emcLib.NAME, version = emcLib.VERSION) public class emc { @@ -111,7 +112,17 @@ public ItemStack getIconItemStack() { GameRegistry.registerWorldGenerator(new emcWorldGenerator()); } - + + } + @EventHandler + public static void preInit (FMLPreInitializationEvent event) { + configManager.init((event.getSuggestedConfigurationFile())); + if (configManager.enableBiomes) { + com.emc.mat.biomeManager.init(); + } + if (configManager.enableMobs) { + com.emc.mat.mobManager.init();; + } } } diff --git a/common/com/emc/entity/common/EntityMiner.java b/common/com/emc/entity/common/EntityMiner.java new file mode 100644 index 0000000..06390ca --- /dev/null +++ b/common/com/emc/entity/common/EntityMiner.java @@ -0,0 +1,78 @@ +package com.emc.entity.common; + +import net.minecraft.entity.EnumCreatureAttribute; +import net.minecraft.entity.SharedMonsterAttributes; +import net.minecraft.entity.ai.EntityAIAttackOnCollide; +import net.minecraft.entity.ai.EntityAIHurtByTarget; +import net.minecraft.entity.ai.EntityAILookIdle; +import net.minecraft.entity.ai.EntityAINearestAttackableTarget; +import net.minecraft.entity.ai.EntityAISwimming; +import net.minecraft.entity.ai.EntityAIWander; +import net.minecraft.entity.ai.EntityAIWatchClosest; +import net.minecraft.entity.monster.EntityCaveSpider; +import net.minecraft.entity.monster.EntityCreeper; +import net.minecraft.entity.monster.EntityMob; +import net.minecraft.entity.monster.EntitySlime; +import net.minecraft.entity.monster.EntitySpider; +import net.minecraft.entity.monster.EntityWitch; +import net.minecraft.entity.monster.EntityZombie; +import net.minecraft.entity.passive.EntityVillager; +import net.minecraft.entity.player.EntityPlayer; +import net.minecraft.item.Item; +import net.minecraft.world.World; + +public class EntityMiner extends EntityMob{ + + public EntityMiner(World par1World) { + super(par1World); + this.experienceValue = 10; + this.tasks.addTask(0, new EntityAISwimming(this)); + this.tasks.addTask(1, new EntityAIAttackOnCollide(this, EntityPlayer.class, 1.0D, false)); + this.tasks.addTask(2, new EntityAIWatchClosest(this, EntityPlayer.class, 8.0F)); + this.targetTasks.addTask(3, new EntityAINearestAttackableTarget(this, EntityPlayer.class, 0, true)); + this.targetTasks.addTask(4, new EntityAINearestAttackableTarget(this, EntityVillager.class, 0, false)); + this.targetTasks.addTask(5, new EntityAINearestAttackableTarget(this, EntityZombie.class, 0, false)); + this.targetTasks.addTask(6, new EntityAINearestAttackableTarget(this, EntityCreeper.class, 0, false)); + this.targetTasks.addTask(7, new EntityAINearestAttackableTarget(this, EntitySpider.class, 0, false)); + this.targetTasks.addTask(8, new EntityAINearestAttackableTarget(this, EntityCaveSpider.class, 0, false)); + this.targetTasks.addTask(9, new EntityAINearestAttackableTarget(this, EntityWitch.class, 0, false)); + this.targetTasks.addTask(10, new EntityAINearestAttackableTarget(this, EntitySlime.class, 0, false)); + this.tasks.addTask(11, new EntityAIWander(this, 1.0D)); + this.tasks.addTask(12, new EntityAILookIdle(this)); + this.targetTasks.addTask(13, new EntityAIHurtByTarget(this, true)); +} + protected boolean isAIEnabled() + { + return true; + } + + protected void func_110147_ax() + { + super.func_110147_ax(); + this.func_110148_a(SharedMonsterAttributes.field_111267_a).func_111128_a(25.0D);//Health + + this.func_110148_a(SharedMonsterAttributes.field_111264_e).func_111128_a(5.0D);//Attack + } + protected String HurtSound() { + return "mob.zombie.death"; + } + protected void playStepSound(int par1, int par2, int par3, int par4) { + this.playSound("mob.zombie.step", 0.15F, 1.0F); + } + protected int getDropItemId() { + return Item.pickaxeIron.itemID; + } + protected void dropRareDrop(int par1) { + switch (this.rand.nextInt(3)) { + case 0: + this.dropItem(Item.pickaxeDiamond.itemID, 1); + break; + } + } + public EnumCreatureAttribute getCreatureAttribute() { + return EnumCreatureAttribute.UNDEAD; + } + public void onLivingUpdate() { + super.onLivingUpdate(); + } +} diff --git a/common/com/emc/entity/model/ModelMiner.java b/common/com/emc/entity/model/ModelMiner.java new file mode 100644 index 0000000..f5be302 --- /dev/null +++ b/common/com/emc/entity/model/ModelMiner.java @@ -0,0 +1,93 @@ +package com.emc.entity.model; + +import net.minecraft.client.model.ModelBase; +import net.minecraft.client.model.ModelRenderer; +import net.minecraft.entity.Entity; +import net.minecraft.util.MathHelper; + +public class ModelMiner extends ModelBase +{ + //fields + ModelRenderer head; + ModelRenderer body; + ModelRenderer rightarm; + ModelRenderer leftarm; + ModelRenderer rightleg; + ModelRenderer leftleg; + public ModelMiner() + { + textureWidth = 64; + textureHeight = 32; + + head = new ModelRenderer(this, 0, 0); + head.addBox(-4F, -8F, -4F, 8, 8, 8); + head.setRotationPoint(0F, 0F, 0F); + head.setTextureSize(64, 32); + head.mirror = true; + setRotation(head, 0F, 0F, 0F); + body = new ModelRenderer(this, 16, 16); + body.addBox(-4F, 0F, -2F, 8, 12, 4); + body.setRotationPoint(0F, 0F, 0F); + body.setTextureSize(64, 32); + body.mirror = true; + setRotation(body, 0F, 0F, 0F); + rightarm = new ModelRenderer(this, 40, 16); + rightarm.addBox(-3F, -2F, -2F, 4, 12, 4); + rightarm.setRotationPoint(-5F, 2F, 0F); + rightarm.setTextureSize(64, 32); + rightarm.mirror = true; + setRotation(rightarm, 0F, 0F, 0F); + leftarm = new ModelRenderer(this, 40, 16); + leftarm.addBox(-1F, -2F, -2F, 4, 12, 4); + leftarm.setRotationPoint(5F, 2F, 0F); + leftarm.setTextureSize(64, 32); + leftarm.mirror = true; + setRotation(leftarm, 0F, 0F, 0F); + rightleg = new ModelRenderer(this, 0, 16); + rightleg.addBox(-2F, 0F, -2F, 4, 12, 4); + rightleg.setRotationPoint(-2F, 12F, 0F); + rightleg.setTextureSize(64, 32); + rightleg.mirror = true; + setRotation(rightleg, 0F, 0F, 0F); + leftleg = new ModelRenderer(this, 0, 16); + leftleg.addBox(-2F, 0F, -2F, 4, 12, 4); + leftleg.setRotationPoint(2F, 12F, 0F); + leftleg.setTextureSize(64, 32); + leftleg.mirror = true; + setRotation(leftleg, 0F, 0F, 0F); + } + public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5) + { + super.render(entity, f, f1, f2, f3, f4, f5); + setRotationAngles(f, f1, f2, f3, f4, f5, entity); + head.render(f5); + body.render(f5); + rightarm.render(f5); + leftarm.render(f5); + rightleg.render(f5); + leftleg.render(f5); + } + private void setRotation(ModelRenderer model, float x, float y, float z) + { + model.rotateAngleX = x; + model.rotateAngleY = y; + model.rotateAngleZ = z; + } + public void setRotationAngles(float f, float f1, float f2, float f3, float f4, float f5, Entity par6Entity) + { + this.head.rotateAngleY = f3 / (180F / (float)Math.PI); + this.head.rotateAngleX = f4 / (170F / (float)Math.PI); + + this.leftleg.rotateAngleX = MathHelper.cos(f * 0.6662F) * 2.0F * f1 * 0.5F; + this.leftleg.rotateAngleY = 0.0F; + + this.rightleg.rotateAngleX = MathHelper.cos(f * 0.6662F + (float)Math.PI) * 1.4F * f1; + this.rightleg.rotateAngleY = 0.0F; + + this.leftarm.rotateAngleX = MathHelper.cos(f * 0.6662F) * 2.0F * f1 * 0.5F; + this.leftarm.rotateAngleY = 0.0F; + + this.rightarm.rotateAngleX = MathHelper.cos(f * 0.6662F + (float)Math.PI) * 2.0F * f1 * 0.5F; + this.rightarm.rotateAngleY = 0.0F; + } +} diff --git a/common/com/emc/entity/model/ModelTESTTESTTEST.java b/common/com/emc/entity/model/ModelTESTTESTTEST.java new file mode 100644 index 0000000..0420b25 --- /dev/null +++ b/common/com/emc/entity/model/ModelTESTTESTTEST.java @@ -0,0 +1,95 @@ +// Date: 8/29/2013 10:58:46 PM +// Template version 1.1 +// Java generated by Techne +// Keep in mind that you still need to fill in some blanks +// - ZeuX + + + + + + +package com.emc.entity.model; + +import net.minecraft.client.model.ModelBase; +import net.minecraft.client.model.ModelRenderer; +import net.minecraft.entity.Entity; + +public class ModelTESTTESTTEST extends ModelBase +{ + //fields + ModelRenderer head; + ModelRenderer body; + ModelRenderer rightarm; + ModelRenderer leftarm; + ModelRenderer rightleg; + ModelRenderer leftleg; + + public ModelTESTTESTTEST() + { + textureWidth = 64; + textureHeight = 32; + + head = new ModelRenderer(this, 0, 0); + head.addBox(-4F, -8F, -4F, 8, 8, 8); + head.setRotationPoint(0F, 0F, 0F); + head.setTextureSize(64, 32); + head.mirror = true; + setRotation(head, 0F, 0F, 0F); + body = new ModelRenderer(this, 16, 16); + body.addBox(-4F, 0F, -2F, 8, 12, 4); + body.setRotationPoint(0F, 0F, 0F); + body.setTextureSize(64, 32); + body.mirror = true; + setRotation(body, 0F, 0F, 0F); + rightarm = new ModelRenderer(this, 40, 16); + rightarm.addBox(-3F, -2F, -2F, 4, 12, 4); + rightarm.setRotationPoint(-5F, 2F, 0F); + rightarm.setTextureSize(64, 32); + rightarm.mirror = true; + setRotation(rightarm, 0F, 0F, 0F); + leftarm = new ModelRenderer(this, 40, 16); + leftarm.addBox(-1F, -2F, -2F, 4, 12, 4); + leftarm.setRotationPoint(5F, 2F, 0F); + leftarm.setTextureSize(64, 32); + leftarm.mirror = true; + setRotation(leftarm, 0F, 0F, 0F); + rightleg = new ModelRenderer(this, 0, 16); + rightleg.addBox(-2F, 0F, -2F, 4, 12, 4); + rightleg.setRotationPoint(-2F, 12F, 0F); + rightleg.setTextureSize(64, 32); + rightleg.mirror = true; + setRotation(rightleg, 0F, 0F, 0F); + leftleg = new ModelRenderer(this, 0, 16); + leftleg.addBox(-2F, 0F, -2F, 4, 12, 4); + leftleg.setRotationPoint(2F, 12F, 0F); + leftleg.setTextureSize(64, 32); + leftleg.mirror = true; + setRotation(leftleg, 0F, 0F, 0F); + } + + public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5) + { + super.render(entity, f, f1, f2, f3, f4, f5); + setRotationAngles(f, f1, f2, f3, f4, f5); + head.render(f5); + body.render(f5); + rightarm.render(f5); + leftarm.render(f5); + rightleg.render(f5); + leftleg.render(f5); + } + + private void setRotation(ModelRenderer model, float x, float y, float z) + { + model.rotateAngleX = x; + model.rotateAngleY = y; + model.rotateAngleZ = z; + } + + public void setRotationAngles(float f, float f1, float f2, float f3, float f4, float f5) + { + + } + +} diff --git a/common/com/emc/entity/render/RenderMiner.java b/common/com/emc/entity/render/RenderMiner.java new file mode 100644 index 0000000..0ad23ec --- /dev/null +++ b/common/com/emc/entity/render/RenderMiner.java @@ -0,0 +1,38 @@ +package com.emc.entity.render; + +import com.emc.*; +import com.emc.entity.common.EntityMiner; +import com.emc.entity.model.ModelMiner; + +import net.minecraft.client.model.ModelBase; +import net.minecraft.client.renderer.entity.RenderLiving; +import net.minecraft.entity.Entity; +import net.minecraft.entity.EntityLiving; +import net.minecraft.util.ResourceLocation; + +public class RenderMiner extends RenderLiving { + protected ModelMiner model; + + public RenderMiner(ModelBase par1ModelBase, float par2) { + super(par1ModelBase, par2); + model = ((ModelMiner)mainModel); + } + + public void renderMiner(EntityMiner entity, double par2, double par4, double par6, float par8, float par9) { + super.doRenderLiving(entity, par2, par4, par6, par8, par9); + } + + public void doRenerLiving(EntityLiving par1EntityLiving, double par2, double par4, double par6, float par8, float par9) { + renderMiner((EntityMiner)par1EntityLiving, par2, par4, par6, par8, par9); + } + + @Override + public void doRender(Entity entity, double d0, double d1, double d2, float f, float f1) { + renderMiner((EntityMiner)entity, d0, d1, d2, f, f1); + } + + @Override + protected ResourceLocation func_110775_a(Entity entity) { + return new ResourceLocation("crosslib:textures/mobs/Miner.png"); + } +} diff --git a/common/com/emc/mat/biomeManager.java b/common/com/emc/mat/biomeManager.java new file mode 100644 index 0000000..2fe2988 --- /dev/null +++ b/common/com/emc/mat/biomeManager.java @@ -0,0 +1,44 @@ +package com.emc.mat; + +import java.io.File; + +import com.emc.newthings.common.configManager; +import com.emc.world.biome.*; +import com.emc.*; + +import cpw.mods.fml.common.Mod; +import cpw.mods.fml.common.event.FMLInitializationEvent; +import cpw.mods.fml.common.event.FMLPreInitializationEvent; +import cpw.mods.fml.common.registry.GameRegistry; +import net.minecraft.world.biome.BiomeGenBase; +import net.minecraftforge.common.Configuration; +/** + * + * @author afroraydude + * @author nexized + * @author @afroraydude + * @author @nexized + * + */ + +public class biomeManager { + + // Define Biomes + public static BiomeGenBase iceDesert; + public static BiomeGenBase redwoodForest; + public static BiomeGenBase doOctoBase; + + // Defined Biomes + //TODO: Red rock mountains and canyons, Redwood forests(requires custom trees), Oasis, City(Can we really do this?), Wheat fields, Savanna(requires custom trees), Floating islands(Can we really do this?), Subway tunnels(This is not even a biome!!!), and Fairie Forest + public static void init() { + iceDesert = (new BiomeIceDesert(configManager.iceb).setBiomeName("Ice Desert").setMinMaxHeight(0.3F, 1.5F).setEnableSnow().setTemperatureRainfall(0.05F, 0.08F)); + redwoodForest = (new BiomeRedwoodForest(configManager.redwoodb).setBiomeName("Redwood Forest")); + doOctoBase = (new BiomeDoOctoBase(100).setBiomeName("Tutorial").setMinMaxHeight(0.3F, 0.31F)); + GameRegistry.addBiome(iceDesert); + GameRegistry.addBiome(doOctoBase); + + + } + + +} \ No newline at end of file diff --git a/common/com/emc/mat/matManager.java b/common/com/emc/mat/matManager.java index b29f2ef..8aafe96 100644 --- a/common/com/emc/mat/matManager.java +++ b/common/com/emc/mat/matManager.java @@ -6,7 +6,9 @@ * @Last changed: 2013-09-01 * Licensed under nextized cross license - see license.txt for more information */ - +/* + * Can we remove idm and make a new manager? Most of us do not understand coding it. + */ import com.emc.emc; import com.emc.block.emcBlock; import com.emc.block.emcOre; diff --git a/common/com/emc/mat/mobManager.java b/common/com/emc/mat/mobManager.java new file mode 100644 index 0000000..e0d3c97 --- /dev/null +++ b/common/com/emc/mat/mobManager.java @@ -0,0 +1,54 @@ +package com.emc.mat; + +import java.io.File; + +import com.emc.*; +import com.emc.entity.common.EntityMiner; +import com.emc.entity.model.ModelMiner; +import com.emc.entity.render.RenderMiner; +import com.emc.newthings.common.configManager; + +import cpw.mods.fml.client.registry.RenderingRegistry; +import cpw.mods.fml.common.Mod; +import cpw.mods.fml.common.Mod.EventHandler; +import cpw.mods.fml.common.event.FMLInitializationEvent; +import cpw.mods.fml.common.event.FMLPreInitializationEvent; +import cpw.mods.fml.common.registry.EntityRegistry; +import cpw.mods.fml.common.registry.LanguageRegistry; +import net.minecraft.entity.Entity; +import net.minecraft.entity.EntityEggInfo; +import net.minecraft.entity.EntityList; +import net.minecraft.entity.EnumCreatureType; +import net.minecraftforge.common.Configuration; + +public class mobManager { + + //Mob Gen goes here + static int startEntityId = 300; + + public static int getUniqueEntityId() { + do { + startEntityId++; + } + while (EntityList.getStringFromID(startEntityId) != null); + return startEntityId++; + } + public static void registerEntityEgg(Class entity, int primaryColor, int secondaryColor) { + int id = getUniqueEntityId(); + EntityList.IDtoClassMapping.put(id, entity); + EntityList.entityEggs.put(id, new EntityEggInfo(id,primaryColor,secondaryColor)); + } + + public static void init() { + //Mob settings go here + EntityRegistry.registerGlobalEntityID(EntityMiner.class, "Miner", configManager.MinerID); + EntityRegistry.addSpawn(EntityMiner.class, 128, 2, 4, EnumCreatureType.monster); + EntityRegistry.addSpawn(EntityMiner.class, 1, 2, 4, EnumCreatureType.monster, biomeManager.iceDesert); + EntityRegistry.addSpawn(EntityMiner.class, 1, 2, 4, EnumCreatureType.monster, biomeManager.doOctoBase); + EntityRegistry.addSpawn(EntityMiner.class, 1, 2, 4, EnumCreatureType.monster, biomeManager.redwoodForest); + EntityRegistry.findGlobalUniqueEntityId(); + registerEntityEgg(EntityMiner.class, 0x3c768c, 0xb50000); + RenderingRegistry.registerEntityRenderingHandler(EntityMiner.class, new RenderMiner(new ModelMiner(), 0.3F)); + LanguageRegistry.instance().addStringLocalization("entity.EnhanceMeCraft.Miner.name", "en-US", "Miner"); + } +} diff --git a/common/com/emc/newthings/common/configManager.java b/common/com/emc/newthings/common/configManager.java new file mode 100644 index 0000000..a003807 --- /dev/null +++ b/common/com/emc/newthings/common/configManager.java @@ -0,0 +1,35 @@ +package com.emc.newthings.common; + +import java.io.File; + +import net.minecraftforge.common.Configuration; +import cpw.mods.fml.common.event.FMLInitializationEvent; +import cpw.mods.fml.common.event.FMLPreInitializationEvent; + +public class configManager { + + public static int MinerID; + public static boolean enableMobs; + public static int oreAluminumID; + public static int iceb; + public static int redwoodb; + public static boolean enableBiomes; + public static int emeraldshardblockID; + public static int emeraldshardID; + public static boolean enableafroitems; + + public static void init(File configFile) { + Configuration config = new Configuration(configFile); + config.load(); + enableBiomes = config.get("Enable/Disable", "Biomes", true).getBoolean(true); + emeraldshardID = config.get("Items", "Emerald Shard", 1102).getInt(); + enableafroitems = config.get("Enable/Disable", "0.4.0 Items", true).getBoolean(true); + MinerID = config.get("Mob", "Miner", 20).getInt(); + enableMobs = config.get("Enable/Disable", "Mobs", true).getBoolean(true); + oreAluminumID = config.get("Blocks", "Aluminum Ore", 1100).getInt(); + redwoodb = config.get("Biomes", "Redwood", 150).getInt(); + iceb = config.get("Biomes", "Ice", 151).getInt(); + emeraldshardblockID = config.get("Blocks", "Emerald Shard Ore", 1101).getInt(); + config.save(); + } +} diff --git a/common/com/emc/newthings/common/package-info.java b/common/com/emc/newthings/common/package-info.java new file mode 100644 index 0000000..04ffcba --- /dev/null +++ b/common/com/emc/newthings/common/package-info.java @@ -0,0 +1,8 @@ +/** + * Contains new stuff added since 0.4.0-pre + * Original Design By afroraydude + * + * @author EnhanceMeCraft Team + * @author @EnhancedMinecraftTeam + */ +package com.emc.newthings.common; \ No newline at end of file diff --git a/common/com/emc/world/biome/BiomeDoOctoBase.java b/common/com/emc/world/biome/BiomeDoOctoBase.java new file mode 100644 index 0000000..11b6717 --- /dev/null +++ b/common/com/emc/world/biome/BiomeDoOctoBase.java @@ -0,0 +1,16 @@ +package com.emc.world.biome; + + + +import net.minecraft.block.Block; +import net.minecraft.world.biome.BiomeGenBase; + +public class BiomeDoOctoBase extends BiomeGenBase{ + + public BiomeDoOctoBase(int par1) { + super(par1); + this.topBlock = (byte)Block.blockEmerald.blockID; + this.fillerBlock = (byte)Block.blockClay.blockID; + } + +} diff --git a/common/com/emc/world/biome/BiomeIceDesert.java b/common/com/emc/world/biome/BiomeIceDesert.java new file mode 100644 index 0000000..e3f1144 --- /dev/null +++ b/common/com/emc/world/biome/BiomeIceDesert.java @@ -0,0 +1,15 @@ +package com.emc.world.biome; + +import net.minecraft.block.Block; +import net.minecraft.world.biome.BiomeGenBase; + +public class BiomeIceDesert extends BiomeGenBase{ + + public BiomeIceDesert(int par1) { + super(par1); + this.topBlock = (byte)Block.ice.blockID; + this.fillerBlock = (byte)Block.blockSnow.blockID; + + } + +} diff --git a/common/com/emc/world/biome/BiomeRedwoodForest.java b/common/com/emc/world/biome/BiomeRedwoodForest.java new file mode 100644 index 0000000..66f74fe --- /dev/null +++ b/common/com/emc/world/biome/BiomeRedwoodForest.java @@ -0,0 +1,17 @@ +package com.emc.world.biome; + +import net.minecraft.block.Block; +import net.minecraft.world.biome.BiomeGenBase; + +public class BiomeRedwoodForest extends BiomeGenBase{ + + public BiomeRedwoodForest(int par1) { + super(par1); + this.topBlock = (byte)Block.grass.blockID; + this.fillerBlock = (byte)Block.dirt.blockID; + theBiomeDecorator.treesPerChunk = 10; + + } + + +}