Advertisement
Naitenne

ProxyClient. mapBlocks called in preInit.

Aug 12th, 2016
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.43 KB | None | 0 0
  1. public static void mapBlocks() {
  2.         ModelLoader.setCustomStateMapper(RoWTracks.blockTrackStraight, tracksMapper);
  3.     }
  4.  
  5.     public static StateMapperBase tracksMapper = new StateMapperBase() {
  6.         @Override
  7.         protected ModelResourceLocation getModelResourceLocation(IBlockState iBlockState) {
  8.             if (iBlockState.getBlock() instanceof BlockTrackBase)
  9.                 return ModelTrackStraight.modelResourceLocation;
  10.             else
  11.                 return null;
  12.         }
  13.     };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement