Effective Glyph
data class EffectiveGlyph(val texturePath: String, val height: Int = 8, val ascent: Int = 7, val textureBytes: ByteArray? = null)
A single bitmap glyph in the generated resource pack: an EffectiveFontChar bound to a texture, drawn inline in chat/GUI text. Used for custom fonts and texture menus (see ru.hukm.effectiveSpigot.minecraft.menu.EffectiveTextureMenu).
⚠️ Keep the texture image reasonably small. Minecraft caps the size of a bitmap-font texture, and an oversized image (e.g. 4096×4096) simply won't load — the glyph then renders as a missing-character box (tofu) instead of the texture. Downscale the source PNG if a glyph doesn't show up.
Properties
Link copied to clipboard
the EffectiveFontChar handle whose reserved codepoint renders as this glyph
Link copied to clipboard
optional in-memory PNG; when set it is written at texturePath instead of reading the plugin resource
Link copied to clipboard
resource path to the texture inside the plugin jar