Class PartModels

java.lang.Object
appeng.api.parts.PartModels

public final class PartModels extends Object
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

invalid reference
ModelLoader#addSpecialModel(ResourceLocation)
.
  • Method Details

    • registerModels

      public static void registerModels(Collection<net.minecraft.resources.ResourceLocation> partModels)
      Allows registration of part models that can then be used in IPart.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 of registerModels(Collection)