Class GlowHandling
java.lang.Object
com.samsthenerd.inline.api.client.GlowHandling
- Direct Known Subclasses:
GlowHandling.Full
,GlowHandling.None
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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Indicates that the render system will handle the glow effect.static final class
Indicates that the renderer will handle the glow effect on its own with no help from the render system. -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
GlowHandling
public GlowHandling()
-