Minecraft wiki entry for Farmland, associated text: The player or any mob jumps/falls on the block (with a greater chance as falling speed increases).
In Java Edition, mobs smaller than 0.512 cubic block cannot destroy farmland. This includes parrots, rabbits, chickens, bats, ocelots, cats, wolves, foxes, cave spiders, endermites, silverfish, baby mobs, small slimes, and small magma cubes.
A piston arm is extended over a farmland block.
A piston pushes a farmland block down.
A solid block covers the top surface of the farmland block such as when pumpkin or melon blocks appear, or when trees grow.
An enderman teleports directly on top of a farmland block.
Snow falls directly on top of a farmland block.
A ravager steps on it.