src/main/java/ivorius/invinciblehamster/entities/EntityAIPanicInvincibleHamster.java
public boolean shouldExecute()
    {
        if (this.theEntityCreature.getAITarget() == null || theEntityCreature.isTamed())
        {
            return false;
        }
        else
        {
            Vec3 var1 = RandomPositionGenerator.findRandomTarget(this.theEntityCreature, 5, 4);

            if (var1 == null)
            {
                return false;
            }
            else
            {
                this.randPosX = var1.xCoord;
                this.randPosY = var1.yCoord;
                this.randPosZ = var1.zCoord;
                return true;
            }
        }
    }
/**
     * Returns whether the EntityAIBase should begin execution.
     */
Returns whether the EntityAIBase should begin execution.
Returns whether the EntityAIBase should begin execution .
public boolean shouldExecute()
    {
        if (this.theEntityCreature.getAITarget() == null || theEntityCreature.isTamed())
        {
            return false;
        }
        else
        {
            Vec3 var1 = RandomPositionGenerator.findRandomTarget(this.theEntityCreature, 5, 4);
            if (var1 == null)
            {
                return false;
            }
            else
            {
                this.randPosX = var1.xCoord;
                this.randPosY = var1.yCoord;
                this.randPosZ = var1.zCoord;
                return true;
            }
        }
    }
public boolean shouldExecute ( ) { if ( this . theEntityCreature . getAITarget ( ) == null || theEntityCreature . isTamed ( ) ) { return false ; } else { Vec3 var1 = RandomPositionGenerator . findRandomTarget ( this . theEntityCreature , 5 , 4 ) ; if ( var1 == null ) { return false ; } else { this . randPosX = var1 . xCoord ; this . randPosY = var1 . yCoord ; this . randPosZ = var1 . zCoord ; return true ; } } }
Returns whether the EntityAIBase should begin execution.
Returns whether the EntityAIBase should begin execution .