use of gregtech.common.blocks.surfacerock.TileEntitySurfaceRock in project GregTech by GregTechCE.
the class StoneRenderer method getActualModel.
private static CCModel getActualModel(IBlockAccess world, BlockPos pos) {
TileEntitySurfaceRock tileEntity = BlockSurfaceRockNew.getTileEntity(world, pos);
if (tileEntity != null) {
if (tileEntity.cachedModel == null) {
Random random = new Random(MathHelper.getPositionRandom(pos));
tileEntity.cachedModel = generateModel(random);
}
return (CCModel) tileEntity.cachedModel;
}
return placeholderModels[0];
}
Aggregations