Advertisement
Guest User

Untitled

a guest
Sep 11th, 2017
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. private static IBakedModel loadModel()
  2. {
  3. try
  4. {
  5. final IModel mod = ModelLoaderRegistry.getModel(new ResourceLocation(Constants.MOD_ID, "models/block/blockInfoPoster"));
  6. final IModelState state = mod.getDefaultState();
  7. return mod.bake(state, DefaultVertexFormats.BLOCK, ModelLoader.defaultTextureGetter());
  8. }
  9. catch (final Exception e)
  10. {
  11. Log.getLogger().error("Error loading infoPoster texture", e);
  12. }
  13. return null;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement