Информация о моде

Link to информация-о-моде

Задерживает информацию о загруженном моде

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

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.mods.ModInfo;

Свойства

Link to свойства

НазваниеТипИмеет GetterИмеет SetterОписание
Название
blocks
Тип
stdlib.List<MCBlock>
Имеет Getter
true
Имеет Setter
false
Описание
Finds all blocks registered for that mod.
Название
displayName
Тип
string
Имеет Getter
true
Имеет Setter
false
Описание
Gets the display name of the mod
Название
типы сущностей
Тип
stdlib.List<MCEntityType>
Имеет Getter
true
Имеет Setter
false
Описание
Finds all EntityTypes registered for that mod
Название
fluids
Тип
stdlib.List<MCFluid>
Имеет Getter
true
Имеет Setter
false
Описание
Finds all EntityTypes registered for that mod
Название
items
Тип
stdlib.List<IItemStack>
Имеет Getter
true
Имеет Setter
false
Описание
Gets all known items from that mod

Does not take "sub items" into account!
That means, that it will e.g. find an enchanted book, but without tags, and only one!
Название
modid
Тип
string
Имеет Getter
true
Имеет Setter
false
Описание
Gets the modid of the mod
Название
пространство имён
Тип
string
Имеет Getter
true
Имеет Setter
false
Описание
Gets the namespace of the mod
Название
version
Тип
string
Имеет Getter
true
Имеет Setter
false
Описание
Gets the version of the mod