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, trimStringToWidth
private 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 FontRenderer
private void addVertex(UnpackedBakedQuad.Builder quadBuilder, float x, float y, float u, float v)
public void onResourceManagerReload(IResourceManager resourceManager)
onResourceManagerReload
in interface IResourceManagerReloadListener
onResourceManagerReload
in class FontRenderer
protected abstract float renderUnicodeChar(char c, boolean italic)
renderUnicodeChar
in class FontRenderer
protected void doDraw(float shift)
doDraw
in class FontRenderer
protected void setColor(float r, float g, float b, float a)
setColor
in class FontRenderer
public void enableAlpha()
enableAlpha
in class FontRenderer
protected void bindTexture(ResourceLocation location)
bindTexture
in class FontRenderer
public com.google.common.collect.ImmutableList<BakedQuad> build()