Class LivingPackSizeEvent
- java.lang.Object
-
- net.minecraftforge.eventbus.api.Event
-
- net.minecraftforge.event.entity.EntityEvent
-
- net.minecraftforge.event.entity.living.LivingEvent
-
- net.minecraftforge.event.entity.living.LivingPackSizeEvent
-
public class LivingPackSizeEvent extends LivingEvent
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.minecraftforge.event.entity.living.LivingEvent
LivingEvent.LivingJumpEvent, LivingEvent.LivingUpdateEvent, LivingEvent.LivingVisibilityEvent
-
Nested classes/interfaces inherited from class net.minecraftforge.event.entity.EntityEvent
EntityEvent.CanUpdate, EntityEvent.EnteringChunk, EntityEvent.EntityConstructing, EntityEvent.Size
-
-
Field Summary
Fields Modifier and Type Field Description private int
maxPackSize
-
Constructor Summary
Constructors Constructor Description LivingPackSizeEvent(MobEntity entity)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
Methods inherited from class net.minecraftforge.event.entity.living.LivingEvent
getEntityLiving
-
Methods inherited from class net.minecraftforge.event.entity.EntityEvent
getEntity
-
-
-
-
Constructor Detail
-
LivingPackSizeEvent
public LivingPackSizeEvent(MobEntity entity)
-
-
Method Detail
-
getMaxPackSize
public 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. If you set the result to 'ALLOW', it means that you want to return the value of maxPackSize as the maximum pack size for current entity.
-
setMaxPackSize
public void setMaxPackSize(int maxPackSize)
-
-