読み込まれたMODについての情報を保持します

Importing the class

Link to 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.

ZenScript
Copy
import crafttweaker.api.mods.ModInfo;
名称TypeHas GetterHas SetterDescription
名称
blocks
Type
stdlib.List<MCBlock>
Has Getter
true
Has Setter
false
Description
Finds all blocks registered for that mod.
名称
displayName
Type
string
Has Getter
true
Has Setter
false
Description
Gets the display name of the mod
名称
エンティティタイプ
Type
stdlib.List<MCEntityType>
Has Getter
true
Has Setter
false
Description
Finds all EntityTypes registered for that mod
名称
fluids
Type
stdlib.List<MCFluid>
Has Getter
true
Has Setter
false
Description
Finds all EntityTypes registered for that mod
名称
items
Type
stdlib.List<IItemStack>
Has Getter
true
Has Setter
false
Description
Gets all known items from that mod <br /> <br /> Does not take "sub items" into account! <br /> That means, that it will e.g. find an enchanted book, but without tags, and only one!
名称
modid
Type
string
Has Getter
true
Has Setter
false
Description
Gets the modid of the mod
名称
名前空間
Type
string
Has Getter
true
Has Setter
false
Description
Gets the namespace of the mod
名称
version
Type
string
Has Getter
true
Has Setter
false
Description
Gets the version of the mod