Haltet Informationen über einen geladenen Mod

Diese Klasse importieren

Link to diese-klasse-importieren

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;
NameTypeHas GetterHas SetterBeschreibung
Name
blocks
Type
stdlib.List<MCBlock>
Has Getter
true
Has Setter
false
Beschreibung
Finds all blocks registered for that mod.
Name
displayName
Type
string
Has Getter
true
Has Setter
false
Beschreibung
Gets the display name of the mod
Name
entitytypes
Type
stdlib.List<MCEntityType>
Has Getter
true
Has Setter
false
Beschreibung
Finds all EntityTypes registered for that mod
Name
fluids
Type
stdlib.List<MCFluid>
Has Getter
true
Has Setter
false
Beschreibung
Finds all EntityTypes registered for that mod
Name
items
Type
stdlib.List<IItemStack>
Has Getter
true
Has Setter
false
Beschreibung
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!
Name
modid
Type
string
Has Getter
true
Has Setter
false
Beschreibung
Gets the modid of the mod
Name
namespace
Type
string
Has Getter
true
Has Setter
false
Beschreibung
Gets the namespace of the mod
Name
version
Type
string
Has Getter
true
Has Setter
false
Beschreibung
Gets the version of the mod