Just look in the "src/API" folder and look at the source of the API files, but I think what you can do is treat the player as an entity (since it is), and modify the speedX, speedY and speedZ variables of the entity when the player is walking.