// Path: java/tb/common/tile/TileBraizer.java
// public class TileBraizer extends TileEntity implements ITickable
// {
// 	public int burnTime;
// 	public int uptime;
// 	
//     public boolean shouldRefresh(World world, BlockPos pos, IBlockState oldState, IBlockState newSate)
//     {
//     	return oldState.getBlock() == newSate.getBlock() ? false : super.shouldRefresh(world, pos, oldState, newSate);
//     }
// 	
//     public void readFromNBT(NBTTagCompound tag)
//     {
//         super.readFromNBT(tag);
//         burnTime = tag.getInteger("burnTime");
//     }
//     
//     public void writeToNBT(NBTTagCompound tag)
//     {
//         super.writeToNBT(tag);
//         tag.setInteger("burnTime", burnTime);
//     }
//     
// 	@SuppressWarnings({ "rawtypes" })
// 	public void update() 
// 	{
// 		++uptime;
// 		
// 		if(burnTime > 0)
// 		{
// 			--burnTime;
// 		}else
// 		{
// 			if(EssentiaHandler.drainEssentia(this, Aspect.FIRE, null, 6, false, 6))
// 			{
// 				burnTime = 1600;
// 				this.worldObj.setBlockState(getPos(), worldObj.getBlockState(getPos()).getBlock().getStateFromMeta(1));
// 			}
// 		}
// 		
// 		if(!this.worldObj.isRemote)
// 		{
// 			if(burnTime <= 0)
// 			{
// 				int metadata = BlockStateMetadata.getBlockMetadata(worldObj, pos);
// 				if(metadata == 1)
// 					this.worldObj.setBlockState(getPos(), worldObj.getBlockState(getPos()).getBlock().getStateFromMeta(0));
// 				
// 				return;
// 			}
// 		}
// 
// 		
// 		if(!this.worldObj.isRemote)
// 		{
// 			List<EntityCreature> creatures = this.worldObj.getEntitiesWithinAABB(EntityCreature.class, AxisAlignedBB.fromBounds(pos.getX(), pos.getY(), pos.getZ(), pos.getX()+1, pos.getY()+1, pos.getZ()+1).expand(12, 6, 12));
// 			
// 			for(EntityCreature c : creatures)
// 			{
// 				if(!(c instanceof IMob))
// 					continue;
// 
// 			      ArrayList entries = (ArrayList) c.tasks.taskEntries;
// 			      
// 			      EntityAIAvoidCampfire campfireAviodable = null;
// 			      
// 			      boolean hasTask = false;
// 			      for (int i = 0; i < entries.size(); ++i)
// 			      {
// 			    	  EntityAITasks.EntityAITaskEntry task = (EntityAITaskEntry) entries.get(i);
// 			    	  if ((task.action instanceof EntityAIAvoidCampfire)) 
// 			    	  {
// 			    		  campfireAviodable = (EntityAIAvoidCampfire) task.action;
// 			    		  hasTask = true;
// 			    		  break;
// 			    	  }
// 			      }
// 			      if(campfireAviodable == null)
// 			    	  campfireAviodable = new EntityAIAvoidCampfire(c);
// 			      
// 			      campfireAviodable.isScared = true;
// 			      campfireAviodable.scareTimer = 100;
// 			      campfireAviodable.campfireX = pos.getX();
// 			      campfireAviodable.campfireY = pos.getY();
// 			      campfireAviodable.campfireZ = pos.getZ();
// 			      
// 			      if(!hasTask)
// 			    	  c.tasks.addTask(1, campfireAviodable);
// 			}
// 		}
// 	}
// }


import java.util.Arrays;
import java.util.List;
import java.util.Random;
import DummyCore.Client.Icon;
import DummyCore.Client.IconRegister;
import DummyCore.Utils.BlockStateMetadata;
import DummyCore.Utils.IOldCubicBlock;
import DummyCore.Utils.MathUtils;
import net.minecraft.block.Block;
import net.minecraft.block.BlockContainer;
import net.minecraft.block.material.Material;
import net.minecraft.block.state.BlockState;
import net.minecraft.block.state.IBlockState;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.BlockPos;
import net.minecraft.util.EnumParticleTypes;
import net.minecraft.util.EnumWorldBlockLayer;
import net.minecraft.world.IBlockAccess;
import net.minecraft.world.World;
import tb.common.tile.TileBraizer;
import thaumcraft.api.blocks.BlocksTC;
package tb.common.block;



public class BlockBraizer extends BlockContainer implements IOldCubicBlock
{

	public BlockBraizer()
	{
		super(Material.rock);
		setHardness(1F);
		setResistance(1F);
	}

	@Override
	public TileEntity createNewTileEntity(World w, int meta) 
	{
// Path: java/tb/common/tile/TileBraizer.java
// public class TileBraizer extends TileEntity implements ITickable
// {
// 	public int burnTime;
// 	public int uptime;
// 	
//     public boolean shouldRefresh(World world, BlockPos pos, IBlockState oldState, IBlockState newSate)
//     {
//     	return oldState.getBlock() == newSate.getBlock() ? false : super.shouldRefresh(world, pos, oldState, newSate);
//     }
// 	
//     public void readFromNBT(NBTTagCompound tag)
//     {
//         super.readFromNBT(tag);
//         burnTime = tag.getInteger("burnTime");
//     }
//     
//     public void writeToNBT(NBTTagCompound tag)
//     {
//         super.writeToNBT(tag);
//         tag.setInteger("burnTime", burnTime);
//     }
//     
// 	@SuppressWarnings({ "rawtypes" })
// 	public void update() 
// 	{
// 		++uptime;
// 		
// 		if(burnTime > 0)
// 		{
// 			--burnTime;
// 		}else
// 		{
// 			if(EssentiaHandler.drainEssentia(this, Aspect.FIRE, null, 6, false, 6))
// 			{
// 				burnTime = 1600;
// 				this.worldObj.setBlockState(getPos(), worldObj.getBlockState(getPos()).getBlock().getStateFromMeta(1));
// 			}
// 		}
// 		
// 		if(!this.worldObj.isRemote)
// 		{
// 			if(burnTime <= 0)
// 			{
// 				int metadata = BlockStateMetadata.getBlockMetadata(worldObj, pos);
// 				if(metadata == 1)
// 					this.worldObj.setBlockState(getPos(), worldObj.getBlockState(getPos()).getBlock().getStateFromMeta(0));
// 				
// 				return;
// 			}
// 		}
// 
// 		
// 		if(!this.worldObj.isRemote)
// 		{
// 			List<EntityCreature> creatures = this.worldObj.getEntitiesWithinAABB(EntityCreature.class, AxisAlignedBB.fromBounds(pos.getX(), pos.getY(), pos.getZ(), pos.getX()+1, pos.getY()+1, pos.getZ()+1).expand(12, 6, 12));
// 			
// 			for(EntityCreature c : creatures)
// 			{
// 				if(!(c instanceof IMob))
// 					continue;
// 
// 			      ArrayList entries = (ArrayList) c.tasks.taskEntries;
// 			      
// 			      EntityAIAvoidCampfire campfireAviodable = null;
// 			      
// 			      boolean hasTask = false;
// 			      for (int i = 0; i < entries.size(); ++i)
// 			      {
// 			    	  EntityAITasks.EntityAITaskEntry task = (EntityAITaskEntry) entries.get(i);
// 			    	  if ((task.action instanceof EntityAIAvoidCampfire)) 
// 			    	  {
// 			    		  campfireAviodable = (EntityAIAvoidCampfire) task.action;
// 			    		  hasTask = true;
// 			    		  break;
// 			    	  }
// 			      }
// 			      if(campfireAviodable == null)
// 			    	  campfireAviodable = new EntityAIAvoidCampfire(c);
// 			      
// 			      campfireAviodable.isScared = true;
// 			      campfireAviodable.scareTimer = 100;
// 			      campfireAviodable.campfireX = pos.getX();
// 			      campfireAviodable.campfireY = pos.getY();
// 			      campfireAviodable.campfireZ = pos.getZ();
// 			      
// 			      if(!hasTask)
// 			    	  c.tasks.addTask(1, campfireAviodable);
// 			}
// 		}
// 	}
// }


// Path: java/tb/common/block/BlockBraizer.java
import java.util.Arrays;
import java.util.List;
import java.util.Random;
import DummyCore.Client.Icon;
import DummyCore.Client.IconRegister;
import DummyCore.Utils.BlockStateMetadata;
import DummyCore.Utils.IOldCubicBlock;
import DummyCore.Utils.MathUtils;
import net.minecraft.block.Block;
import net.minecraft.block.BlockContainer;
import net.minecraft.block.material.Material;
import net.minecraft.block.state.BlockState;
import net.minecraft.block.state.IBlockState;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.BlockPos;
import net.minecraft.util.EnumParticleTypes;
import net.minecraft.util.EnumWorldBlockLayer;
import net.minecraft.world.IBlockAccess;
import net.minecraft.world.World;
import tb.common.tile.TileBraizer;
import thaumcraft.api.blocks.BlocksTC;

package tb.common.block;



public class BlockBraizer extends BlockContainer implements IOldCubicBlock
{

	public BlockBraizer()
	{
		super(Material.rock);
		setHardness(1F);
		setResistance(1F);
	}

	@Override
	public TileEntity createNewTileEntity(World w, int meta) 
	{
		return new TileBraizer();