package minefantasy.entity.ai.hound;
import minefantasy.entity.EntityHound;
import net.minecraft.entity.ai.EntityAINearestAttackableTarget;
public class EntityAIHoundAttackPlayer extends EntityAINearestAttackableTarget
{
private EntityHound theTameable;
public EntityAIHoundAttackPlayer(EntityHound dog, Class enemy, int chance, boolean chase)
{
super(dog, enemy, chance, chase);
this.theTameable = dog;
}
/**
* Returns whether the EntityAIBase should begin execution.
*/
public boolean shouldExecute()
{
return theTameable.attackPlayer ? super.shouldExecute() : false;
}
}