// Path: java/com/countrygamer/pvz/block/tile/TileEntityGravestone.java
// public class TileEntityGravestone extends TileEntity {
// 	public int facing = -1;
// 	public int type = 0;
// 	public ResourceLocation[] typeTexture = { Resources.gravestone,
// 			Resources.gravestoneReg, Resources.gravestoneFootball,
// 			Resources.gravestoneFlag, Resources.gravestoneCone,
// 			Resources.gravestoneBucket };
// 
// 	private double spawnDelay = 120.0D;
// 	private int maxNearbyEntities = 10;
// 
// 	public void updateEntity() {
// 		double spawnDelay = this.spawnDelay;
// 
// 		if (!getWorldObj().isRemote) {
// 			if (spawnDelay > 0.0D) {
// 				spawnDelay -= 1.0D;
// 				return;
// 			}
// 
// 			if (this.facing == -1) {
// 				this.facing = 0;
// 				System.out.println("facing was -1");
// 			}
// 
// 			Entity entity = new EntityZombie(getWorldObj());
// 
// 			List<?> entList = getWorldObj().getEntitiesWithinAABB(
// 					entity.getClass(),
// 					AxisAlignedBB.getAABBPool()
// 							.getAABB(this.xCoord - 3.0D, this.yCoord,
// 									this.zCoord - 3.0D, this.xCoord + 3.0D,
// 									this.yCoord, this.zCoord + 3.0D));
// 
// 			int j = entList.size();
// 			if (j >= this.maxNearbyEntities) {
// 				return;
// 			}
// 			Util.checkUnder(getWorldObj(), this.xCoord, this.yCoord,
// 					this.zCoord, 4);
// 			System.out.println("Spawn wave");
// 
// 			Util.spawnRandZombie(this.worldObj, this.xCoord, this.yCoord,
// 					this.zCoord, this.facing, this.type);
// 
// 			spawnDelay = this.spawnDelay;
// 		}
// 		super.updateEntity();
// 	}
// 
// 	public void readFromNBT(NBTTagCompound par1NBTTagCompound) {
// 		super.readFromNBT(par1NBTTagCompound);
// 
// 		this.facing = par1NBTTagCompound.getShort("Facing");
// 		this.facing = par1NBTTagCompound.getShort("Type");
// 	}
// 
// 	public void writeToNBT(NBTTagCompound par1NBTTagCompound) {
// 		super.writeToNBT(par1NBTTagCompound);
// 		par1NBTTagCompound.setShort("Facing", (short) this.facing);
// 		par1NBTTagCompound.setShort("Type", (short) this.type);
// 		NBTTagList nbttaglist = new NBTTagList();
// 	}
// }


import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
import net.minecraft.tileentity.TileEntity;
import org.lwjgl.opengl.GL11;
import com.countrygamer.pvz.block.tile.TileEntityGravestone;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
package com.countrygamer.pvz.client.block.tile;





public class RenderGravestone extends TileEntitySpecialRenderer
{
  private ModelGravestone aModel;

  public RenderGravestone()
  {
    this.aModel = new ModelGravestone();
  }
  @SideOnly(Side.CLIENT)
// Path: java/com/countrygamer/pvz/block/tile/TileEntityGravestone.java
// public class TileEntityGravestone extends TileEntity {
// 	public int facing = -1;
// 	public int type = 0;
// 	public ResourceLocation[] typeTexture = { Resources.gravestone,
// 			Resources.gravestoneReg, Resources.gravestoneFootball,
// 			Resources.gravestoneFlag, Resources.gravestoneCone,
// 			Resources.gravestoneBucket };
// 
// 	private double spawnDelay = 120.0D;
// 	private int maxNearbyEntities = 10;
// 
// 	public void updateEntity() {
// 		double spawnDelay = this.spawnDelay;
// 
// 		if (!getWorldObj().isRemote) {
// 			if (spawnDelay > 0.0D) {
// 				spawnDelay -= 1.0D;
// 				return;
// 			}
// 
// 			if (this.facing == -1) {
// 				this.facing = 0;
// 				System.out.println("facing was -1");
// 			}
// 
// 			Entity entity = new EntityZombie(getWorldObj());
// 
// 			List<?> entList = getWorldObj().getEntitiesWithinAABB(
// 					entity.getClass(),
// 					AxisAlignedBB.getAABBPool()
// 							.getAABB(this.xCoord - 3.0D, this.yCoord,
// 									this.zCoord - 3.0D, this.xCoord + 3.0D,
// 									this.yCoord, this.zCoord + 3.0D));
// 
// 			int j = entList.size();
// 			if (j >= this.maxNearbyEntities) {
// 				return;
// 			}
// 			Util.checkUnder(getWorldObj(), this.xCoord, this.yCoord,
// 					this.zCoord, 4);
// 			System.out.println("Spawn wave");
// 
// 			Util.spawnRandZombie(this.worldObj, this.xCoord, this.yCoord,
// 					this.zCoord, this.facing, this.type);
// 
// 			spawnDelay = this.spawnDelay;
// 		}
// 		super.updateEntity();
// 	}
// 
// 	public void readFromNBT(NBTTagCompound par1NBTTagCompound) {
// 		super.readFromNBT(par1NBTTagCompound);
// 
// 		this.facing = par1NBTTagCompound.getShort("Facing");
// 		this.facing = par1NBTTagCompound.getShort("Type");
// 	}
// 
// 	public void writeToNBT(NBTTagCompound par1NBTTagCompound) {
// 		super.writeToNBT(par1NBTTagCompound);
// 		par1NBTTagCompound.setShort("Facing", (short) this.facing);
// 		par1NBTTagCompound.setShort("Type", (short) this.type);
// 		NBTTagList nbttaglist = new NBTTagList();
// 	}
// }


// Path: java/com/countrygamer/pvz/client/block/tile/RenderGravestone.java
import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
import net.minecraft.tileentity.TileEntity;
import org.lwjgl.opengl.GL11;
import com.countrygamer.pvz.block.tile.TileEntityGravestone;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;

package com.countrygamer.pvz.client.block.tile;





public class RenderGravestone extends TileEntitySpecialRenderer
{
  private ModelGravestone aModel;

  public RenderGravestone()
  {
    this.aModel = new ModelGravestone();
  }
  @SideOnly(Side.CLIENT)
  public void renderAModelAt(TileEntityGravestone tileEnt, double x, double y, double z, float f) {