diff --git a/MODSRC/vazkii/botania/client/core/handler/HUDHandler.java b/MODSRC/vazkii/botania/client/core/handler/HUDHandler.java index 2168cda76..e3f9e454a 100644 --- a/MODSRC/vazkii/botania/client/core/handler/HUDHandler.java +++ b/MODSRC/vazkii/botania/client/core/handler/HUDHandler.java @@ -141,7 +141,7 @@ public final class HUDHandler { Minecraft mc = Minecraft.getMinecraft(); int x = res.getScaledWidth() / 2 - 17; int y = res.getScaledHeight() / 2 + 2; - + RenderItem.getInstance().renderItemIntoGUI(mc.fontRenderer, mc.renderEngine, new ItemStack(ModItems.lexicon), x, y); GL11.glDisable(GL11.GL_LIGHTING); mc.fontRenderer.drawStringWithShadow("?", x + 10, y + 8, 0xFFFFFFFF); diff --git a/MODSRC/vazkii/botania/client/core/helper/RenderHelper.java b/MODSRC/vazkii/botania/client/core/helper/RenderHelper.java index a2c2481cd..a62f8a20a 100644 --- a/MODSRC/vazkii/botania/client/core/helper/RenderHelper.java +++ b/MODSRC/vazkii/botania/client/core/helper/RenderHelper.java @@ -124,7 +124,7 @@ public final class RenderHelper { public static void drawTexturedModalRect(int par1, int par2, float z, int par3, int par4, int par5, int par6) { drawTexturedModalRect(par1, par2, z, par3, par4, par5, par6, 0.00390625F, 0.00390625F); } - + public static void drawTexturedModalRect(int par1, int par2, float z, int par3, int par4, int par5, int par6, float f, float f1) { Tessellator tessellator = Tessellator.instance; tessellator.startDrawingQuads(); diff --git a/MODSRC/vazkii/botania/client/model/ModelTinyPotato.java b/MODSRC/vazkii/botania/client/model/ModelTinyPotato.java index 7a659a132..63563fe12 100644 --- a/MODSRC/vazkii/botania/client/model/ModelTinyPotato.java +++ b/MODSRC/vazkii/botania/client/model/ModelTinyPotato.java @@ -13,10 +13,9 @@ package vazkii.botania.client.model; import net.minecraft.client.model.ModelBase; import net.minecraft.client.model.ModelRenderer; -import net.minecraft.entity.Entity; public class ModelTinyPotato extends ModelBase { - + ModelRenderer potato; public ModelTinyPotato() { diff --git a/MODSRC/vazkii/botania/client/render/block/RenderTinyPotato.java b/MODSRC/vazkii/botania/client/render/block/RenderTinyPotato.java index 0393153c5..1f3691109 100644 --- a/MODSRC/vazkii/botania/client/render/block/RenderTinyPotato.java +++ b/MODSRC/vazkii/botania/client/render/block/RenderTinyPotato.java @@ -11,15 +11,15 @@ */ package vazkii.botania.client.render.block; -import org.lwjgl.opengl.GL11; - -import vazkii.botania.client.lib.LibRenderIDs; -import vazkii.botania.common.block.tile.TileTinyPotato; -import vazkii.botania.common.block.tile.mana.TileSpreader; import net.minecraft.block.Block; import net.minecraft.client.renderer.RenderBlocks; import net.minecraft.client.renderer.tileentity.TileEntityRendererDispatcher; import net.minecraft.world.IBlockAccess; + +import org.lwjgl.opengl.GL11; + +import vazkii.botania.client.lib.LibRenderIDs; +import vazkii.botania.common.block.tile.TileTinyPotato; import cpw.mods.fml.client.registry.ISimpleBlockRenderingHandler; public class RenderTinyPotato implements ISimpleBlockRenderingHandler { diff --git a/MODSRC/vazkii/botania/client/render/tile/RenderTileTinyPotato.java b/MODSRC/vazkii/botania/client/render/tile/RenderTileTinyPotato.java index 52820d92e..f8ce91333 100644 --- a/MODSRC/vazkii/botania/client/render/tile/RenderTileTinyPotato.java +++ b/MODSRC/vazkii/botania/client/render/tile/RenderTileTinyPotato.java @@ -11,20 +11,17 @@ */ package vazkii.botania.client.render.tile; +import net.minecraft.client.Minecraft; +import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer; +import net.minecraft.tileentity.TileEntity; +import net.minecraft.util.ResourceLocation; + import org.lwjgl.opengl.GL11; import org.lwjgl.opengl.GL12; import vazkii.botania.client.lib.LibResources; -import vazkii.botania.client.model.ModelPool; import vazkii.botania.client.model.ModelTinyPotato; -import vazkii.botania.common.block.tile.TileTinyPlanet; import vazkii.botania.common.block.tile.TileTinyPotato; -import vazkii.botania.common.block.tile.mana.TilePool; -import net.minecraft.client.Minecraft; -import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer; -import net.minecraft.entity.passive.EntitySheep; -import net.minecraft.tileentity.TileEntity; -import net.minecraft.util.ResourceLocation; public class RenderTileTinyPotato extends TileEntitySpecialRenderer { @@ -45,11 +42,11 @@ public class RenderTileTinyPotato extends TileEntitySpecialRenderer { GL11.glScalef(1F, -1F, -1F); int meta = potato.getWorldObj() == null ? 3 : potato.getBlockMetadata(); GL11.glRotatef(meta * 90F - 180F, 0F, 1F, 0F); - + int jump = potato.jumpTicks; float up = (float) -Math.abs(Math.sin((float) jump / 10 * Math.PI)) * 0.2F; float rot = (float) Math.sin((float) jump / 10 * Math.PI) * 2; - + GL11.glTranslatef(0F, up, 0F); GL11.glRotatef(rot, 0F, 0F, 1F); diff --git a/MODSRC/vazkii/botania/common/block/BlockForestDrum.java b/MODSRC/vazkii/botania/common/block/BlockForestDrum.java index 445566a39..35165119d 100644 --- a/MODSRC/vazkii/botania/common/block/BlockForestDrum.java +++ b/MODSRC/vazkii/botania/common/block/BlockForestDrum.java @@ -12,7 +12,6 @@ package vazkii.botania.common.block; import java.util.ArrayList; -import java.util.Collection; import java.util.Collections; import java.util.List; @@ -128,14 +127,14 @@ public class BlockForestDrum extends BlockMod implements IManaTrigger, ILexicona } } } - + Collections.shuffle(shearables); int sheared = 0; - + for(EntityLiving entity : shearables) { if(sheared > 4) break; - + List stacks = ((IShearable) entity).onSheared(stack, world, (int) entity.posX, (int) entity.posY, (int) entity.posZ, 0); if(stacks != null && !world.isRemote) for(ItemStack wool : stacks) { diff --git a/MODSRC/vazkii/botania/common/block/BlockSpreader.java b/MODSRC/vazkii/botania/common/block/BlockSpreader.java index 0463db394..f9cdc0cdd 100644 --- a/MODSRC/vazkii/botania/common/block/BlockSpreader.java +++ b/MODSRC/vazkii/botania/common/block/BlockSpreader.java @@ -138,7 +138,7 @@ public class BlockSpreader extends BlockModContainer implements IWandable, IWand TileEntity tile = par1World.getTileEntity(par2, par3, par4); if(!(tile instanceof TileSpreader)) return false; - + TileSpreader spreader = (TileSpreader) tile; ItemStack lens = spreader.getStackInSlot(0); ItemStack heldItem = par5EntityPlayer.getCurrentEquippedItem(); @@ -168,7 +168,7 @@ public class BlockSpreader extends BlockModContainer implements IWandable, IWand TileEntity tile = par1World.getTileEntity(par2, par3, par4); if(!(tile instanceof TileSimpleInventory)) return; - + TileSimpleInventory inv = (TileSimpleInventory) tile; if (inv != null) { diff --git a/MODSRC/vazkii/botania/common/block/BlockTinyPotato.java b/MODSRC/vazkii/botania/common/block/BlockTinyPotato.java index 54f194154..4e3c52eab 100644 --- a/MODSRC/vazkii/botania/common/block/BlockTinyPotato.java +++ b/MODSRC/vazkii/botania/common/block/BlockTinyPotato.java @@ -27,7 +27,6 @@ import vazkii.botania.client.lib.LibRenderIDs; import vazkii.botania.common.block.tile.TileTinyPotato; import vazkii.botania.common.lexicon.LexiconData; import vazkii.botania.common.lib.LibBlockNames; -import vazkii.botania.common.lib.LibBlockNames; public class BlockTinyPotato extends BlockModContainer implements ILexiconable { @@ -38,17 +37,17 @@ public class BlockTinyPotato extends BlockModContainer implements ILexiconable { float f = 1F / 16F * 6F; setBlockBounds(f, 0, f, 1F - f, f, 1F - f); } - + @Override public void registerBlockIcons(IIconRegister par1IconRegister) { // NO-OP } - + @Override public IIcon getIcon(int side, int meta) { return Blocks.hardened_clay.getIcon(0, 0); } - + @Override public boolean onBlockActivated(World par1World, int par2, int par3, int par4, EntityPlayer par5EntityPlayer, int par6, float par7, float par8, float par9) { TileEntity tile = par1World.getTileEntity(par2, par3, par4); @@ -56,24 +55,24 @@ public class BlockTinyPotato extends BlockModContainer implements ILexiconable { ((TileTinyPotato) tile).jump(); return true; } - + @Override public void onBlockPlacedBy(World par1World, int par2, int par3, int par4, EntityLivingBase par5EntityLiving, ItemStack par6ItemStack) { int l1 = MathHelper.floor_double(par5EntityLiving.rotationYaw * 4.0F / 360.0F + 0.5D) & 3; par1World.setBlockMetadataWithNotify(par2, par3, par4, l1, 2); } - + @Override public boolean isOpaqueCube() { return false; } - + @Override public boolean renderAsNormalBlock() { return false; } - + @Override public int getRenderType() { return LibRenderIDs.idTinyPotato; diff --git a/MODSRC/vazkii/botania/common/block/ModBlocks.java b/MODSRC/vazkii/botania/common/block/ModBlocks.java index 60d7ae4a6..7c957819a 100644 --- a/MODSRC/vazkii/botania/common/block/ModBlocks.java +++ b/MODSRC/vazkii/botania/common/block/ModBlocks.java @@ -231,7 +231,7 @@ public final class ModBlocks { seaLamp = new BlockSeaLamp(); miniIsland = new BlockMiniIsland(); tinyPotato = new BlockTinyPotato(); - + livingwoodStairs = new BlockLivingwoodStairs(); livingwoodSlab = new BlockLivingwoodSlab(false); livingwoodSlabFull = new BlockLivingwoodSlab(true); diff --git a/MODSRC/vazkii/botania/common/block/subtile/functional/SubTileHeiseiDream.java b/MODSRC/vazkii/botania/common/block/subtile/functional/SubTileHeiseiDream.java index c9e0f247f..e85801c70 100644 --- a/MODSRC/vazkii/botania/common/block/subtile/functional/SubTileHeiseiDream.java +++ b/MODSRC/vazkii/botania/common/block/subtile/functional/SubTileHeiseiDream.java @@ -14,7 +14,6 @@ package vazkii.botania.common.block.subtile.functional; import java.util.ArrayList; import java.util.List; -import net.minecraft.entity.EntityCreature; import net.minecraft.entity.EntityLiving; import net.minecraft.entity.EntityLivingBase; import net.minecraft.entity.ai.EntityAIAttackOnCollide; @@ -54,7 +53,7 @@ public class SubTileHeiseiDream extends SubTileFunctional { public static boolean brainwashEntity(EntityLiving entity, List mobs) { EntityLivingBase target = entity.getAttackTarget(); boolean did = false; - + if(target == null || !(target instanceof IMob)) { IMob newTarget; do newTarget = mobs.get(entity.worldObj.rand.nextInt(mobs.size())); @@ -72,12 +71,12 @@ public class SubTileHeiseiDream extends SubTileFunctional { messWithAttackOnCollideAI((EntityAIAttackOnCollide) entry.action); did = true; } - + if(did) entity.setAttackTarget((EntityLiving) newTarget); } } - + return did; } diff --git a/MODSRC/vazkii/botania/common/block/subtile/functional/SubTileVinculotus.java b/MODSRC/vazkii/botania/common/block/subtile/functional/SubTileVinculotus.java index 18ccd8665..7517b3b66 100644 --- a/MODSRC/vazkii/botania/common/block/subtile/functional/SubTileVinculotus.java +++ b/MODSRC/vazkii/botania/common/block/subtile/functional/SubTileVinculotus.java @@ -30,11 +30,11 @@ public class SubTileVinculotus extends SubTileFunctional { public static Set existingFlowers = Collections.newSetFromMap(new WeakHashMap()); private static boolean registered = false; - + @Override public void onUpdate() { super.onUpdate(); - + if(!existingFlowers.contains(this)) { existingFlowers.add(this); if(!registered) { @@ -43,43 +43,43 @@ public class SubTileVinculotus extends SubTileFunctional { } } } - + @Override public boolean acceptsRedstone() { return true; } - + @Override public int getColor() { return 0x0A6051; } - + @Override public int getMaxMana() { return 500; } - + @Override public LexiconEntry getEntry() { return LexiconData.vinculotus; } - + public static class EndermanIntercepter { - + @SubscribeEvent public void onEndermanTeleport(EnderTeleportEvent event) { if(event.entity.worldObj.isRemote) return; - + int cost = 50; int range = 64; - + if(event.entity instanceof EntityEnderman) { List possibleFlowers = new ArrayList(); for(SubTileVinculotus flower : existingFlowers) { if(flower.redstoneSignal > 0 || flower.mana <= cost || flower.supertile.getWorldObj() != event.entity.worldObj || flower.supertile.getWorldObj().getTileEntity(flower.supertile.xCoord, flower.supertile.yCoord, flower.supertile.zCoord) != flower.supertile) continue; - + double x = flower.supertile.xCoord + 0.5; double y = flower.supertile.yCoord + 1.5; double z = flower.supertile.zCoord + 0.5; @@ -87,14 +87,14 @@ public class SubTileVinculotus extends SubTileFunctional { if(MathHelper.pointDistanceSpace(x, y, z, event.targetX, event.targetY, event.targetZ) < range) possibleFlowers.add(flower); } - + if(!possibleFlowers.isEmpty()) { SubTileVinculotus flower = possibleFlowers.get(event.entity.worldObj.rand.nextInt(possibleFlowers.size())); - + double x = flower.supertile.xCoord + 0.5; double y = flower.supertile.yCoord + 1.5; double z = flower.supertile.zCoord + 0.5; - + event.targetX = x + Math.random() * 3 - 1; event.targetY = y; event.targetZ = z + Math.random() * 3 - 1; @@ -103,7 +103,7 @@ public class SubTileVinculotus extends SubTileFunctional { } } } - + } - + } diff --git a/MODSRC/vazkii/botania/common/block/tile/TileAltar.java b/MODSRC/vazkii/botania/common/block/tile/TileAltar.java index 6c4628e78..7e0b4e0f6 100644 --- a/MODSRC/vazkii/botania/common/block/tile/TileAltar.java +++ b/MODSRC/vazkii/botania/common/block/tile/TileAltar.java @@ -32,7 +32,7 @@ import vazkii.botania.common.lib.LibBlockNames; public class TileAltar extends TileSimpleInventory implements ISidedInventory { private static final Pattern SEED_PATTERN = Pattern.compile("(?:(?:(?:[A-Z-_.:]|^)seed)|(?:(?:[a-z-_.:]|^)Seed))(?:[sA-Z-_.:]|$)"); - + public static final String TAG_HAS_WATER = "hasWater"; public static final String TAG_IS_MOSSY = "isMossy"; diff --git a/MODSRC/vazkii/botania/common/block/tile/TileTinyPotato.java b/MODSRC/vazkii/botania/common/block/tile/TileTinyPotato.java index 208a743d4..c376810a3 100644 --- a/MODSRC/vazkii/botania/common/block/tile/TileTinyPotato.java +++ b/MODSRC/vazkii/botania/common/block/tile/TileTinyPotato.java @@ -11,25 +11,21 @@ */ package vazkii.botania.common.block.tile; -import net.minecraft.entity.EntityLivingBase; -import net.minecraft.item.ItemStack; -import net.minecraft.util.MathHelper; -import net.minecraft.world.World; public class TileTinyPotato extends TileMod { public int jumpTicks = 0; - + public void jump() { if(jumpTicks == 0) jumpTicks = 20; } - + @Override public void updateEntity() { if(worldObj.rand.nextInt(100) == 0) jump(); - + if(jumpTicks > 0) jumpTicks--; } diff --git a/MODSRC/vazkii/botania/common/core/handler/ChestGenHandler.java b/MODSRC/vazkii/botania/common/core/handler/ChestGenHandler.java index 5c482c5f6..e8126f176 100644 --- a/MODSRC/vazkii/botania/common/core/handler/ChestGenHandler.java +++ b/MODSRC/vazkii/botania/common/core/handler/ChestGenHandler.java @@ -21,15 +21,15 @@ public final class ChestGenHandler { public static void init() { String c = ChestGenHooks.BONUS_CHEST; ChestGenHooks.addItem(c, new WeightedRandomChestContent(new ItemStack(ModItems.lexicon), 1, 1, 12)); - + c = ChestGenHooks.STRONGHOLD_CORRIDOR; ChestGenHooks.addItem(c, new WeightedRandomChestContent(new ItemStack(ModItems.manaResource, 1, 1), 1, 1, 8)); ChestGenHooks.addItem(c, new WeightedRandomChestContent(new ItemStack(ModItems.manaResource, 1, 1), 1, 3, 2)); - + c = ChestGenHooks.DUNGEON_CHEST; ChestGenHooks.addItem(c, new WeightedRandomChestContent(new ItemStack(ModItems.manaResource, 1, 0), 1, 5, 9)); ChestGenHooks.addItem(c, new WeightedRandomChestContent(new ItemStack(ModItems.lexicon), 1, 1, 6)); ChestGenHooks.addItem(c, new WeightedRandomChestContent(new ItemStack(ModItems.manaBottle), 1, 1, 5)); } - + } diff --git a/MODSRC/vazkii/botania/common/core/handler/ConfigHandler.java b/MODSRC/vazkii/botania/common/core/handler/ConfigHandler.java index c7e40b1f8..600785415 100644 --- a/MODSRC/vazkii/botania/common/core/handler/ConfigHandler.java +++ b/MODSRC/vazkii/botania/common/core/handler/ConfigHandler.java @@ -106,7 +106,7 @@ public final class ConfigHandler { desc = "Set to false to disable the animation when an item is charging on top of a mana pool."; chargingAnimationEnabled = loadPropBool("chargeAnimation.enabled", desc, chargingAnimationEnabled); - + desc = "Set to true if you are the chosen one. For lovers of glitch art and just general mad people."; matrixMode = loadPropBool("matrixMode.enabled", desc, matrixMode); diff --git a/MODSRC/vazkii/botania/common/core/proxy/CommonProxy.java b/MODSRC/vazkii/botania/common/core/proxy/CommonProxy.java index 369778bdb..0500b36fc 100644 --- a/MODSRC/vazkii/botania/common/core/proxy/CommonProxy.java +++ b/MODSRC/vazkii/botania/common/core/proxy/CommonProxy.java @@ -23,9 +23,9 @@ import vazkii.botania.api.lexicon.LexiconEntry; import vazkii.botania.common.Botania; import vazkii.botania.common.block.ModBlocks; import vazkii.botania.common.core.handler.BiomeDecorationHandler; +import vazkii.botania.common.core.handler.ChestGenHandler; import vazkii.botania.common.core.handler.CommonTickHandler; import vazkii.botania.common.core.handler.ConfigHandler; -import vazkii.botania.common.core.handler.ChestGenHandler; import vazkii.botania.common.core.handler.InternalMethodHandler; import vazkii.botania.common.core.handler.ManaNetworkHandler; import vazkii.botania.common.core.handler.PixieHandler; diff --git a/MODSRC/vazkii/botania/common/crafting/ModCrafingRecipes.java b/MODSRC/vazkii/botania/common/crafting/ModCrafingRecipes.java index 84cd79501..0465b536b 100644 --- a/MODSRC/vazkii/botania/common/crafting/ModCrafingRecipes.java +++ b/MODSRC/vazkii/botania/common/crafting/ModCrafingRecipes.java @@ -1010,11 +1010,11 @@ public final class ModCrafingRecipes { // Necrodermal Virus Recipe addShapelessOreDictRecipe(new ItemStack(ModItems.virus), LibOreDict.PIXIE_DUST, new ItemStack(ModItems.vineBall), new ItemStack(Items.magma_cream), new ItemStack(Items.fermented_spider_eye), new ItemStack(Items.ender_eye), new ItemStack(Items.skull, 1, 2)); recipeVirusZombie = BotaniaAPI.getLatestAddedRecipe(); - + // Nullodermal Virus Recipe addShapelessOreDictRecipe(new ItemStack(ModItems.virus, 1, 1), LibOreDict.PIXIE_DUST, new ItemStack(ModItems.vineBall), new ItemStack(Items.magma_cream), new ItemStack(Items.fermented_spider_eye), new ItemStack(Items.ender_eye), new ItemStack(Items.skull)); recipeVirusSkeleton = BotaniaAPI.getLatestAddedRecipe(); - + // Mana and Terrasteel Block Recipes addOreDictRecipe(new ItemStack(ModBlocks.storage, 1, 0), "III", "III", "III", diff --git a/MODSRC/vazkii/botania/common/crafting/ModManaInfusionRecipes.java b/MODSRC/vazkii/botania/common/crafting/ModManaInfusionRecipes.java index b0b7e8d7a..942162b4c 100644 --- a/MODSRC/vazkii/botania/common/crafting/ModManaInfusionRecipes.java +++ b/MODSRC/vazkii/botania/common/crafting/ModManaInfusionRecipes.java @@ -59,7 +59,7 @@ public final class ModManaInfusionRecipes { manaQuartzRecipe = BotaniaAPI.registerManaInfusionRecipe(new ItemStack(ModItems.quartz, 1, 1), new ItemStack(Items.quartz), 250); tinyPotatoRecipe = BotaniaAPI.registerManaInfusionRecipe(new ItemStack(ModBlocks.tinyPotato), new ItemStack(Items.potato), 1337); - + BotaniaAPI.registerManaInfusionRecipe(new ItemStack(ModItems.manaBottle), new ItemStack(Items.glass_bottle), 5000); } diff --git a/MODSRC/vazkii/botania/common/crafting/ModPetalRecipes.java b/MODSRC/vazkii/botania/common/crafting/ModPetalRecipes.java index 425cbd433..685c2976f 100644 --- a/MODSRC/vazkii/botania/common/crafting/ModPetalRecipes.java +++ b/MODSRC/vazkii/botania/common/crafting/ModPetalRecipes.java @@ -97,7 +97,7 @@ public final class ModPetalRecipes { looniumRecipe = BotaniaAPI.registerPetalRecipe(ItemBlockSpecialFlower.ofType(LibBlockNames.SUBTILE_LOONIUM), green, green, greenMana, greenMana, gray, grayMana, runeSloth, runeGluttony, runeEnvy, redstoneRoot); daffomillRecipe = BotaniaAPI.registerPetalRecipe(ItemBlockSpecialFlower.ofType(LibBlockNames.SUBTILE_DAFFOMILL), white, whiteMana, brown, yellowMana, runeAir, redstoneRoot); vinculotusRecipe = BotaniaAPI.registerPetalRecipe(ItemBlockSpecialFlower.ofType(LibBlockNames.SUBTILE_VINCULOTUS), purpleMana, purpleMana, lime, black, blackMana, black, runeWater, runeSloth, runeLust, redstoneRoot); - + ItemStack stack = new ItemStack(Items.skull, 1, 3); ItemNBTHelper.setString(stack, "SkullOwner", "Vazkii"); Object[] inputs = new Object[16]; diff --git a/MODSRC/vazkii/botania/common/entity/EntityDoppleganger.java b/MODSRC/vazkii/botania/common/entity/EntityDoppleganger.java index 855907e9b..0ba0cec1d 100644 --- a/MODSRC/vazkii/botania/common/entity/EntityDoppleganger.java +++ b/MODSRC/vazkii/botania/common/entity/EntityDoppleganger.java @@ -233,7 +233,7 @@ public class EntityDoppleganger extends EntityCreature implements IBossDisplayDa active.removeAll(remove); player.capabilities.isFlying = player.capabilities.isFlying && player.capabilities.isCreativeMode; - + if(!playersInside.contains(player)) { Vector3 sourceVector = new Vector3(source.posX + 0.5, source.posY + 0.5, source.posZ + 0.5); Vector3 playerVector = Vector3.fromEntityCenter(player); diff --git a/MODSRC/vazkii/botania/common/entity/EntityManaBurst.java b/MODSRC/vazkii/botania/common/entity/EntityManaBurst.java index e69425d92..43da106de 100644 --- a/MODSRC/vazkii/botania/common/entity/EntityManaBurst.java +++ b/MODSRC/vazkii/botania/common/entity/EntityManaBurst.java @@ -492,8 +492,7 @@ public class EntityManaBurst extends EntityThrowable implements IManaBurst { Vector3 diffVecNorm = diffVec.copy().normalize(); double distance = 0.095; - - int particles = 0; + do { r = or + ((float) Math.random() - 0.5F) * 0.25F; g = og + ((float) Math.random() - 0.5F) * 0.25F; @@ -504,12 +503,11 @@ public class EntityManaBurst extends EntityThrowable implements IManaBurst { posX += diffVecNorm.x * distance; posY += diffVecNorm.y * distance; posZ += diffVecNorm.z * distance; - + currentPos = Vector3.fromEntity(this); diffVec = oldPos.copy().sub(currentPos); - particles++; } while(Math.abs(diffVec.mag()) > distance); - + Botania.proxy.wispFX(worldObj, posX, posY, posZ, r, g, b, 0.1F * size, (float) (Math.random() - 0.5F) * 0.06F, (float) (Math.random() - 0.5F) * 0.06F, (float) (Math.random() - 0.5F) * 0.06F); posX = savedPosX; diff --git a/MODSRC/vazkii/botania/common/entity/EntityPixie.java b/MODSRC/vazkii/botania/common/entity/EntityPixie.java index ffd4ba57f..e5ff7cf08 100644 --- a/MODSRC/vazkii/botania/common/entity/EntityPixie.java +++ b/MODSRC/vazkii/botania/common/entity/EntityPixie.java @@ -94,7 +94,7 @@ public class EntityPixie extends EntityFlyingCreature { return super.attackEntityFrom(par1DamageSource, par2); return false; } - + @Override public void onEntityUpdate() { super.onEntityUpdate(); diff --git a/MODSRC/vazkii/botania/common/item/ItemLaputaShard.java b/MODSRC/vazkii/botania/common/item/ItemLaputaShard.java index 585e57576..bb7fd9788 100644 --- a/MODSRC/vazkii/botania/common/item/ItemLaputaShard.java +++ b/MODSRC/vazkii/botania/common/item/ItemLaputaShard.java @@ -53,9 +53,6 @@ public class ItemLaputaShard extends ItemMod implements ILensEffect { public void spawnBurst(World world, int srcx, int srcy, int srcz) { int range = 14; - int islandHeight = 64; - int blocks = 0; - if(!world.isRemote) { for(int i = 0; i < range * 2 + 1; i++) for(int j = range * 2 + 1; j > 0; j--) @@ -179,7 +176,7 @@ public class ItemLaputaShard extends ItemMod implements ILensEffect { EntityThrowable entity = (EntityThrowable) burst; ItemStack lens = burst.getSourceLens(); int id = ItemNBTHelper.getInt(lens, TAG_BLOCK, 0); - Block block = Block.getBlockById(id); + Block.getBlockById(id); int meta = ItemNBTHelper.getInt(lens, TAG_META, 0); entity.worldObj.spawnParticle("blockcrack_" + id + "_" + meta, entity.posX, entity.posY, entity.posZ, entity.motionX, entity.motionY, entity.motionZ); diff --git a/MODSRC/vazkii/botania/common/item/ItemLens.java b/MODSRC/vazkii/botania/common/item/ItemLens.java index 4d4a6ad86..b35587e57 100644 --- a/MODSRC/vazkii/botania/common/item/ItemLens.java +++ b/MODSRC/vazkii/botania/common/item/ItemLens.java @@ -63,20 +63,20 @@ import cpw.mods.fml.common.registry.GameRegistry; public class ItemLens extends ItemMod implements ILens { - private static final int NORMAL = 0, - SPEED = 1, - POWER = 2, - TIME = 3, + private static final int NORMAL = 0, + SPEED = 1, + POWER = 2, + TIME = 3, EFFICIENCY = 4, BOUNCE = 5, - GRAVITY = 6, - MINE = 7, + GRAVITY = 6, + MINE = 7, DAMAGE = 8, PHANTOM = 9, MAGNET = 10, EXPLOSIVE = 11, INFLUENCE = 12, - WEIGHT = 13, + WEIGHT = 13, PAINT = 14, FIRE = 15, PISTON = 16; @@ -87,7 +87,7 @@ public class ItemLens extends ItemMod implements ILens { PROP_TOUCH = 1 << 2, PROP_INTERACTION = 1 << 3, PROP_DAMAGE = 1 << 4; - + private static final Map props = new HashMap(); static { @@ -407,12 +407,12 @@ public class ItemLens extends ItemMod implements ILens { int x = pos.blockX + dir.offsetX; int y = pos.blockY + dir.offsetY; int z = pos.blockZ + dir.offsetZ; - + if(entity.worldObj.isAirBlock(x, y, z) || entity.worldObj.getBlock(x, y, z).isReplaceable(entity.worldObj, x, y, z)) { Block block = entity.worldObj.getBlock(pos.blockX, pos.blockY, pos.blockZ); int meta = entity.worldObj.getBlockMetadata(pos.blockX, pos.blockY, pos.blockZ); TileEntity tile = entity.worldObj.getTileEntity(pos.blockX, pos.blockY, pos.blockZ); - + if(block.getMobilityFlag() == 0 && block != Blocks.obsidian && tile == null) { entity.worldObj.setBlockToAir(pos.blockX, pos.blockY, pos.blockZ); entity.worldObj.setBlock(x, y, z, block, meta, 1 | 2); diff --git a/MODSRC/vazkii/botania/common/item/ItemManaResource.java b/MODSRC/vazkii/botania/common/item/ItemManaResource.java index 77e5ccab4..11fd953ae 100644 --- a/MODSRC/vazkii/botania/common/item/ItemManaResource.java +++ b/MODSRC/vazkii/botania/common/item/ItemManaResource.java @@ -65,10 +65,10 @@ public class ItemManaResource extends ItemMod implements IFlowerComponent, IElve public int getColorFromItemStack(ItemStack par1ItemStack, int par2) { if(par1ItemStack.getItemDamage() == 5) return Color.HSBtoRGB(Botania.proxy.getWorldElapsedTicks() * 2 % 360 / 360F, 0.25F, 1F); - + return 0xFFFFFF; } - + @Override public String getUnlocalizedName(ItemStack par1ItemStack) { return "item." + LibItemNames.MANA_RESOURCE_NAMES[Math.min(types - 1, par1ItemStack.getItemDamage())]; diff --git a/MODSRC/vazkii/botania/common/item/ItemVirus.java b/MODSRC/vazkii/botania/common/item/ItemVirus.java index c90f8c871..aa24ce222 100644 --- a/MODSRC/vazkii/botania/common/item/ItemVirus.java +++ b/MODSRC/vazkii/botania/common/item/ItemVirus.java @@ -13,7 +13,6 @@ package vazkii.botania.common.item; import java.util.List; -import cpw.mods.fml.relauncher.ReflectionHelper; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.entity.EntityLivingBase; @@ -30,18 +29,19 @@ import net.minecraft.util.IIcon; import vazkii.botania.client.core.helper.IconHelper; import vazkii.botania.common.lib.LibItemNames; import vazkii.botania.common.lib.LibObfuscation; +import cpw.mods.fml.relauncher.ReflectionHelper; public class ItemVirus extends ItemMod { IIcon[] icons; private static final int SUBTYPES = 2; - + public ItemVirus() { setUnlocalizedName(LibItemNames.VIRUS); setHasSubtypes(true); } - + @Override public boolean itemInteractionForEntity(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, EntityLivingBase par3EntityLivingBase) { if(par3EntityLivingBase instanceof EntityHorse) { @@ -63,18 +63,18 @@ public class ItemVirus extends ItemMod { } return false; } - + @Override public void getSubItems(Item item, CreativeTabs tab, List list) { for(int i = 0; i < SUBTYPES; i++) list.add(new ItemStack(item, 1, i)); } - + @Override public IIcon getIconFromDamage(int par1) { return icons[Math.min(icons.length - 1, par1)]; } - + @Override public String getUnlocalizedName(ItemStack par1ItemStack) { return getUnlocalizedNameLazy(par1ItemStack) + par1ItemStack.getItemDamage(); @@ -90,5 +90,5 @@ public class ItemVirus extends ItemMod { for(int i = 0; i < SUBTYPES; i++) icons[i] = IconHelper.forItem(par1IconRegister, this, i); } - + } diff --git a/MODSRC/vazkii/botania/common/item/equipment/bauble/ItemDivaCharm.java b/MODSRC/vazkii/botania/common/item/equipment/bauble/ItemDivaCharm.java index cec66349f..7ab628ac3 100644 --- a/MODSRC/vazkii/botania/common/item/equipment/bauble/ItemDivaCharm.java +++ b/MODSRC/vazkii/botania/common/item/equipment/bauble/ItemDivaCharm.java @@ -57,7 +57,7 @@ public class ItemDivaCharm extends ItemBauble implements IManaUsingItem { event.entityLiving.heal(event.entityLiving.getMaxHealth()); if(event.entityLiving.isDead) event.entityLiving.isDead = false; - + ManaItemHandler.requestManaExact(amulet, player, cost, true); player.worldObj.playSoundAtEntity(player, "random.levelup", 1F, 1F); diff --git a/MODSRC/vazkii/botania/common/lexicon/LexiconData.java b/MODSRC/vazkii/botania/common/lexicon/LexiconData.java index e2ed5eb2c..89bec9613 100644 --- a/MODSRC/vazkii/botania/common/lexicon/LexiconData.java +++ b/MODSRC/vazkii/botania/common/lexicon/LexiconData.java @@ -319,7 +319,7 @@ public final class LexiconData { vinculotus = new BLexiconEntry(LibLexicon.FFLOWER_VINCULOTUS, categoryFunctionalFlowers); vinculotus.setLexiconPages(new PageText("0"), new PagePetalRecipe("1", ModPetalRecipes.vinculotusRecipe)); - + // GENERATING FLOWERS ENTRIES generatingIntro = new BLexiconEntry(LibLexicon.GFLOWER_INTRO, categoryGenerationFlowers); generatingIntro.setPriority().setLexiconPages(new PageText("0"), new PageText("1"), new PageText("2")); @@ -395,7 +395,7 @@ public final class LexiconData { gatherDrum = new ALexiconEntry(LibLexicon.DEVICE_GATHER_DRUM, categoryDevices); gatherDrum.setLexiconPages(new PageText("0"), new PageCraftingRecipe("1", ModCrafingRecipes.recipeGatherDrum)); - + // 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)); @@ -457,10 +457,10 @@ public final class LexiconData { laputaShard = new ALexiconEntry(LibLexicon.TOOL_LAPUTA_SHARD, categoryTools); laputaShard.setLexiconPages(new PageText("0"), new PageCraftingRecipe("1", ModCrafingRecipes.recipesLaputaShard)); - + virus = new ALexiconEntry(LibLexicon.TOOL_VIRUS, categoryTools); virus.setLexiconPages(new PageText("0"), new PageCraftingRecipe("1", ModCrafingRecipes.recipeVirusZombie), new PageCraftingRecipe("2", ModCrafingRecipes.recipeVirusSkeleton)); - + // BAUBLES ENTRIES baublesIntro = new BLexiconEntry(LibLexicon.BAUBLE_INTRO, categoryBaubles); baublesIntro.setPriority().setLexiconPages(new PageText("0"), new PageImage("1", LibResources.ENTRY_BAUBLES), new PageText("2")); @@ -550,7 +550,7 @@ public final class LexiconData { shedding = new BLexiconEntry(LibLexicon.MISC_SHEDDING, categoryMisc); shedding.setLexiconPages(new PageText("0")); - + tinyPotato = new BLexiconEntry(LibLexicon.MISC_TINY_POTATO, categoryMisc); tinyPotato.setLexiconPages(new PageText("0"), new PageManaInfusionRecipe("1", ModManaInfusionRecipes.tinyPotatoRecipe)); } diff --git a/MODSRC/vazkii/botania/common/lib/LibObfuscation.java b/MODSRC/vazkii/botania/common/lib/LibObfuscation.java index f3dac6e19..75d1b1bea 100644 --- a/MODSRC/vazkii/botania/common/lib/LibObfuscation.java +++ b/MODSRC/vazkii/botania/common/lib/LibObfuscation.java @@ -47,7 +47,7 @@ public final class LibObfuscation { // Potion public static final String[] IS_BAD_EFFECT = new String[] { "isBadEffect", "field_76418_K", "J" }; - + // EntityHorse public static final String[] HORSE_JUMP_STRENGTH = new String[] { "horseJumpStrength", "field_110271_bv", "bv" }; } diff --git a/resources/assets/botania/textures/blocks/colorEye0.png b/resources/assets/botania/textures/blocks/colorEye0.png new file mode 100644 index 000000000..45f8a2a5d Binary files /dev/null and b/resources/assets/botania/textures/blocks/colorEye0.png differ diff --git a/resources/assets/botania/textures/blocks/colorEye1.png b/resources/assets/botania/textures/blocks/colorEye1.png new file mode 100644 index 000000000..67309b7b6 Binary files /dev/null and b/resources/assets/botania/textures/blocks/colorEye1.png differ diff --git a/resources/assets/botania/textures/blocks/colorEye2.png b/resources/assets/botania/textures/blocks/colorEye2.png new file mode 100644 index 000000000..d78b31fa0 Binary files /dev/null and b/resources/assets/botania/textures/blocks/colorEye2.png differ