2013-03-15 03:14:02 +01:00
|
|
|
package net.minecraftforge.client.model.obj;
|
|
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
|
|
2013-03-19 03:37:03 +01:00
|
|
|
import net.minecraft.client.renderer.Tessellator;
|
2013-03-15 03:14:02 +01:00
|
|
|
import cpw.mods.fml.relauncher.Side;
|
|
|
|
import cpw.mods.fml.relauncher.SideOnly;
|
|
|
|
|
|
|
|
@SideOnly(Side.CLIENT)
|
2013-03-21 14:55:28 +01:00
|
|
|
public class GroupObject {
|
2013-03-15 03:14:02 +01:00
|
|
|
|
2013-03-19 20:21:10 +01:00
|
|
|
public String name;
|
|
|
|
public ArrayList<Face> faces = new ArrayList<Face>();
|
|
|
|
|
2013-03-21 14:55:28 +01:00
|
|
|
public GroupObject() {
|
2013-03-19 20:21:10 +01:00
|
|
|
|
|
|
|
name = "";
|
|
|
|
}
|
|
|
|
|
2013-03-21 14:55:28 +01:00
|
|
|
public GroupObject(String name) {
|
2013-03-15 03:14:02 +01:00
|
|
|
|
|
|
|
this.name = name;
|
|
|
|
}
|
|
|
|
|
2013-03-19 03:37:03 +01:00
|
|
|
public void render(Tessellator tessellator, float scale) {
|
2013-03-19 17:15:09 +01:00
|
|
|
|
2013-03-19 03:37:03 +01:00
|
|
|
for (Face face : faces) {
|
|
|
|
face.render(tessellator, 0F, scale);
|
|
|
|
}
|
|
|
|
}
|
2013-03-19 17:15:09 +01:00
|
|
|
|
2013-03-19 03:37:03 +01:00
|
|
|
public void render(Tessellator tessellator, float textureOffset, float scale) {
|
2013-03-19 17:15:09 +01:00
|
|
|
|
2013-03-19 03:37:03 +01:00
|
|
|
for (Face face : faces) {
|
|
|
|
face.render(tessellator, textureOffset, scale);
|
|
|
|
}
|
|
|
|
}
|
2013-03-15 03:14:02 +01:00
|
|
|
}
|