Allow Despawn 
To use this event use the following import:
groovy
import net.minecraftforge.event.entity.living.LivingSpawnEvent.AllowDespawnSub-Classes 
This event extends the following events and can use all their methods and fields: 
LivingSpawnEvent, LivingEvent, EntityEvent
Methods 
groovy
boolean hasResult()