Class LivingPackSizeEvent

java.lang.Object
net.minecraftforge.eventbus.api.Event

public class LivingPackSizeEvent extends LivingEvent
  • Field Details

    • maxPackSize

      private int maxPackSize
  • Constructor Details

    • LivingPackSizeEvent

      public LivingPackSizeEvent(MobEntity entity)
  • Method Details

    • 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)