public class Font1_12_2
extends mods.thecomputerizer.theimpossiblelibrary.api.client.font.FontAPI<net.minecraft.client.gui.FontRenderer>
wrappedBOOLEAN_VALUES, FABRIC, FORGE, FORGE_OR_NEOFORGE, GAME_VERSION, JAVA_17, JAVA_21, JAVA_8, JAVA_MODULES, JAVA_VERSION, JAVA_VERSION_ASM, LEGACY, MOD_LOADER, NAMED_ENV, NEOFORGE, SRG_ENV, V12, V16, V16_OR_EARLIER, V16_OR_LATER, V18, V18_OR_EARLIER, V18_OR_LATER, V19, V19_2_OR_EARLIER, V19_4_OR_LATER, V19_OR_EARLIER, V19_OR_LATER, V20, V20_4_OR_EARLIER, V20_6_OR_LATER, V20_OR_EARLIER, V20_OR_LATER, V21, V21_OR_LATER| Constructor and Description |
|---|
Font1_12_2() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
draw(@Nullable mods.thecomputerizer.theimpossiblelibrary.api.client.render.RenderAPI renderer,
@Nullable java.lang.String text,
java.util.function.Consumer<java.lang.String> drawFunc) |
void |
draw(mods.thecomputerizer.theimpossiblelibrary.api.client.render.RenderAPI renderer,
java.lang.String text,
float x,
float y,
int color) |
void |
drawInBatch(java.lang.Object text,
float x,
float y,
int color,
boolean shadow,
java.lang.Object matrix,
java.lang.Object source,
boolean transparent,
int bgColor,
int light) |
void |
drawWithShadow(mods.thecomputerizer.theimpossiblelibrary.api.client.render.RenderAPI renderer,
java.lang.String text,
float x,
float y,
int color) |
int |
getCharWidth(char c) |
int |
getFontHeight() |
int |
getStringWidth(java.lang.String str) |
void |
renderToolTip(mods.thecomputerizer.theimpossiblelibrary.api.client.render.RenderAPI renderer,
java.util.Collection<mods.thecomputerizer.theimpossiblelibrary.api.text.TextAPI<?>> lines,
int x,
int y,
int width,
int height,
int maxWidth)
GuiUtils$drawHoveringText implementation from Forge but without disabling lighting
|
java.lang.String |
trimStringTo(java.lang.String str,
int width,
boolean withReset) |
getStringWidth, getWrapped, trimStringTo, unwrapTooltipComponentsasOptional, equals, setWrapped, toStringclone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetIfNotNull, getIfNotNullOrDefault, getIfNotNullOrDefault, getWrappedClass, isNull, isNullGetter, notNull, notNullGetter, supplyIfNull, unwrap, wrapIfNotNull, wrapIfNotNullOrDefault, wrapIfNotNullOrDefaultprotected void draw(@Nullable
@Nullable mods.thecomputerizer.theimpossiblelibrary.api.client.render.RenderAPI renderer,
@Nullable
@Nullable java.lang.String text,
java.util.function.Consumer<java.lang.String> drawFunc)
public void draw(mods.thecomputerizer.theimpossiblelibrary.api.client.render.RenderAPI renderer,
java.lang.String text,
float x,
float y,
int color)
draw in class mods.thecomputerizer.theimpossiblelibrary.api.client.font.FontAPI<net.minecraft.client.gui.FontRenderer>public void drawInBatch(java.lang.Object text,
float x,
float y,
int color,
boolean shadow,
java.lang.Object matrix,
java.lang.Object source,
boolean transparent,
int bgColor,
int light)
drawInBatch in class mods.thecomputerizer.theimpossiblelibrary.api.client.font.FontAPI<net.minecraft.client.gui.FontRenderer>public void drawWithShadow(mods.thecomputerizer.theimpossiblelibrary.api.client.render.RenderAPI renderer,
java.lang.String text,
float x,
float y,
int color)
drawWithShadow in class mods.thecomputerizer.theimpossiblelibrary.api.client.font.FontAPI<net.minecraft.client.gui.FontRenderer>public int getCharWidth(char c)
getCharWidth in class mods.thecomputerizer.theimpossiblelibrary.api.client.font.FontAPI<net.minecraft.client.gui.FontRenderer>public int getFontHeight()
getFontHeight in class mods.thecomputerizer.theimpossiblelibrary.api.client.font.FontAPI<net.minecraft.client.gui.FontRenderer>public int getStringWidth(java.lang.String str)
getStringWidth in class mods.thecomputerizer.theimpossiblelibrary.api.client.font.FontAPI<net.minecraft.client.gui.FontRenderer>public void renderToolTip(mods.thecomputerizer.theimpossiblelibrary.api.client.render.RenderAPI renderer,
java.util.Collection<mods.thecomputerizer.theimpossiblelibrary.api.text.TextAPI<?>> lines,
int x,
int y,
int width,
int height,
int maxWidth)
renderToolTip in class mods.thecomputerizer.theimpossiblelibrary.api.client.font.FontAPI<net.minecraft.client.gui.FontRenderer>public java.lang.String trimStringTo(java.lang.String str,
int width,
boolean withReset)
trimStringTo in class mods.thecomputerizer.theimpossiblelibrary.api.client.font.FontAPI<net.minecraft.client.gui.FontRenderer>