var renderClass = "jp.ngt.rtm.render.RailPartsRenderer";
importPackage(Packages.org.lwjgl.opengl);
importPackage(Packages.jp.ngt.rtm.render);

function init(par1, par2)
{
	allParts = renderer.registerParts(new Parts("beam", "surface"));
}

function renderRailStatic(tileEntity, posX, posY, posZ, par8, pass)
{
	renderer.renderStaticParts(tileEntity, posX, posY, posZ);
}

function renderRailDynamic(tileEntity, posX, posY, posZ, par8, pass){}

function shouldRenderObject(tileEntity, objName, len, pos)
{
	if((pos % 8 != 0) && (objName === "beam"))
	{
		return false;
	}
	return true;
}
