Translations:Add-on Getting Started/32/en
From DragonMineZ Wiki
- Hard dependency: your add-on requires DMZ to be present (
mandatory=trueinmods.toml). This is the simplest option, but your add-on won't load without DMZ. - Soft (optional) dependency: your add-on works on its own and only turns on DMZ-specific behavior when DMZ is detected. DMZ uses this pattern itself for its optional integrations (
common/compat/WeaponLevelingCompat.java,common/compat/ApotheosisCompat.java): checkModList.get().isLoaded("dragonminez")once, and keep every class that imports DMZ code behind that check. This is recommended if your add-on has value without DMZ installed. See Optional dependency pattern.