Updated Modules:Setup (markdown)

2024-01-10 03:35:36 +09:00
parent eb967b02a1
commit 75a6cba056

@@ -46,6 +46,8 @@ A module may have one Jar file. Two or more Jars are not allowed: if your module
## Contents
Except for the [[retextures|Modules:Retextures]], there are *technically* no strict directory structure required, certain ingame elements loaded by the engine expects certain paths.
A [sample project](https://github.com/curioustorvald/terrarum-sample-module-project) is available!
### Entry Point
If your module has a Jar file, it must have a single class that extends `net.torvald.terrarum.ModuleEntryPoint`: such class is called an Entry Point. The Entry Point initialises and installs your module to the game. What the Entry Point does to load your module depends on you, but the engine provides the **Modmgr** for installing ingame elements to the game.