package pneumaticCraft.client.render.pneumaticArmor.hacking.entity; import java.util.List; import net.minecraft.entity.Entity; import net.minecraft.entity.monster.EntityGhast; import net.minecraft.entity.player.EntityPlayer; import pneumaticCraft.api.client.pneumaticHelmet.IHackableEntity; public class HackableGhast implements IHackableEntity{ @Override public String getId(){ return "ghast"; } @Override public boolean canHack(Entity entity, EntityPlayer player){ return true; } @Override public void addInfo(Entity entity, List<String> curInfo, EntityPlayer player){ curInfo.add("pneumaticHelmet.hacking.result.disarm"); } @Override public void addPostHackInfo(Entity entity, List<String> curInfo, EntityPlayer player){ curInfo.add("pneumaticHelmet.hacking.finished.disarmed"); } @Override public int getHackTime(Entity entity, EntityPlayer player){ return 60; } @Override public void onHackFinished(Entity entity, EntityPlayer player){} @Override public boolean afterHackTick(Entity entity){ ((EntityGhast)entity).attackCounter = 0; return true; } }