public class LivingPackSizeEvent extends LivingEvent
LivingEvent.LivingJumpEvent, LivingEvent.LivingUpdateEventEntityEvent.CanUpdate, EntityEvent.EnteringChunk, EntityEvent.EntityConstructing, EntityEvent.EyeHeight| Modifier and Type | Field and Description |
|---|---|
private int |
maxPackSize |
| Constructor and Description |
|---|
LivingPackSizeEvent(MobEntity 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) |
getEntityLivinggetEntitypublic LivingPackSizeEvent(MobEntity entity)
public int getMaxPackSize()
public void setMaxPackSize(int maxPackSize)