Applied-Energistics-2-tiler.../src/main/java/appeng/client/render/SMFace.java

75 lines
1.1 KiB
Java
Raw Normal View History

2015-12-24 02:03:16 +01:00
2015-06-16 02:44:59 +02:00
package appeng.client.render;
2015-12-24 02:03:16 +01:00
import org.lwjgl.util.vector.Vector3f;
2015-06-16 02:44:59 +02:00
import net.minecraft.client.renderer.texture.TextureAtlasSprite;
import net.minecraft.util.EnumFacing;
2015-12-24 02:03:16 +01:00
2015-06-16 02:44:59 +02:00
public class SMFace
{
private final EnumFacing face;
private final boolean isEdge;
private final Vector3f to;
private final Vector3f from;
private final float[] uv;
private final TextureAtlasSprite spite;
private final int color;
2015-06-16 02:44:59 +02:00
public SMFace(
2015-12-24 02:03:16 +01:00
final EnumFacing face, final boolean isEdge,
2015-09-30 14:24:40 +02:00
final int color,
final Vector3f to,
final Vector3f from,
final float[] defUVs2,
final TextureAtlasSprite iconUnwrapper )
2015-06-16 02:44:59 +02:00
{
this.color = color;
2015-12-24 02:03:16 +01:00
this.face = face;
2015-06-16 02:44:59 +02:00
this.isEdge = isEdge;
2015-12-24 02:03:16 +01:00
this.to = to;
this.from = from;
2015-06-16 02:44:59 +02:00
this.uv = defUVs2;
this.spite = iconUnwrapper;
}
public int getColor()
{
2015-12-24 02:10:22 +01:00
return this.color;
}
public EnumFacing getFace()
{
2015-12-24 02:10:22 +01:00
return this.face;
}
public Vector3f getFrom()
{
2015-12-24 02:10:22 +01:00
return this.from;
}
public Vector3f getTo()
{
2015-12-24 02:10:22 +01:00
return this.to;
}
public TextureAtlasSprite getSpite()
{
2015-12-24 02:10:22 +01:00
return this.spite;
}
2015-12-24 02:05:39 +01:00
public boolean isEdge()
{
2015-12-24 02:10:22 +01:00
return this.isEdge;
2015-12-24 02:05:39 +01:00
}
2015-06-16 02:44:59 +02:00
}