ModInfo
Holds information about a loaded 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.mods.ModInfo;Properties
| Name | Type | Has Getter | Has Setter | Description | 
|---|---|---|---|---|
| Nameblocks | Typestdlib.List<MCBlock> | Has Gettertrue | Has Setterfalse | DescriptionFinds all blocks registered for that mod. | 
| NamedisplayName | Typestring | Has Gettertrue | Has Setterfalse | DescriptionGets the display name of the mod | 
| Nameentitytypes | Typestdlib.List<MCEntityType> | Has Gettertrue | Has Setterfalse | DescriptionFinds all EntityTypes registered for that mod | 
| Namefluids | Typestdlib.List<MCFluid> | Has Gettertrue | Has Setterfalse | DescriptionFinds all EntityTypes registered for that mod | 
| Nameitems | Typestdlib.List<IItemStack> | Has Gettertrue | Has Setterfalse | DescriptionGets 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! | 
| Namemodid | Typestring | Has Gettertrue | Has Setterfalse | DescriptionGets the modid of the mod | 
| Namenamespace | Typestring | Has Gettertrue | Has Setterfalse | DescriptionGets the namespace of the mod | 
| Nameversion | Typestring | Has Gettertrue | Has Setterfalse | DescriptionGets the version of the mod |