Импорт класса

Link to импорт-класса

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.mod.Mod;

Extending Record

Link to extending-record

Mod extends Record. That means all methods available in Record are also available in Mod

Name: displayName

Return Type: string

ZenScript
Copy
// Mod.displayName() as string

myMod.displayName();

Name: id

Return Type: string

ZenScript
Copy
// Mod.id() as string

myMod.id();

Name: version

Return Type: string

ZenScript
Copy
// Mod.version() as string

myMod.version();

Свойства

Link to свойства

НазваниеТипИмеет GetterИмеет SetterОписание
Название
displayName
Тип
string
Имеет Getter
true
Имеет Setter
false
Описание
No Description Provided
Название
id
Тип
string
Имеет Getter
true
Имеет Setter
false
Описание
No Description Provided
Название
version
Тип
string
Имеет Getter
true
Имеет Setter
false
Описание
No Description Provided