Package com.hrznstudio.emojiful.render
Class EmojiFontRenderer
java.lang.Object
net.minecraft.client.gui.Font
com.hrznstudio.emojiful.render.EmojiFontRenderer
- All Implemented Interfaces:
net.neoforged.neoforge.client.extensions.IFontExtension
public class EmojiFontRenderer
extends net.minecraft.client.gui.Font
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.client.gui.Font
net.minecraft.client.gui.Font.DisplayMode -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic com.google.common.cache.LoadingCache<String, org.apache.commons.lang3.tuple.Pair<String, HashMap<Integer, Emoji>>> static final org.joml.Vector3fFields inherited from class net.minecraft.client.gui.Font
ALPHA_CUTOFF, filterFishyGlyphs, fonts, lineHeight, randomFields inherited from interface net.neoforged.neoforge.client.extensions.IFontExtension
ELLIPSIS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintdrawInBatch(net.minecraft.util.FormattedCharSequence reorderingProcessor, float x, float y, int color, boolean isShadow, org.joml.Matrix4f matrix, net.minecraft.client.renderer.MultiBufferSource buffer, net.minecraft.client.gui.Font.DisplayMode displayMode, int colorBackgroundIn, int packedLight) voidrenderChar(net.minecraft.client.gui.font.glyphs.BakedGlyph $$0, boolean $$1, boolean $$2, float $$3, float $$4, float $$5, org.joml.Matrix4f $$6, com.mojang.blaze3d.vertex.VertexConsumer $$7, float $$8, float $$9, float $$10, float $$11, int $$12) floatrenderText(String text, float x, float y, int color, boolean isShadow, org.joml.Matrix4f matrix, net.minecraft.client.renderer.MultiBufferSource buffer, net.minecraft.client.gui.Font.DisplayMode displayMode, int colorBackgroundIn, int packedLight) voidsetSprite(net.minecraft.client.renderer.texture.TextureAtlasSprite sprite) intintwidth(net.minecraft.network.chat.FormattedText textProperties) intwidth(net.minecraft.util.FormattedCharSequence processor) Methods inherited from class net.minecraft.client.gui.Font
bidirectionalShaping, drawInBatch, drawInBatch, drawInBatch, drawInBatch8xOutline, getFontSet, getSplitter, isBidirectional, plainSubstrByWidth, plainSubstrByWidth, self, split, substrByWidth, wordWrapHeight, wordWrapHeightMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.neoforged.neoforge.client.extensions.IFontExtension
ellipsize
-
Field Details
-
SHADOW_OFFSET
public static final org.joml.Vector3f SHADOW_OFFSET -
RECENT_STRINGS
-
-
Constructor Details
-
EmojiFontRenderer
public EmojiFontRenderer(net.minecraft.client.gui.Font fontRenderer)
-
-
Method Details
-
getEmojiFormattedString
-
setSprite
public void setSprite(net.minecraft.client.renderer.texture.TextureAtlasSprite sprite) -
width
- Overrides:
widthin classnet.minecraft.client.gui.Font
-
width
public int width(net.minecraft.network.chat.FormattedText textProperties) - Overrides:
widthin classnet.minecraft.client.gui.Font
-
width
public int width(net.minecraft.util.FormattedCharSequence processor) - Overrides:
widthin classnet.minecraft.client.gui.Font
-
renderChar
public void renderChar(net.minecraft.client.gui.font.glyphs.BakedGlyph $$0, boolean $$1, boolean $$2, float $$3, float $$4, float $$5, org.joml.Matrix4f $$6, com.mojang.blaze3d.vertex.VertexConsumer $$7, float $$8, float $$9, float $$10, float $$11, int $$12) - Overrides:
renderCharin classnet.minecraft.client.gui.Font
-
renderText
public float renderText(String text, float x, float y, int color, boolean isShadow, org.joml.Matrix4f matrix, net.minecraft.client.renderer.MultiBufferSource buffer, net.minecraft.client.gui.Font.DisplayMode displayMode, int colorBackgroundIn, int packedLight) - Overrides:
renderTextin classnet.minecraft.client.gui.Font
-
drawInBatch
public int drawInBatch(net.minecraft.util.FormattedCharSequence reorderingProcessor, float x, float y, int color, boolean isShadow, org.joml.Matrix4f matrix, net.minecraft.client.renderer.MultiBufferSource buffer, net.minecraft.client.gui.Font.DisplayMode displayMode, int colorBackgroundIn, int packedLight) - Overrides:
drawInBatchin classnet.minecraft.client.gui.Font
-