Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package net.machinemuse.powersuits.client.render.item;
- import net.machinemuse.numina.general.MuseLogger;
- import net.machinemuse.powersuits.common.ModCompatibility;
- import net.minecraft.client.model.ModelBiped;
- public class ArmorModelInstance
- {
- private static ModelBiped instance = null;
- public static ModelBiped getInstance()
- {
- if (instance == null) {
- if ((ModCompatibility.isRenderPlayerAPILoaded()) && (ModCompatibility.isSmartRendererLoaded())) {
- try
- {
- MuseLogger.logInfo("Attempting to load SmartMoving armor model.");
- instance = (ModelBiped)Class.forName("net.machinemuse.powersuits.client.render.item.SMovingArmorModel").asSubclass(ModelBiped.class).newInstance();
- MuseLogger.logInfo("SmartMoving armor model loaded successfully!");
- }
- catch (Exception e)
- {
- MuseLogger.logInfo("Smart Moving armor model did not load successfully. Either Smart Moving is not installed, or there was another problem.");
- instance = VanillaArmorModel.getInstance();
- }
- } else {
- instance = VanillaArmorModel.getInstance();
- }
- }
- return instance;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement