FennecLib
FennecLib is a lightweight shared library for the MaidTown mod ecosystem and Touhou Little Maid extensions.
It provides reusable framework components for maid work behaviors and user interfaces, helping other mods implement complex features without duplicating common code.
Features
Weighted Behavior Framework
FennecLib provides a flexible weighted behavior system for selecting and executing child behaviors.
The framework includes:
WeightedPickerfor weighted random selectionWeightedChildBehaviorfor managing weighted child behaviors- Support for organizing multiple possible actions by priority and probability
- Reusable behavior components for maid work systems
- A foundation for more dynamic and configurable AI behavior
This system is designed for mods that need maids to choose between different tasks based on weights, conditions, priorities, or available resources.
Reusable UI Components
FennecLib also provides reusable GUI and screen components for NeoForge mods.
Available components include:
C_Containercontainer screen templatesW_EntryListentry list widgetsW_StatBarstatistic and progress barsW_Scrollbarscroll bar components- Shared layout and interaction helpers
- Common UI elements for project management and status displays
These components are intended to make it easier for dependent mods to create consistent and functional interfaces.
Intended Use
FennecLib is primarily a developer library and does not add a standalone gameplay system by itself.
It is used by other projects in the MaidTown ecosystem, including MaidMoreWork, to provide common behavior and UI functionality for Touhou Little Maid-based systems.
Installing FennecLib alone may not add noticeable gameplay content. It is required by mods that use its APIs and framework components.
Dependencies
- Minecraft 26.1.2 or newer
- NeoForge 26.1.2 or newer
- Touhou Little Maid 2.0.0 or newer
Installation
Install the required dependencies first, then place the FennecLib .jar file into your Minecraft mods folder.
FennecLib is currently under active development and its APIs may be expanded or adjusted as the MaidTown mod ecosystem grows.
FennecLib 是 MaidTown 模组系列和 Touhou Little Maid 扩展模组使用的轻量级基础库。
它为女仆工作行为和用户界面提供可复用的框架组件,帮助其他模组实现复杂功能,避免重复编写通用代码。
功能
加权行为框架
FennecLib 提供了灵活的加权行为系统,用于选择和执行不同的子行为。
主要包括:
- 使用
WeightedPicker实现加权随机选择 - 使用
WeightedChildBehavior管理加权子行为 - 支持根据优先级、概率和条件组织多个行为
- 为女仆工作系统提供可复用的行为组件
- 为更加动态和可配置的 AI 行为提供基础
该系统适用于需要女仆根据任务权重、环境条件、资源状态或优先级选择不同工作的模组。
可复用 UI 组件
FennecLib 还为 NeoForge 模组提供了可复用的 GUI 和界面组件。
目前包括:
C_Container容器界面模板W_EntryList条目列表控件W_StatBar统计条和进度条控件W_Scrollbar滚动条控件- 通用布局和交互辅助工具
- 用于工程管理和状态显示的通用 UI 元素
这些组件可以帮助依赖模组快速创建风格统一且功能完整的界面。
项目定位
FennecLib 主要面向开发者,本身不会直接添加完整的独立玩法系统。
它被 MaidTown 模组系列中的其他项目使用,例如 MaidMoreWork,用于提供 Touhou Little Maid 相关的行为框架和界面功能。
单独安装 FennecLib 可能不会带来明显的游戏内容,它主要为使用其 API 和框架组件的其他模组提供支持。
依赖
- Minecraft 26.1.2 或更高版本
- NeoForge 26.1.2 或更高版本
- Touhou Little Maid 2.0.0 或更高版本
安装
请先安装所有必需依赖,然后将 FennecLib 的 .jar 文件放入 Minecraft 的 mods 文件夹中。
FennecLib 目前仍在积极开发中,随着 MaidTown 模组系列的发展,其 API 和功能可能会继续扩展或调整。

