BefriendMobs Framework 旨在帮助模组开发者轻松创建与生物建立友好关系(或驯服)的功能,无论这些生物的类层次结构如何。
例如,大多数原版可驯服的生物(如狼)都继承自 TamableMob 类。如果你想让敌对生物(如僵尸)变得友好或可驯服,仅使用原版 API 可能会变得复杂。此时,你可以借助 BefriendMobs 轻松创建 Zombie(或其他任何扩展自 Mob 的类)的子类,而无需使用任何原版的 TamableMob 接口,也无需考虑现有生物的类层次结构。
注意:此库仍在开发中,API 可能会在更新时发生变化,因此目前不建议用于开发。如果必须使用,建议在模组中指定具体的库版本,而不是提供一个版本范围。
Github:
参考依赖此模组的示例:
早期版本请参见:
欢迎提出更多功能请求,特别是当你想要插入代码的位置没有提供事件,或者你期望可变的属性被硬编码时。
QQ 群号:336794947(中文)
BefriendMobs Framework is intended to help modders easily create features of befriending (or say taming) mobs and friendly mobs despite their type hierarchy.
For example, most vanilla tamable mobs (e.g. wolf) inherit TamableMob class. If you want to make hostile mobs (e.g. Zombie) friendly or tamed, only using vanilla API it may become complex. Then you can easily create a subclass of Zombie (or anything else extends Mob) with BefriendMobs without using any vanilla TamableMob interfaces, and without considering about the type hierarchy of the existing mobs.
Note: This lib is still in development and the API may change on update, so it's not recommended to use this lib for development NOW. If it must be used, it's recommended to specify the lib version in the mod instead of giving a range.
Github:
For example depending mod, see:
For earlier versions, see:
It's always welcomed to request for more features, especially when position where you want to insert code doesn't provide an event, or properties you expect to be variable is hard-coded.
QQ Group ID: 336794947 (Chinese language)
评论 0
登录后参与评分
还没有评论,来抢沙发吧