use of net.minecraft.client.renderer.model.BakedQuad in project Overloaded by CJ-MC-Mods.
the class ModelUtils method renderQuads.
public static void renderQuads(List<BakedQuad> listQuads) {
Tessellator tessellator = Tessellator.getInstance();
BufferBuilder vertexbuffer = tessellator.getBuilder();
int i = 0;
vertexbuffer.begin(7, DefaultVertexFormats.BLOCK);
for (int j = listQuads.size(); i < j; ++i) {
BakedQuad bakedquad = listQuads.get(i);
// vertexbuffer.putBulkData(bakedquad);
vertexbuffer.color(1, 1, 1, 1);
Vector3i vec3i = bakedquad.getDirection().getNormal();
vertexbuffer.normal((float) vec3i.getX(), (float) vec3i.getY(), (float) vec3i.getZ());
}
tessellator.end();
}
use of net.minecraft.client.renderer.model.BakedQuad in project AgriCraft by AgriCraft.
the class BotanyPotsPlantRenderer method fetchQuads.
protected List<BakedQuad> fetchQuads(IAgriPlant plant, IAgriGrowthStage stage, Direction... sides) {
List<BakedQuad> quads = Lists.newArrayList();
for (Direction dir : sides) {
quads.addAll(AgriPlantModelBridge.getOrBakeQuads(plant, stage, dir));
}
quads.addAll(AgriPlantModelBridge.getOrBakeQuads(plant, stage, null));
return quads;
}
Aggregations