FriedrichLP

Untitled

Nov 1st, 2017
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. package friedrichlp.core.proxy;
  2.  
  3. import friedrichlp.core.init.ModBlocks;
  4. import friedrichlp.core.init.ModItems;
  5. import net.minecraft.client.renderer.block.model.ModelResourceLocation;
  6. import net.minecraft.util.ResourceLocation;
  7. import net.minecraftforge.client.model.ModelLoader;
  8. import net.minecraftforge.client.model.obj.OBJLoader;
  9. import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
  10.  
  11. public class ClientProxy implements CommonProxy {
  12.  
  13. @Override
  14. public void init() {
  15. ModItems.registerRenders();
  16. ModBlocks.registerRenders();
  17. }
  18.  
  19. @Override
  20. public void preInit(FMLPreInitializationEvent event) {
  21. OBJLoader.INSTANCE.addDomain("110core");
  22. ModelLoader.setCustomModelResourceLocation(ModBlocks.itemHektometer, 0, new ModelResourceLocation(new ResourceLocation("110core", "blockHektometer"), null));
  23.  
  24. }
  25.  
  26. }
Add Comment
Please, Sign In to add comment