Minecraft wiki entry for Hoglin, associated text: Feeding crimson fungi to a hoglin prevents it from despawning, no matter the breeding is successful or not. The hoglin produced by breeding does not despawn either.