A Material is what an item is made of, for example Platinum.

Importing the package

Link to importing-the-package

It might be required for you to import the package if you encounter any issues, so better be safe than sorry and add the import.
import mods.contenttweaker.Material;

Retrieving such an object

Link to retrieving-such-an-object

You can either retrieve an existing Material using the MaterialSystem or create an entirely new one using the Material Builder

You can retrieve the following information from a Material:

ZenMethodReturn TypeDescription
ZenMethod
getName()
Return Type
string
Description
Returns the Material's name
ZenMethod
getColor()
Return Type
int
Description
Returns the Material's color
ZenMethod
isHasEffect()
Return Type
boolean
Description
Returns if the material has the glowing effect
ZenMethod
getUnlocalizedName()
Return Type
string
Description
Returns the Material's unlocalized name

You can either register parts using the part object or it's name string.
You can also either register a single part or multiple at once.
So you got 4 options in total:

ZenScript
Copy
registerParts(String[] partNames);
registerParts(IPart[] parts);


registerPart(String partName);
registerPart(IPart part);

The registerPart Methods return a single MaterialPart object.
The registerParts Methods return a MaterialPart list.