public class Vertex
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Vertex.BottomNorthEast |
static class |
Vertex.BottomNorthWest |
static class |
Vertex.BottomSouthEast |
static class |
Vertex.BottomSouthWest |
static class |
Vertex.TopNorthEast |
static class |
Vertex.TopNorthWest |
static class |
Vertex.TopSouthEast |
static class |
Vertex.TopSouthWest |
Modifier and Type | Field and Description |
---|---|
static int |
BRIGHTNESS_MAX |
Constructor and Description |
---|
Vertex(double x,
double y,
double z) |
Vertex(double x,
double y,
double z,
int rgba,
int brightness) |
Vertex(double x,
double y,
double z,
int rgba,
int brightness,
double u,
double v,
boolean isInitialState) |
Vertex(Vertex vertex) |
Vertex(Vertex vertex,
int rgba,
int brightness) |
Vertex(Vertex vertex,
int rgba,
int brightness,
float u,
float v) |
Modifier and Type | Method and Description |
---|---|
Vertex |
add(double x,
double y,
double z) |
void |
applyMatrix(org.lwjgl.util.vector.Matrix4f transformMatrix) |
java.lang.String |
baseName() |
static double |
clamp(double value) |
static double |
clamp(double value,
double min,
double max) |
Vertex |
factor(float f) |
Vertex |
factorX(float f) |
Vertex |
factorY(float f) |
Vertex |
factorZ(float f) |
int |
getAlpha() |
int[][] |
getAoMatrix(net.minecraftforge.common.util.ForgeDirection offset)
Calculates AoMatrix for a vertex based on the vertex position and the face it belongs.
|
int |
getBrightness() |
int |
getColor() |
int |
getIntX() |
int |
getIntY() |
int |
getIntZ() |
double |
getU() |
double |
getV() |
double |
getX() |
double |
getY() |
double |
getZ() |
void |
interpolateCoord(net.minecraft.util.AxisAlignedBB bounds) |
boolean |
isCorner() |
void |
limit(double min,
double max) |
void |
limitU(float min,
float max) |
void |
limitV(float min,
float max) |
java.lang.String |
name() |
void |
resetState() |
Vertex |
rotateAroundX(double angle) |
Vertex |
rotateAroundX(double angle,
double centerX,
double centerY,
double centerZ) |
Vertex |
rotateAroundY(double angle) |
Vertex |
rotateAroundY(double angle,
double centerX,
double centerY,
double centerZ) |
Vertex |
rotateAroundZ(double angle) |
Vertex |
rotateAroundZ(double angle,
double centerX,
double centerY,
double centerZ) |
Vertex |
scale(float f) |
Vertex |
scale(float f,
double centerX,
double centerY,
double centerZ) |
void |
set(double x,
double y,
double z) |
Vertex |
setAlpha(int alpha) |
Vertex |
setBaseName(java.lang.String name) |
Vertex |
setBrightness(int brightness) |
Vertex |
setColor(int color) |
void |
setInitialState() |
void |
setUV(float u,
float v) |
Vertex |
setX(double x) |
Vertex |
setY(double y) |
Vertex |
setZ(double z) |
Point |
toPoint() |
java.lang.String |
toString() |
public static final int BRIGHTNESS_MAX
public Vertex(double x, double y, double z, int rgba, int brightness, double u, double v, boolean isInitialState)
public Vertex(double x, double y, double z, int rgba, int brightness)
public Vertex(double x, double y, double z)
public Vertex(Vertex vertex)
public Vertex(Vertex vertex, int rgba, int brightness)
public Vertex(Vertex vertex, int rgba, int brightness, float u, float v)
public double getX()
public int getIntX()
public Vertex setX(double x)
public double getY()
public int getIntY()
public Vertex setY(double y)
public double getZ()
public int getIntZ()
public Vertex setZ(double z)
public void set(double x, double y, double z)
public void limit(double min, double max)
public void interpolateCoord(net.minecraft.util.AxisAlignedBB bounds)
public Vertex add(double x, double y, double z)
public Vertex factorX(float f)
public Vertex factorY(float f)
public Vertex factorZ(float f)
public Vertex factor(float f)
public Vertex scale(float f)
public Vertex scale(float f, double centerX, double centerY, double centerZ)
public Vertex rotateAroundX(double angle)
public Vertex rotateAroundX(double angle, double centerX, double centerY, double centerZ)
public Vertex rotateAroundY(double angle)
public Vertex rotateAroundY(double angle, double centerX, double centerY, double centerZ)
public Vertex rotateAroundZ(double angle)
public Vertex rotateAroundZ(double angle, double centerX, double centerY, double centerZ)
public Vertex setColor(int color)
public int getColor()
public Vertex setAlpha(int alpha)
public int getAlpha()
public Vertex setBrightness(int brightness)
public int getBrightness()
public void setUV(float u, float v)
public double getU()
public double getV()
public void limitU(float min, float max)
public void limitV(float min, float max)
public boolean isCorner()
public Vertex setBaseName(java.lang.String name)
public java.lang.String baseName()
public java.lang.String name()
public java.lang.String toString()
toString
in class java.lang.Object
public Point toPoint()
public static double clamp(double value)
public static double clamp(double value, double min, double max)
public void applyMatrix(org.lwjgl.util.vector.Matrix4f transformMatrix)
public void setInitialState()
public void resetState()
public int[][] getAoMatrix(net.minecraftforge.common.util.ForgeDirection offset)
offset
- the offset