Class LivingPackSizeEvent

    • Field Detail

      • maxPackSize

        private int maxPackSize
    • 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)