Java Code Examples for net.minecraft.client.renderer.vertex.DefaultVertexFormats#POSITION_TEX
The following examples show how to use
net.minecraft.client.renderer.vertex.DefaultVertexFormats#POSITION_TEX .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: UIStringComponent.java From TFC2 with GNU General Public License v3.0 | 5 votes |
public UIStringComponent(String text, double x, double y, double z, float scale, int zLevel, int color) { super(DefaultVertexFormats.POSITION_TEX); this.scale = scale; UIText = text; float toNextChar = 0; this.color = color; for (int i = 0; i < UIText.length(); ++i) { char c = UIText.charAt(i); UICharComponent ui = new UICharComponent(DefaultVertexFormats.POSITION_TEX, x+toNextChar, y, z, zLevel, this.scale); toNextChar += ui.setupChar(c)*this.scale; charCompList.add(ui); } }