001package net.minecraftforge.event.entity.living;
002
003import net.minecraft.entity.EntityLiving;
004import net.minecraftforge.event.Event.HasResult;
005
006@HasResult
007public class LivingPackSizeEvent extends LivingEvent
008{
009    /**
010     * This event is fired when the spawning system determines the
011     * maximum amount of the selected entity that can spawn at the same 
012     * time.
013     *  
014     * If you set the result to 'ALLOW', it means that you want to return
015     * the value of maxPackSize as the maximum pack size for current entity.
016     */
017    public int maxPackSize;
018    
019    public LivingPackSizeEvent(EntityLiving entity)
020    {
021        super(entity);
022    }
023}