    001package net.minecraft.entity.ai;
    002
    003import net.minecraft.entity.passive.EntityTameable;
    004
    005public class EntityAITargetNonTamed extends EntityAINearestAttackableTarget
    006{
    007    private EntityTameable theTameable;
    008
    009    public EntityAITargetNonTamed(EntityTameable par1EntityTameable, Class par2Class, float par3, int par4, boolean par5)
    010    {
    011        super(par1EntityTameable, par2Class, par3, par4, par5);
    012        this.theTameable = par1EntityTameable;
    013    }
    014
    015    /**
    016     * Returns whether the EntityAIBase should begin execution.
    017     */
    018    public boolean shouldExecute()
    019    {
    020        return this.theTameable.isTamed() ? false : super.shouldExecute();
    021    }
    022}