SHARE
TWEET

Untitled

a guest May 26th, 2019 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     @SubscribeEvent
  2.     @SideOnly(Side.CLIENT)
  3.     public static void onModelRegister(ModelRegistryEvent event) {
  4.        
  5.         Main.proxy.registerItemRenderer(Item.getItemFromBlock(BlockInit.ALUNITE_CHEST),0, "inventory");
  6.        
  7.         for(Item item : ItemInit.ITEMS) {
  8.             if(item instanceof IHasModel) {
  9.                 ((IHasModel)item).registerModels();
  10.             }
  11.         }
  12.        
  13.         for(Block block : BlockInit.BLOCKS) {
  14.             if(block instanceof IHasModel) {
  15.                 ((IHasModel)block).registerModels();
  16.             }
  17.         }
  18.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top