Search in sources :

Example 1 with IBuildingItemsProvider

use of buildcraft.core.builders.IBuildingItemsProvider in project BuildCraft by BuildCraft.

the class RenderBuildingItems method render.

public void render(TileEntity tile, double x, double y, double z) {
    IBuildingItemsProvider provider = (IBuildingItemsProvider) tile;
    GL11.glPushMatrix();
    GL11.glTranslated(x, y, z);
    GL11.glTranslated(-tile.getPos().getX(), -tile.getPos().getY(), -tile.getPos().getZ());
    if (provider.getBuilders() != null) {
        synchronized (provider.getBuilders()) {
            for (BuildingItem i : provider.getBuilders()) {
                doRenderItem(i, 1.0F);
            }
        }
    }
    GL11.glPopMatrix();
}
Also used : BuildingItem(buildcraft.core.builders.BuildingItem) IBuildingItemsProvider(buildcraft.core.builders.IBuildingItemsProvider)

Aggregations

BuildingItem (buildcraft.core.builders.BuildingItem)1 IBuildingItemsProvider (buildcraft.core.builders.IBuildingItemsProvider)1