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
|
|
|
|
2016-01-01 00:19:44 +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
|
|
|
|
{
|
|
|
|
|
2015-10-08 15:42:42 +02:00
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
2015-10-08 15:42:42 +02:00
|
|
|
public int getColor()
|
|
|
|
{
|
2015-12-24 02:10:22 +01:00
|
|
|
return this.color;
|
2015-10-08 15:42:42 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
public EnumFacing getFace()
|
|
|
|
{
|
2015-12-24 02:10:22 +01:00
|
|
|
return this.face;
|
2015-10-08 15:42:42 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
public Vector3f getFrom()
|
|
|
|
{
|
2015-12-24 02:10:22 +01:00
|
|
|
return this.from;
|
2015-10-08 15:42:42 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
public Vector3f getTo()
|
|
|
|
{
|
2015-12-24 02:10:22 +01:00
|
|
|
return this.to;
|
2015-10-08 15:42:42 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
public TextureAtlasSprite getSpite()
|
|
|
|
{
|
2015-12-24 02:10:22 +01:00
|
|
|
return this.spite;
|
2015-10-08 15:42:42 +02:00
|
|
|
}
|
|
|
|
|
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
|
|
|
}
|