public class Tessellator
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
boolean |
defaultTexture |
static Tessellator |
instance
The static instance of the Tessellator.
|
static boolean |
renderingWorldRenderer |
int |
textureID |
Constructor and Description |
---|
Tessellator() |
Modifier and Type | Method and Description |
---|---|
void |
addTranslation(float par1,
float par2,
float par3)
Offsets the translation for all vertices in the current draw call.
|
void |
addVertex(double par1,
double par3,
double par5)
Adds a vertex with the specified x,y,z to the current draw call.
|
void |
addVertexWithUV(double par1,
double par3,
double par5,
double par7,
double par9)
Adds a vertex specifying both x,y,z and the texture u,v for it.
|
void |
disableColor()
Disables colors for the current draw call.
|
int |
draw()
Draws the data set up in this tessellator and resets the state to prepare for new drawing.
|
TesselatorVertexState |
getVertexState(float p_147564_1_,
float p_147564_2_,
float p_147564_3_) |
void |
setBrightness(int par1) |
void |
setColorOpaque_F(float par1,
float par2,
float par3)
Sets the RGB values as specified, converting from floats between 0 and 1 to integers from 0-255.
|
void |
setColorOpaque_I(int par1)
Sets the color to the given opaque value (stored as byte values packed in an integer).
|
void |
setColorOpaque(int par1,
int par2,
int par3)
Sets the RGB values as specified, and sets alpha to opaque.
|
void |
setColorRGBA_F(float par1,
float par2,
float par3,
float par4)
Sets the RGBA values for the color, converting from floats between 0 and 1 to integers from 0-255.
|
void |
setColorRGBA_I(int par1,
int par2)
Sets the color to the given color (packed as bytes in integer) and alpha values.
|
void |
setColorRGBA(int par1,
int par2,
int par3,
int par4)
Sets the RGBA values for the color.
|
void |
setNormal(float par1,
float par2,
float par3)
Sets the normal for the current draw call.
|
void |
setTextureUV(double par1,
double par3)
Sets the texture coordinates.
|
void |
setTranslation(double par1,
double par3,
double par5)
Sets the translation for all vertices in the current draw call.
|
void |
setVertexState(TesselatorVertexState p_147565_1_) |
void |
startDrawing(int par1)
Resets tessellator state and prepares for drawing (with the specified draw mode).
|
void |
startDrawingQuads()
Sets draw mode in the tessellator to draw quads.
|
public static boolean renderingWorldRenderer
public boolean defaultTexture
public int textureID
public static final Tessellator instance
public int draw()
public TesselatorVertexState getVertexState(float p_147564_1_, float p_147564_2_, float p_147564_3_)
public void setVertexState(TesselatorVertexState p_147565_1_)
public void startDrawingQuads()
public void startDrawing(int par1)
public void setTextureUV(double par1, double par3)
public void setBrightness(int par1)
public void setColorOpaque_F(float par1, float par2, float par3)
public void setColorRGBA_F(float par1, float par2, float par3, float par4)
public void setColorOpaque(int par1, int par2, int par3)
public void setColorRGBA(int par1, int par2, int par3, int par4)
public void addVertexWithUV(double par1, double par3, double par5, double par7, double par9)
public void addVertex(double par1, double par3, double par5)
public void setColorOpaque_I(int par1)
public void setColorRGBA_I(int par1, int par2)
public void disableColor()
public void setNormal(float par1, float par2, float par3)
public void setTranslation(double par1, double par3, double par5)
public void addTranslation(float par1, float par2, float par3)