package main.flowstoneenergy.entities;

import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityCreature;
import net.minecraft.entity.SharedMonsterAttributes;
import net.minecraft.entity.monster.IMob;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.util.AxisAlignedBB;
import net.minecraft.world.World;

public class EntityRobot extends EntityCreature implements IMob {

    private boolean charged;

    public EntityRobot(World world) {
        super(world);
        setHealth(20);
        setSize(1.0F, 0.6F);
    }

    public boolean isCharged() {
        return charged;
    }

    public void setCharged() {
        charged = true;
    }
    
    @Override
    protected void applyEntityAttributes()
    {
        super.applyEntityAttributes();
        this.getEntityAttribute(SharedMonsterAttributes.movementSpeed).setBaseValue(0.7D);
    }

    @Override
    public AxisAlignedBB getBoundingBox() {
        return boundingBox;
    }

    @Override
    public AxisAlignedBB getCollisionBox(Entity entity) {
        if (entity != riddenByEntity)
            return entity.boundingBox;
        else
            return null;
    }

    @Override
    public void onUpdate() {
        super.onUpdate();	
	}

    @Override
    public boolean canBeCollidedWith() {
        return !isDead;
    }

    @Override
	public void readEntityFromNBT(NBTTagCompound nbt) {
        charged = nbt.getBoolean("Charged");
    }

    @Override
	public void writeEntityToNBT(NBTTagCompound nbt) {
        nbt.setBoolean("Charged", charged);
    }
}
@@ -33,16 +33,80 @@
 ities;%0A%0A
+import cpw.mods.fml.common.registry.IEntityAdditionalSpawnData;%0A
 import n
@@ -167,24 +167,21 @@
 y.Entity
-Creature
+Golem
 ;%0Aimport
@@ -231,50 +231,8 @@
 es;%0A
-import net.minecraft.entity.monster.IMob;%0A
 impo
@@ -387,16 +387,13 @@
 tity
-Creature
+Golem
  imp
@@ -405,11 +405,33 @@
 ts I
-Mob
+EntityAdditionalSpawnData
  %7B%0A%0A
@@ -708,13 +708,9 @@
   %7D%0A
-    
 %0A
+
     
@@ -1260,17 +1260,16 @@
 pdate();
-%09
 %0A%09%7D%0A%0A   
@@ -1586,9 +1586,10 @@
 ;%0A    %7D%0A
-
 %7D
+%0A

Update EntityRobot.java