From beb8503dd274347e83c18eabb8700424174a196e Mon Sep 17 00:00:00 2001 From: Vasco Lavos Date: Sat, 10 May 2014 19:21:00 +0100 Subject: [PATCH] much cleanup wow --- .../botania/common/block/BlockForestEye.java | 8 ++++---- .../common/block/tile/TileForestEye.java | 6 +++--- .../handler/TerrasteelCraftingHandler.java | 18 +++++++++--------- .../common/crafting/ModCrafingRecipes.java | 4 ++-- .../common/crafting/ModManaAlchemyRecipes.java | 2 +- .../botania/common/entity/EntityManaBurst.java | 6 +++--- .../botania/common/lexicon/LexiconData.java | 2 +- 7 files changed, 23 insertions(+), 23 deletions(-) diff --git a/MODSRC/vazkii/botania/common/block/BlockForestEye.java b/MODSRC/vazkii/botania/common/block/BlockForestEye.java index 5d83a1f71..6bce33700 100644 --- a/MODSRC/vazkii/botania/common/block/BlockForestEye.java +++ b/MODSRC/vazkii/botania/common/block/BlockForestEye.java @@ -28,7 +28,7 @@ import vazkii.botania.common.lib.LibBlockNames; public class BlockForestEye extends BlockModContainer implements ILexiconable { IIcon[] icons; - + public BlockForestEye() { super(Material.iron); setHardness(5.0F); @@ -49,7 +49,7 @@ public class BlockForestEye extends BlockModContainer implements ILexiconable { public IIcon getIcon(int par1, int par2) { return icons[Math.min(icons.length - 1, par1)]; } - + @Override public boolean renderAsNormalBlock() { return false; @@ -59,12 +59,12 @@ public class BlockForestEye extends BlockModContainer implements ILexiconable { public boolean isOpaqueCube() { return false; } - + @Override public boolean hasComparatorInputOverride() { return true; } - + @Override public int getComparatorInputOverride(World par1World, int par2, int par3, int par4, int par5) { TileForestEye eye = (TileForestEye) par1World.getTileEntity(par2, par3, par4); diff --git a/MODSRC/vazkii/botania/common/block/tile/TileForestEye.java b/MODSRC/vazkii/botania/common/block/tile/TileForestEye.java index 415b5a86c..ca0cf2af9 100644 --- a/MODSRC/vazkii/botania/common/block/tile/TileForestEye.java +++ b/MODSRC/vazkii/botania/common/block/tile/TileForestEye.java @@ -17,15 +17,15 @@ import net.minecraft.util.AxisAlignedBB; public class TileForestEye extends TileMod { public int entities = 0; - + @Override public void updateEntity() { int range = 6; - int entityCount = worldObj.getEntitiesWithinAABB(EntityAnimal.class, AxisAlignedBB.getBoundingBox(xCoord - range, yCoord - range, zCoord - range, xCoord + range + 1, yCoord + range + 1, zCoord + range + 1)).size(); + int entityCount = worldObj.getEntitiesWithinAABB(EntityAnimal.class, AxisAlignedBB.getBoundingBox(xCoord - range, yCoord - range, zCoord - range, xCoord + range + 1, yCoord + range + 1, zCoord + range + 1)).size(); if(entityCount != entities) { entities = entityCount; worldObj.func_147453_f(xCoord, yCoord, zCoord, worldObj.getBlock(xCoord, yCoord, zCoord)); } } - + } diff --git a/MODSRC/vazkii/botania/common/core/handler/TerrasteelCraftingHandler.java b/MODSRC/vazkii/botania/common/core/handler/TerrasteelCraftingHandler.java index cd1d3186a..9625c2e4c 100644 --- a/MODSRC/vazkii/botania/common/core/handler/TerrasteelCraftingHandler.java +++ b/MODSRC/vazkii/botania/common/core/handler/TerrasteelCraftingHandler.java @@ -43,9 +43,9 @@ public final class TerrasteelCraftingHandler { item.worldObj.playSoundAtEntity(item, "random.levelup", 1F, 1F); getManaFromPools : { - int x = (int) MathHelper.floor_double(item.posX); - int y = (int) MathHelper.floor_double(item.posY); - int z = (int) MathHelper.floor_double(item.posZ); + int x = MathHelper.floor_double(item.posX); + int y = MathHelper.floor_double(item.posY); + int z = MathHelper.floor_double(item.posZ); for(int i = -4; i < 5; i++) for(int j = -4; j < 5; j++) @@ -69,9 +69,9 @@ public final class TerrasteelCraftingHandler { } static int validateCraftingItem(EntityItem item) { - int x = (int) MathHelper.floor_double(item.posX); - int y = (int) MathHelper.floor_double(item.posY); - int z = (int) MathHelper.floor_double(item.posZ); + int x = MathHelper.floor_double(item.posX); + int y = MathHelper.floor_double(item.posY); + int z = MathHelper.floor_double(item.posZ); if(item.worldObj.getBlock(x, y - 1, z) != Blocks.beacon) return -1; @@ -168,9 +168,9 @@ public final class TerrasteelCraftingHandler { } static void finalizeCraftingRecipe(EntityItem item) { - int x = (int) MathHelper.floor_double(item.posX); - int y = (int) MathHelper.floor_double(item.posY); - int z = (int) MathHelper.floor_double(item.posZ); + int x = MathHelper.floor_double(item.posX); + int y = MathHelper.floor_double(item.posY); + int z = MathHelper.floor_double(item.posZ); List items = item.worldObj.getEntitiesWithinAABB(EntityItem.class, AxisAlignedBB.getBoundingBox(x, y, z, x + 1, y + 1, z + 1)); for(EntityItem otherItem : items) diff --git a/MODSRC/vazkii/botania/common/crafting/ModCrafingRecipes.java b/MODSRC/vazkii/botania/common/crafting/ModCrafingRecipes.java index f5f215140..32ea6d5ac 100644 --- a/MODSRC/vazkii/botania/common/crafting/ModCrafingRecipes.java +++ b/MODSRC/vazkii/botania/common/crafting/ModCrafingRecipes.java @@ -576,9 +576,9 @@ public final class ModCrafingRecipes { "WWW", "W W", "W W", 'W', new ItemStack(ModBlocks.livingwood, 1, 1)); recipeOpenCrate = BotaniaAPI.getLatestAddedRecipe(); - + // Eye of the Ancients Recipe - addOreDictRecipe(new ItemStack(ModBlocks.forestEye), + addOreDictRecipe(new ItemStack(ModBlocks.forestEye), "MSM", "SES", "MSM", 'M', LibOreDict.MANA_STEEL, 'S', LibOreDict.LIVING_ROCK, diff --git a/MODSRC/vazkii/botania/common/crafting/ModManaAlchemyRecipes.java b/MODSRC/vazkii/botania/common/crafting/ModManaAlchemyRecipes.java index 7077b5e14..4a2e6a376 100644 --- a/MODSRC/vazkii/botania/common/crafting/ModManaAlchemyRecipes.java +++ b/MODSRC/vazkii/botania/common/crafting/ModManaAlchemyRecipes.java @@ -84,7 +84,7 @@ public final class ModManaAlchemyRecipes { nameTagRecipe = BotaniaAPI.registerManaAlchemyRecipe(new ItemStack(Items.name_tag), new ItemStack(Items.writable_book), 16000); enderPearlRecipe = BotaniaAPI.registerManaAlchemyRecipe(new ItemStack(Items.ender_pearl, 2), new ItemStack(Items.ghast_tear), 28000); - + redstoneToGlowstoneRecipes = new ArrayList(); redstoneToGlowstoneRecipes.add(BotaniaAPI.registerManaAlchemyRecipe(new ItemStack(Items.redstone), new ItemStack(Items.glowstone_dust), 300)); redstoneToGlowstoneRecipes.add(BotaniaAPI.registerManaAlchemyRecipe(new ItemStack(Items.glowstone_dust), new ItemStack(Items.redstone), 300)); diff --git a/MODSRC/vazkii/botania/common/entity/EntityManaBurst.java b/MODSRC/vazkii/botania/common/entity/EntityManaBurst.java index b9f6cbdb1..14f5e2e8a 100644 --- a/MODSRC/vazkii/botania/common/entity/EntityManaBurst.java +++ b/MODSRC/vazkii/botania/common/entity/EntityManaBurst.java @@ -723,9 +723,9 @@ public class EntityManaBurst extends EntityThrowable implements IManaBurst { public final int meta; public PositionProperties(Entity entity) { - int x = (int) MathHelper.floor_double(entity.posX); - int y = (int) MathHelper.floor_double(entity.posY); - int z = (int) MathHelper.floor_double(entity.posZ); + int x = MathHelper.floor_double(entity.posX); + int y = MathHelper.floor_double(entity.posY); + int z = MathHelper.floor_double(entity.posZ); coords = new ChunkCoordinates(x, y, z); block = entity.worldObj.getBlock(x, y, z); meta = entity.worldObj.getBlockMetadata(x, y, z); diff --git a/MODSRC/vazkii/botania/common/lexicon/LexiconData.java b/MODSRC/vazkii/botania/common/lexicon/LexiconData.java index a568adfd5..1bcf8e10d 100644 --- a/MODSRC/vazkii/botania/common/lexicon/LexiconData.java +++ b/MODSRC/vazkii/botania/common/lexicon/LexiconData.java @@ -312,7 +312,7 @@ public final class LexiconData { forestEye = new BLexiconEntry(LibLexicon.DEVICE_FOREST_EYE, categoryDevices); forestEye.setLexiconPages(new PageText("0"), new PageText("1"), new PageCraftingRecipe("2", ModCrafingRecipes.recipeForestEye)); - + // TOOLS ENTRIES manaBlaster = new BLexiconEntry(LibLexicon.TOOL_MANA_BLASTER, categoryTools); manaBlaster.setLexiconPages(new PageText("0"), new PageText("1"), new PageText("2"), new PageCraftingRecipe("3", ModCrafingRecipes.recipeManaBlaster));