public class LivingPackSizeEvent extends LivingEvent
LivingEvent.LivingJumpEvent, LivingEvent.LivingUpdateEvent
EntityEvent.CanUpdate, EntityEvent.EnteringChunk, EntityEvent.EntityConstructing
Constructor and Description |
---|
LivingPackSizeEvent(EntityLiving entity) |
Modifier and Type | Method and Description |
---|---|
int |
getMaxPackSize()
This event is fired when the spawning system determines the
maximum amount of the selected entity that can spawn at the same
time.
|
void |
setMaxPackSize(int maxPackSize) |
getEntityLiving
getEntity
public LivingPackSizeEvent(EntityLiving entity)
public int getMaxPackSize()
public void setMaxPackSize(int maxPackSize)