There are plenty of ways to restore your health in Minecraft. You could set the game's difficulty to peaceful and your health will restore on its own over time. Or the easiest of all is to make your player eat food. Much better if the food is cooked. Cooked food means more food units, the more units the faster health restoration. And there are golden apples and certain potions that also help restore your health.