Class GlowHandling

java.lang.Object
com.samsthenerd.inline.api.client.GlowHandling
Direct Known Subclasses:
GlowHandling.Full, GlowHandling.None

public sealed class GlowHandling extends Object permits GlowHandling.None, GlowHandling.Full
Indicates how the render system should handle glow effects. Glow effects happen when a sign is clicked with a glow ink sac. Vanilla text handles this by rendering text in 8 offsets, doing this with inline renders tends to create a busy z-fighting mess.

The render system can work around this by first rendering to a framebuffer, flattening the image to a flat color, adding a border, and then rendering it as a texture. This can be a tad bit laggy though, especially for many renders, so if your renderer is able to neatly handle its own outline (for example if it's already a flat color) then it should do so and indicate GlowHandling.None as its preference. Otherwise indicate GlowHandling.Full if the render system should handle it for you. If your render is static, meaning it won't animate with time, then you can indicate a cache id as well, using Full(String) so that the glow texture doesn't need to be remade every frame.

  • Constructor Details

    • GlowHandling

      public GlowHandling()