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 p_78372_1_,
float p_78372_2_,
float p_78372_3_)
Offsets the translation for all vertices in the current draw call.
|
void |
addVertex(double p_78377_1_,
double p_78377_3_,
double p_78377_5_)
Adds a vertex with the specified x,y,z to the current draw call.
|
void |
addVertexWithUV(double p_78374_1_,
double p_78374_3_,
double p_78374_5_,
double p_78374_7_,
double p_78374_9_)
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.
|
void |
func_154352_a(byte p_154352_1_,
byte p_154352_2_,
byte p_154352_3_) |
TesselatorVertexState |
getVertexState(float p_147564_1_,
float p_147564_2_,
float p_147564_3_) |
void |
setBrightness(int p_78380_1_) |
void |
setColorOpaque_F(float p_78386_1_,
float p_78386_2_,
float p_78386_3_)
Sets the RGB values as specified, converting from floats between 0 and 1 to integers from 0-255.
|
void |
setColorOpaque_I(int p_78378_1_)
Sets the color to the given opaque value (stored as byte values packed in an integer).
|
void |
setColorOpaque(int p_78376_1_,
int p_78376_2_,
int p_78376_3_)
Sets the RGB values as specified, and sets alpha to opaque.
|
void |
setColorRGBA_F(float p_78369_1_,
float p_78369_2_,
float p_78369_3_,
float p_78369_4_)
Sets the RGBA values for the color, converting from floats between 0 and 1 to integers from 0-255.
|
void |
setColorRGBA_I(int p_78384_1_,
int p_78384_2_)
Sets the color to the given color (packed as bytes in integer) and alpha values.
|
void |
setColorRGBA(int p_78370_1_,
int p_78370_2_,
int p_78370_3_,
int p_78370_4_)
Sets the RGBA values for the color.
|
void |
setNormal(float p_78375_1_,
float p_78375_2_,
float p_78375_3_)
Sets the normal for the current draw call.
|
void |
setTextureUV(double p_78385_1_,
double p_78385_3_)
Sets the texture coordinates.
|
void |
setTranslation(double p_78373_1_,
double p_78373_3_,
double p_78373_5_)
Sets the translation for all vertices in the current draw call.
|
void |
setVertexState(TesselatorVertexState p_147565_1_) |
void |
startDrawing(int p_78371_1_)
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 p_78371_1_)
public void setTextureUV(double p_78385_1_,
double p_78385_3_)
public void setBrightness(int p_78380_1_)
public void setColorOpaque_F(float p_78386_1_,
float p_78386_2_,
float p_78386_3_)
public void setColorRGBA_F(float p_78369_1_,
float p_78369_2_,
float p_78369_3_,
float p_78369_4_)
public void setColorOpaque(int p_78376_1_,
int p_78376_2_,
int p_78376_3_)
public void setColorRGBA(int p_78370_1_,
int p_78370_2_,
int p_78370_3_,
int p_78370_4_)
public void func_154352_a(byte p_154352_1_,
byte p_154352_2_,
byte p_154352_3_)
public void addVertexWithUV(double p_78374_1_,
double p_78374_3_,
double p_78374_5_,
double p_78374_7_,
double p_78374_9_)
public void addVertex(double p_78377_1_,
double p_78377_3_,
double p_78377_5_)
public void setColorOpaque_I(int p_78378_1_)
public void setColorRGBA_I(int p_78384_1_,
int p_78384_2_)
public void disableColor()
public void setNormal(float p_78375_1_,
float p_78375_2_,
float p_78375_3_)
public void setTranslation(double p_78373_1_,
double p_78373_3_,
double p_78373_5_)
public void addTranslation(float p_78372_1_,
float p_78372_2_,
float p_78372_3_)