How to use in my fabric mod #128
Replies: 1 comment
-
Currently there is no written documentation, so the best way to see how to use malilib for your mods is to look at for example Litematica, MiniHUD or Tweakeroo. For the most part you just need to create a class that implements So for example in Litematica: And then you register that init handler in your main mod initializer like so: And you can look at those implementations and interfaces to see how they work. Also note that there is the big malilib rewrite coming at some point. It's getting pretty close to being "usable for the mass audience", but I'm not sure when I'll actually release it for the general player base on CurseForge or Modrinth. So depending on your mod's development timeline, it may or may not make sense to target that new malilib code instead. It simplifies a lot of things and reduces the amount of unnecessary boilerplate code. And it's a lot more flexible in many ways, for example properly supporting custom config types without having to extend and override like half of the malilib config screen stuff like in the current old code... :pain: |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
All reactions