Advertisement
Guest User

Untitled

a guest
Nov 17th, 2017
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. ModelLoader.setCustomStateMapper(ModBlocks.blockPaperwall, new StateMap.Builder().withName(BlockPaperwall.VARIANT).build());
  2.  
  3. for(final BlockPaperwall.EnumType type: BlockPaperwall.EnumType.values())
  4. {
  5. ModelLoader.setCustomModelResourceLocation(new ItemBlock(ModBlocks.blockPaperwall), type.getMetadata(),
  6. new ModelResourceLocation(Constants.MOD_ID, BlockPaperwall.BLOCK_NAME + "_" + type.getName()));
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement