Class Font1_21
java.lang.Object
mods.thecomputerizer.theimpossiblelibrary.api.wrappers.MutableWrapped<net.minecraft.client.gui.Font>
mods.thecomputerizer.theimpossiblelibrary.api.client.font.FontAPI<net.minecraft.client.gui.Font>
mods.thecomputerizer.theimpossiblelibrary.shared.v21.client.font.Font1_21
- All Implemented Interfaces:
mods.thecomputerizer.theimpossiblelibrary.api.core.CoreStateAccessor,mods.thecomputerizer.theimpossiblelibrary.api.wrappers.Wrapped<net.minecraft.client.gui.Font>
public class Font1_21
extends mods.thecomputerizer.theimpossiblelibrary.api.client.font.FontAPI<net.minecraft.client.gui.Font>
-
Field Summary
Fields inherited from class mods.thecomputerizer.theimpossiblelibrary.api.wrappers.MutableWrapped
wrappedFields inherited from interface mods.thecomputerizer.theimpossiblelibrary.api.core.CoreStateAccessor
BOOLEAN_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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddraw(mods.thecomputerizer.theimpossiblelibrary.api.client.render.RenderAPI renderer, String text, float x, float y, int color) protected voiddraw(@Nullable net.minecraft.client.gui.GuiGraphics graphics, String text, int x, int y, int color, boolean shadow) voiddrawInBatch(Object text, float x, float y, int color, boolean shadow, Object matrix, Object source, boolean transparent, int bgColor, int light) voiddrawWithShadow(mods.thecomputerizer.theimpossiblelibrary.api.client.render.RenderAPI renderer, String text, float x, float y, int color) intgetCharWidth(char c) intprotected @Nullable net.minecraft.client.gui.GuiGraphicsgetGraphics(mods.thecomputerizer.theimpossiblelibrary.api.client.render.RenderAPI renderer) intgetStringWidth(String str) trimStringTo(String str, int width, boolean withReset) Methods inherited from class mods.thecomputerizer.theimpossiblelibrary.api.client.font.FontAPI
getStringWidth, getWrapped, renderToolTip, trimStringTo, unwrapTooltipComponentsMethods inherited from class mods.thecomputerizer.theimpossiblelibrary.api.wrappers.MutableWrapped
asOptional, equals, setWrapped, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface mods.thecomputerizer.theimpossiblelibrary.api.wrappers.Wrapped
getIfNotNull, getIfNotNullOrDefault, getIfNotNullOrDefault, getWrappedClass, isNull, isNullGetter, notNull, notNullGetter, supplyIfNull, unwrap, wrapIfNotNull, wrapIfNotNullOrDefault, wrapIfNotNullOrDefault
-
Constructor Details
-
Font1_21
public Font1_21()
-
-
Method Details
-
draw
protected void draw(@Nullable @Nullable net.minecraft.client.gui.GuiGraphics graphics, String text, int x, int y, int color, boolean shadow) -
draw
public void draw(mods.thecomputerizer.theimpossiblelibrary.api.client.render.RenderAPI renderer, String text, float x, float y, int color) - Specified by:
drawin classmods.thecomputerizer.theimpossiblelibrary.api.client.font.FontAPI<net.minecraft.client.gui.Font>
-
drawInBatch
public void drawInBatch(Object text, float x, float y, int color, boolean shadow, Object matrix, Object source, boolean transparent, int bgColor, int light) - Specified by:
drawInBatchin classmods.thecomputerizer.theimpossiblelibrary.api.client.font.FontAPI<net.minecraft.client.gui.Font>
-
drawWithShadow
public void drawWithShadow(mods.thecomputerizer.theimpossiblelibrary.api.client.render.RenderAPI renderer, String text, float x, float y, int color) - Specified by:
drawWithShadowin classmods.thecomputerizer.theimpossiblelibrary.api.client.font.FontAPI<net.minecraft.client.gui.Font>
-
getCharWidth
public int getCharWidth(char c) - Specified by:
getCharWidthin classmods.thecomputerizer.theimpossiblelibrary.api.client.font.FontAPI<net.minecraft.client.gui.Font>
-
getFontHeight
public int getFontHeight()- Specified by:
getFontHeightin classmods.thecomputerizer.theimpossiblelibrary.api.client.font.FontAPI<net.minecraft.client.gui.Font>
-
getGraphics
@Nullable protected @Nullable net.minecraft.client.gui.GuiGraphics getGraphics(mods.thecomputerizer.theimpossiblelibrary.api.client.render.RenderAPI renderer) -
getStringWidth
- Specified by:
getStringWidthin classmods.thecomputerizer.theimpossiblelibrary.api.client.font.FontAPI<net.minecraft.client.gui.Font>
-
trimStringTo
- Specified by:
trimStringToin classmods.thecomputerizer.theimpossiblelibrary.api.client.font.FontAPI<net.minecraft.client.gui.Font>
-