IRegisterMaterialPart

Link to iregistermaterialpart

The IRegisterMaterialPart function is a fucntion used to register Material Parts added using a custom PartType.

Importing the package

Link to importing-the-package

If you ever feel the need to import this function's class, here you go:

ZenScript
Copy
import mods.contenttweaker.RegisterMaterialPart;

We have a void function, that takes a Material Part as input.
This is the materialPart that should be registered.
You could for example call the Vanilla Factory at this point, but how proceed form this point is really up to you.

ZenScript
Copy
function(materialPart) {
    //DoStuff
    return;
}