Mods

Haltet Informationen über alle registrierten Mods bereit. Kann mit dem globalen Schlüsselwort loadedMods erreicht werden

Diese Klasse importieren

It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.

ZenScript
Copy
import crafttweaker.api.mods.Mods;

Methoden

getMod

Gets a specific mod

Return Type: ModInfo

ZenScript
Copy
Mods.getMod(modid as string) as ModInfo
loadedMods.getMod("minecraft");
ParameterTypeBeschreibung
modidstringNo Description Provided

isModLoaded

Checks if a mod is laoded

Return Type: boolean

ZenScript
Copy
Mods.isModLoaded(modid as string) as boolean
loadedMods.isModLoaded("minecraft");
ParameterTypeBeschreibung
modidstringmodid zu prüfen

Properties

NameTypeHas GetterHas Setter
modsstdlib.List<ModInfo>truefalse
sizeinttruefalse