Advertisement
Guest User

Untitled

a guest
Mar 9th, 2016
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.98 KB | None | 0 0
  1. package net.theviolentsquirrels.questsystem.renderer.block;
  2.  
  3. import net.minecraft.client.resources.model.ModelResourceLocation;
  4. import net.minecraft.item.Item;
  5. import net.minecraftforge.client.model.ModelLoader;
  6. import net.minecraftforge.fml.common.FMLLog;
  7. import net.theviolentsquirrels.questsystem.block.BlockWallCustom.EnumType;
  8. import net.theviolentsquirrels.questsystem.renderer.ModelManager;
  9.  
  10. public final class                          BlockWallCustomVariants {
  11.  
  12.     public static void                      registerWallVariants(Item blockWallItem) {
  13.         ModelResourceLocation               modelResourceLocation;
  14.  
  15.         modelResourceLocation = ModelManager.INSTANCE.getModelResourceLocation(blockWallItem, "inventory");
  16.         FMLLog.info(modelResourceLocation.toString());
  17.         for (EnumType enumType : EnumType.values()) {
  18.             ModelLoader.setCustomModelResourceLocation(blockWallItem, enumType.getMetadata(), modelResourceLocation);
  19.         }
  20.     }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement