Mod
Importing the class
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.
import crafttweaker.api.mod.Mod;
Extending Record
Mod extends Record. That means all methods available in Record are also available in Mod
Methods
Return Type: string
// Mod.displayName() as string
myMod.displayName();
Return Type: string
// Mod.id() as string
myMod.id();
Return Type: string
// Mod.version() as string
myMod.version();
Properties
Name | Type | Has Getter | Has Setter | Description |
---|---|---|---|---|
Name displayName | Type string | Has Getter true | Has Setter false | Description No Description Provided |
Name id | Type string | Has Getter true | Has Setter false | Description No Description Provided |
Name version | Type string | Has Getter true | Has Setter false | Description No Description Provided |