Question
I know that mobs are despanwed in earlier versions of the game. I heard that in the new 1.8 update that mobs are no longer despawned or are saved when they are despawned? Is this true? If not is there any thing that suggests that this will be implemented? Thanks.
Answer
From the EntityAnimal
class in EntityAnimal.java
:
protected boolean canDespawn()
{
return false;
}
This should apply to all passive mobs. (I checked, they all extend the EntityAnimal
class.)
Wolves however are interesting:
protected boolean canDespawn()
{
return !isWolfTamed();
}
So this means that tamed wolves do not despawn, while wild wolves do despawn.
It seems that slimes and squid will also despawn. Both classes contain this method:
protected void updateEntityActionState()
<snipped>
despawnEntity();
<snipped>
I didn't see any other references to despawning.
Check more discussion of this question.
No comments:
Post a Comment