Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void mapBlocks() {
- ModelLoader.setCustomStateMapper(RoWTracks.blockTrackStraight, tracksMapper);
- }
- public static StateMapperBase tracksMapper = new StateMapperBase() {
- @Override
- protected ModelResourceLocation getModelResourceLocation(IBlockState iBlockState) {
- if (iBlockState.getBlock() instanceof BlockTrackBase)
- return ModelTrackStraight.modelResourceLocation;
- else
- return null;
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement