How can i do to set a player in fire ? To modifying an entity ?

Everything is in the title. x)
For the entities, how can i modify the “goal” of an entity ? Like the PathfinderGoals in Bukkit.

player.offer(Keys.FIRE_TICKS, ???);
agent.setTarget(???);

That’s waht i needed, thx ^^