Package appeng.api.parts
Class PartModels
java.lang.Object
appeng.api.parts.PartModels
Allows registration of part models that can then be used in
IPart.getStaticModels()
.
The models will automatically be added as dependencies to the model of the cable bus, and registered with
ModelEvent.RegisterAdditional
.-
Method Summary
Modifier and TypeMethodDescriptionstatic void
registerModels
(Collection<net.minecraft.resources.ResourceLocation> partModels) Allows registration of part models that can then be used inIPart.getStaticModels()
.static void
registerModels
(net.minecraft.resources.ResourceLocation... partModels) Convenience overload ofregisterModels(Collection)
-
Method Details
-
registerModels
Allows registration of part models that can then be used inIPart.getStaticModels()
.Models can be registered multiple times without causing issues.
This method must be called during the pre-init phase (as part of your plugin's constructor).
-
registerModels
public static void registerModels(net.minecraft.resources.ResourceLocation... partModels) Convenience overload ofregisterModels(Collection)
-