public class Vertex
extends java.lang.Object
| 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,
int normal,
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 |
|---|---|
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) |
int |
getAlpha() |
int[][] |
getAoMatrix(net.minecraft.util.EnumFacing offset)
Calculates AoMatrix for a vertex based on the vertex position and the face it belongs.
|
int |
getBlockBrightness() |
int |
getBrightness() |
int |
getColor() |
int |
getIntX() |
int |
getIntY() |
int |
getIntZ() |
int |
getNormal() |
int |
getRGBA() |
int |
getSkyBrightness() |
double |
getU() |
double |
getV() |
int[] |
getVertexData(net.minecraft.client.renderer.vertex.VertexFormat vertexFormat,
net.minecraft.util.math.Vec3d offset)
Gets the vertex data for this
Vertex. |
double |
getX() |
double |
getY() |
double |
getZ() |
boolean |
isCorner() |
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,
float offset) |
Vertex |
scale(float fx,
float fy,
float fz,
float offsetX,
float offsetY,
float offsetZ) |
Vertex |
scaleX(float f) |
Vertex |
scaleX(float f,
float offset) |
Vertex |
scaleY(float f) |
Vertex |
scaleY(float f,
float offset) |
Vertex |
scaleZ(float f) |
Vertex |
scaleZ(float f,
float offset) |
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() |
Vertex |
setNormal(net.minecraft.util.EnumFacing facing) |
Vertex |
setNormal(float x,
float y,
float z) |
Vertex |
setRGBA(int rgba) |
void |
setUV(double u,
double v) |
Vertex |
setX(double x) |
Vertex |
setY(double y) |
Vertex |
setZ(double z) |
Point |
toPoint() |
java.lang.String |
toString() |
Vertex |
translate(double x,
double y,
double z)
Translates this
Vertex by the specified amount. |
public static final int BRIGHTNESS_MAX
public Vertex(double x,
double y,
double z,
int rgba,
int brightness,
double u,
double v,
int normal,
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 int getColor()
public Vertex setColor(int color)
public int getAlpha()
public Vertex setAlpha(int alpha)
public int getRGBA()
public Vertex setRGBA(int rgba)
public int getBlockBrightness()
public int getSkyBrightness()
public int getBrightness()
public Vertex setBrightness(int brightness)
public int getNormal()
public Vertex setNormal(float x, float y, float z)
public Vertex setNormal(net.minecraft.util.EnumFacing facing)
public double getU()
public double getV()
public void setUV(double u,
double v)
public Vertex translate(double x, double y, double z)
Vertex by the specified amount.x - the xy - the yz - the zpublic Vertex scaleX(float f)
public Vertex scaleX(float f, float offset)
public Vertex scaleY(float f)
public Vertex scaleY(float f, float offset)
public Vertex scaleZ(float f)
public Vertex scaleZ(float f, float offset)
public Vertex scale(float f)
public Vertex scale(float f, float offset)
public Vertex scale(float fx, float fy, float fz, float offsetX, float offsetY, float offsetZ)
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 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.Objectpublic 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 int[] getVertexData(net.minecraft.client.renderer.vertex.VertexFormat vertexFormat,
net.minecraft.util.math.Vec3d offset)
Vertex.vertexFormat - the vertex formatoffset - the offsetpublic void setInitialState()
public void resetState()
public int[][] getAoMatrix(net.minecraft.util.EnumFacing offset)
offset - the offset