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 Copyimport mods.contenttweaker.RegisterMaterialPart;
Syntax
Link to syntax
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 Copyfunction(materialPart) {
//DoStuff
return;
}