Home Getting Started With Scripts Using this wiki Commands CTGUI Global functions Bracket Handlers

MaterialPartLocalizedNameSupplier

You can create a MaterialPartLocalizedNameSupplier form a MaterialPart object, which will then be used whenever requested.

Importing the class

Should you need to import he class, here you go:

script.zs
import mods.contenttweaker.MaterialPartLocalizedNameSupplier;

Static methods

Static methods can be called upon the package, not upon instances of the class.

script.zs
//mods.contenttweaker.MaterialPartLocalizedNameSupplier.create(IMaterialPart materialPart);
mods.contenttweaker.MaterialPartLocalizedNameSupplier.create(myMaterialPart);