YATS/Forge Documentation
 All Classes Namespaces Files Functions Variables Enumerator Pages
net.minecraft.client.renderer.Tessellator Class Reference

Public Member Functions

 Tessellator ()
 
int draw ()
 
void startDrawingQuads ()
 
void startDrawing (int par1)
 
void setTextureUV (double par1, double par3)
 
void setBrightness (int par1)
 
void setColorOpaque_F (float par1, float par2, float par3)
 
void setColorRGBA_F (float par1, float par2, float par3, float par4)
 
void setColorOpaque (int par1, int par2, int par3)
 
void setColorRGBA (int par1, int par2, int par3, int par4)
 
void addVertexWithUV (double par1, double par3, double par5, double par7, double par9)
 
void addVertex (double par1, double par3, double par5)
 
void setColorOpaque_I (int par1)
 
void setColorRGBA_I (int par1, int par2)
 
void disableColor ()
 
void setNormal (float par1, float par2, float par3)
 
void setTranslation (double par1, double par3, double par5)
 
void addTranslation (float par1, float par2, float par3)
 

Public Attributes

boolean defaultTexture = false
 
int textureID = 0
 
int drawMode
 
double xOffset
 
double yOffset
 
double zOffset
 
boolean isDrawing = false
 

Static Public Attributes

static boolean renderingWorldRenderer = false
 
static Tessellator instance = new Tessellator(2097152)
 

Constructor & Destructor Documentation

net.minecraft.client.renderer.Tessellator.Tessellator ( )

Member Function Documentation

void net.minecraft.client.renderer.Tessellator.addTranslation ( float  par1,
float  par2,
float  par3 
)

Offsets the translation for all vertices in the current draw call.

void net.minecraft.client.renderer.Tessellator.addVertex ( double  par1,
double  par3,
double  par5 
)

Adds a vertex with the specified x,y,z to the current draw call. It will trigger a draw() if the buffer gets full.

void net.minecraft.client.renderer.Tessellator.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 net.minecraft.client.renderer.Tessellator.disableColor ( )

Disables colors for the current draw call.

int net.minecraft.client.renderer.Tessellator.draw ( )

Draws the data set up in this tessellator and resets the state to prepare for new drawing.

void net.minecraft.client.renderer.Tessellator.setBrightness ( int  par1)
void net.minecraft.client.renderer.Tessellator.setColorOpaque ( int  par1,
int  par2,
int  par3 
)

Sets the RGB values as specified, and sets alpha to opaque.

void net.minecraft.client.renderer.Tessellator.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 net.minecraft.client.renderer.Tessellator.setColorOpaque_I ( int  par1)

Sets the color to the given opaque value (stored as byte values packed in an integer).

void net.minecraft.client.renderer.Tessellator.setColorRGBA ( int  par1,
int  par2,
int  par3,
int  par4 
)

Sets the RGBA values for the color. Also clamps them to 0-255.

void net.minecraft.client.renderer.Tessellator.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 net.minecraft.client.renderer.Tessellator.setColorRGBA_I ( int  par1,
int  par2 
)

Sets the color to the given color (packed as bytes in integer) and alpha values.

void net.minecraft.client.renderer.Tessellator.setNormal ( float  par1,
float  par2,
float  par3 
)

Sets the normal for the current draw call.

void net.minecraft.client.renderer.Tessellator.setTextureUV ( double  par1,
double  par3 
)

Sets the texture coordinates.

void net.minecraft.client.renderer.Tessellator.setTranslation ( double  par1,
double  par3,
double  par5 
)

Sets the translation for all vertices in the current draw call.

void net.minecraft.client.renderer.Tessellator.startDrawing ( int  par1)

Resets tessellator state and prepares for drawing (with the specified draw mode).

void net.minecraft.client.renderer.Tessellator.startDrawingQuads ( )

Sets draw mode in the tessellator to draw quads.

Member Data Documentation

boolean net.minecraft.client.renderer.Tessellator.defaultTexture = false
int net.minecraft.client.renderer.Tessellator.drawMode

The draw mode currently being used by the tessellator.

Tessellator net.minecraft.client.renderer.Tessellator.instance = new Tessellator(2097152)
static

The static instance of the Tessellator.

boolean net.minecraft.client.renderer.Tessellator.isDrawing = false

Whether this tessellator is currently in draw mode.

boolean net.minecraft.client.renderer.Tessellator.renderingWorldRenderer = false
static
int net.minecraft.client.renderer.Tessellator.textureID = 0
double net.minecraft.client.renderer.Tessellator.xOffset

An offset to be applied along the x-axis for all vertices in this draw call.

double net.minecraft.client.renderer.Tessellator.yOffset

An offset to be applied along the y-axis for all vertices in this draw call.

double net.minecraft.client.renderer.Tessellator.zOffset

An offset to be applied along the z-axis for all vertices in this draw call.


The documentation for this class was generated from the following file: