public class LivingPackSizeEvent extends LivingEvent
LivingEvent.LivingJumpEvent, LivingEvent.LivingUpdateEvent
EntityEvent.CanUpdate, EntityEvent.EnteringChunk, EntityEvent.EntityConstructing
Event.HasResult, Event.Result
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
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
public LivingPackSizeEvent(EntityLiving entity)
public int getMaxPackSize()
public void setMaxPackSize(int maxPackSize)