A MaterialPart Object is, as the name suggests a combination of a Material and a Part, such as platinum gear.

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.MaterialPart;

Retrieving such an object

Link to retrieving-such-an-object

There are several ways of retreiving such an object, either as list or as single object.

Single Object:

List:

You can retrieve the following information from a MaterialPart:

ZenMethodReturn Type
ZenMethod
getName()
Return Type
string
ZenMethod
getLocalizedName()
Return Type
string
ZenMethod
hasEffect()
Return Type
boolean
ZenMethod
hasOverlay()
Return Type
boolean
ZenMethod
getMaterial()
Return Type
IMaterial
ZenMethod
getPart()
Return Type
IPart
ZenMethod
getItemStack()
Return Type
IItemStack
ZenMethod
getTextureLocation()
Return Type
string
ZenMethod
getCTColor()
Return Type
Color
ZenMethod
getColor()
Return Type
int
ZenMethod
isColorized()
Return Type
boolean
ZenMethod
getData()
Return Type
IMaterialPartData

You can also set the following information of a MaterialPart:

ZenMethodParameterDescription
ZenMethod
setColorized(colorized)
Parameter
boolean colorized
Description
Sets if the item's color code is applied
ZenMethod
setTextureLocation(textureLocation)
Parameter
string textureLocation
Description
Sets the item's texure path. For example, if you want one Gear to look different from the rest.