Solved Entity remove question

Discussion in 'Plugin Development' started by pookeythekid, Dec 21, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    pookeythekid

    Just had a simple question about the efficiency of removing entities. I saw a thread about CreatureSpawnEvents that said removing a ton of entities was super bad for the server because the trashed entities still took up a bunch of memory. I suppose it's not as bad of a case compared to command-spawned ocelots, but here's my question: does setting a creature's health to 0 lead to less memory usage than using creature.remove()? Or does Minecraft remove dead creatures in the exact same manner?
     
    Last edited: Dec 21, 2014
  2. Offline

    Tecno_Wizard

    @pookeythekid, it literally does the same thing except the health set will cause the death animation while remove will not.
     
  3. Offline

    pookeythekid

Thread Status:
Not open for further replies.

Share This Page