Class TextRenderer
java.lang.Object
dev.prozilla.pine.core.system.SystemBase
dev.prozilla.pine.core.system.render.RenderSystemBase
dev.prozilla.pine.core.system.render.RenderSystem
dev.prozilla.pine.core.system.standard.ui.text.TextRenderer
Renders text elements to the screen.
-
Field Summary
Fields inherited from class dev.prozilla.pine.core.system.SystemBase
application, logger, scene, world -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprocess(EntityChunk chunk, Renderer renderer) Renders a single entity, each frame.static voidrenderText(Renderer renderer, TextNode textNode, float x, float y, float z, float width, float height, Color color) static voidrenderText(Renderer renderer, TextNode textNode, Node node, float z) static voidrenderText(Renderer renderer, String text, Font font, float x, float y, float z, float width, float height, Color color) Renders text on the screen on a given position.Methods inherited from class dev.prozilla.pine.core.system.render.RenderSystem
renderMethods inherited from class dev.prozilla.pine.core.system.render.RenderSystemBase
sortMethods inherited from class dev.prozilla.pine.core.system.SystemBase
forEach, forEachReverse, hasEntityChunks, initSystem, print, register, setExcludedComponentTypes, setRequiredTag, setRunWhenPaused, shouldRun, sort, unregister
-
Constructor Details
-
TextRenderer
public TextRenderer()
-
-
Method Details
-
process
Description copied from class:RenderSystemRenders a single entity, each frame.- Specified by:
processin classRenderSystem- Parameters:
chunk- Entity that matches this system's query
-
renderText
-
renderText
-
renderText
public static void renderText(Renderer renderer, String text, Font font, float x, float y, float z, float width, float height, Color color) Renders text on the screen on a given position.- Parameters:
x- X positiony- Y position
-