use of buildcraft.lib.client.model.MutableQuad in project BuildCraft by BuildCraft.
the class RobotStationModel method baseQuads.
private List<MutableQuad> baseQuads() {
if (modelBaseQuads.isEmpty()) {
IModel base = modelBase();
if (base != null) {
Function<ResourceLocation, TextureAtlasSprite> singleTextureFunction = BuildCraftBakedModel.singleTextureFunction(baseSprite);
IFlexibleBakedModel baked = base.bake(ModelRotation.X0_Y0, DefaultVertexFormats.BLOCK, singleTextureFunction);
for (BakedQuad quad : baked.getGeneralQuads()) {
MutableQuad mutable = MutableQuad.create(quad);
modelBaseQuads.add(mutable);
}
}
}
return modelBaseQuads;
}
Aggregations