类 LivingPackSizeEvent

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

public class LivingPackSizeEvent extends LivingEvent
  • 字段详细资料

    • maxPackSize

      private int maxPackSize
  • 构造器详细资料

    • LivingPackSizeEvent

      public LivingPackSizeEvent(Mob entity)
  • 方法详细资料

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