public abstract class SimpleModelFontRenderer extends FontRenderer
| Modifier and Type | Field and Description |
|---|---|
private float |
a |
private float |
b |
private com.google.common.collect.ImmutableList.Builder<BakedQuad> |
builder |
private boolean |
fillBlanks |
private VertexFormat |
format |
private float |
g |
private javax.vecmath.Vector3f |
normal |
private EnumFacing |
orientation |
private float |
r |
private TextureAtlasSprite |
sprite |
private TRSRTransformation |
transform |
private javax.vecmath.Vector4f |
vec |
charWidth, FONT_HEIGHT, fontRandom, glyphWidth, locationFontTexture, posX, posY| Constructor and Description |
|---|
SimpleModelFontRenderer(GameSettings settings,
ResourceLocation font,
TextureManager manager,
boolean isUnicode,
javax.vecmath.Matrix4f matrix,
VertexFormat format) |
| Modifier and Type | Method and Description |
|---|---|
private void |
addVertex(UnpackedBakedQuad.Builder quadBuilder,
float x,
float y,
float u,
float v) |
protected void |
bindTexture(ResourceLocation location) |
com.google.common.collect.ImmutableList<BakedQuad> |
build() |
protected void |
doDraw(float shift) |
void |
enableAlpha() |
void |
onResourceManagerReload(IResourceManager resourceManager) |
protected float |
renderDefaultChar(int pos,
boolean italic) |
protected abstract float |
renderUnicodeChar(char c,
boolean italic) |
protected void |
setColor(float r,
float g,
float b,
float a) |
void |
setFillBlanks(boolean fillBlanks) |
void |
setSprite(TextureAtlasSprite sprite) |
drawSplitString, drawString, drawString, drawStringWithShadow, getBidiFlag, getCharWidth, getColorCode, getFormatFromString, getResource, getStringWidth, getUnicodeFlag, getWordWrappedHeight, listFormattedStringToWidth, setBidiFlag, setUnicodeFlag, trimStringToWidth, trimStringToWidthprivate float r
private float g
private float b
private float a
private final TRSRTransformation transform
private com.google.common.collect.ImmutableList.Builder<BakedQuad> builder
private final VertexFormat format
private final javax.vecmath.Vector3f normal
private final EnumFacing orientation
private boolean fillBlanks
private TextureAtlasSprite sprite
private final javax.vecmath.Vector4f vec
public SimpleModelFontRenderer(GameSettings settings, ResourceLocation font, TextureManager manager, boolean isUnicode, javax.vecmath.Matrix4f matrix, VertexFormat format)
public void setSprite(TextureAtlasSprite sprite)
public void setFillBlanks(boolean fillBlanks)
protected float renderDefaultChar(int pos,
boolean italic)
renderDefaultChar in class FontRendererprivate void addVertex(UnpackedBakedQuad.Builder quadBuilder, float x, float y, float u, float v)
public void onResourceManagerReload(IResourceManager resourceManager)
onResourceManagerReload in interface IResourceManagerReloadListeneronResourceManagerReload in class FontRendererprotected abstract float renderUnicodeChar(char c,
boolean italic)
renderUnicodeChar in class FontRendererprotected void doDraw(float shift)
doDraw in class FontRendererprotected void setColor(float r,
float g,
float b,
float a)
setColor in class FontRendererpublic void enableAlpha()
enableAlpha in class FontRendererprotected void bindTexture(ResourceLocation location)
bindTexture in class FontRendererpublic com.google.common.collect.ImmutableList<BakedQuad> build()