java.lang.Object
mods.thecomputerizer.theimpossiblelibrary.api.wrappers.MutableWrapped<F>
mods.thecomputerizer.theimpossiblelibrary.api.client.font.FontAPI<net.minecraft.client.gui.Font>
mods.thecomputerizer.theimpossiblelibrary.shared.v18.m2.client.font.Font1_18_2
All Implemented Interfaces:
mods.thecomputerizer.theimpossiblelibrary.api.core.CoreStateAccessor, mods.thecomputerizer.theimpossiblelibrary.api.wrappers.Wrapped<net.minecraft.client.gui.Font>

public class Font1_18_2 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

    wrapped

    Fields 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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    draw(@Nullable mods.thecomputerizer.theimpossiblelibrary.api.client.render.RenderAPI renderer, @Nullable String text, BiConsumer<com.mojang.blaze3d.vertex.PoseStack,String> drawFunc)
     
    void
    draw(mods.thecomputerizer.theimpossiblelibrary.api.client.render.RenderAPI renderer, String text, float x, float y, int color)
     
    void
    drawInBatch(Object text, float x, float y, int color, boolean shadow, Object matrix, Object source, boolean transparent, int bgColor, int light)
     
    void
    drawWithShadow(mods.thecomputerizer.theimpossiblelibrary.api.client.render.RenderAPI renderer, String text, float x, float y, int color)
     
    int
    getCharWidth(char c)
     
    int
     
    protected com.mojang.blaze3d.vertex.PoseStack
    getMatrix(mods.thecomputerizer.theimpossiblelibrary.api.client.render.RenderAPI renderer)
     
    int
     
    trimStringTo(String str, int width, boolean withReset)
     

    Methods inherited from class mods.thecomputerizer.theimpossiblelibrary.api.client.font.FontAPI

    getStringWidth, getWrapped, renderToolTip, trimStringTo, unwrapTooltipComponents

    Methods inherited from class mods.thecomputerizer.theimpossiblelibrary.api.wrappers.MutableWrapped

    asOptional, equals, setWrapped, toString

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods 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_18_2

      public Font1_18_2()
  • Method Details

    • draw

      protected void draw(@Nullable @Nullable mods.thecomputerizer.theimpossiblelibrary.api.client.render.RenderAPI renderer, @Nullable @Nullable String text, BiConsumer<com.mojang.blaze3d.vertex.PoseStack,String> drawFunc)
    • draw

      public void draw(mods.thecomputerizer.theimpossiblelibrary.api.client.render.RenderAPI renderer, String text, float x, float y, int color)
      Specified by:
      draw in class mods.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:
      drawInBatch in class mods.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:
      drawWithShadow in class mods.thecomputerizer.theimpossiblelibrary.api.client.font.FontAPI<net.minecraft.client.gui.Font>
    • getCharWidth

      public int getCharWidth(char c)
      Specified by:
      getCharWidth in class mods.thecomputerizer.theimpossiblelibrary.api.client.font.FontAPI<net.minecraft.client.gui.Font>
    • getFontHeight

      public int getFontHeight()
      Specified by:
      getFontHeight in class mods.thecomputerizer.theimpossiblelibrary.api.client.font.FontAPI<net.minecraft.client.gui.Font>
    • getMatrix

      protected com.mojang.blaze3d.vertex.PoseStack getMatrix(mods.thecomputerizer.theimpossiblelibrary.api.client.render.RenderAPI renderer)
    • getStringWidth

      public int getStringWidth(String str)
      Specified by:
      getStringWidth in class mods.thecomputerizer.theimpossiblelibrary.api.client.font.FontAPI<net.minecraft.client.gui.Font>
    • trimStringTo

      public String trimStringTo(String str, int width, boolean withReset)
      Specified by:
      trimStringTo in class mods.thecomputerizer.theimpossiblelibrary.api.client.font.FontAPI<net.minecraft.client.gui.Font>