use of forestry.core.models.baker.ModelBaker in project Binnie by ForestryMC.
the class ModelDefaultETLeaves method bakeModel.
@Override
protected IBakedModel bakeModel(IBlockState state, ETTreeDefinition key, BlockETDefaultLeaves block) {
if (key == null) {
return null;
}
IModelBaker baker = new ModelBaker();
if (!blockClass.isInstance(block)) {
return null;
}
BlockETDefaultLeaves bBlock = blockClass.cast(block);
// baker.setRenderBounds(Block.FULL_BLOCK_AABB);
bakeBlock(bBlock, key, baker, false);
blockModel = baker.bakeModel(false);
onCreateModel(blockModel);
return blockModel;
}
Aggregations