Class TimedBlockRenderTask
java.lang.Object
com.ldtteam.structurize.client.rendertask.task.TimedTask
com.ldtteam.structurize.client.rendertask.tasks.TimedBlockRenderTask
- All Implemented Interfaces:
IClientTask,IRenderTask,ITickingTask
Highlight render data for marking blocks in the world with potential warnings on them.
-
Constructor Summary
ConstructorsConstructorDescriptionTimedBlockRenderTask(String id, net.minecraft.core.BlockPos pos, int seconds) Default constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidList of strings to displayvoidrender(WorldEventRenderContext context) Indicate the render data it should continue rendering.voidsetColor(int argbColor) Color code for the box, argb formatbooleanshouldRenderIn(net.minecraftforge.client.event.RenderLevelStageEvent.Stage renderStage) Precheck for the render stage, as render(WorldEventRenderContext) is run for all stagesMethods inherited from class com.ldtteam.structurize.client.rendertask.task.TimedTask
id, isExpired, setDurationSeconds, tickMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.ldtteam.structurize.client.rendertask.task.ITickingTask
id, tick
-
Constructor Details
-
TimedBlockRenderTask
Default constructor.
-
-
Method Details
-
render
Description copied from interface:IRenderTaskIndicate the render data it should continue rendering.- Specified by:
renderin interfaceIRenderTask
-
shouldRenderIn
public boolean shouldRenderIn(net.minecraftforge.client.event.RenderLevelStageEvent.Stage renderStage) Description copied from interface:IRenderTaskPrecheck for the render stage, as render(WorldEventRenderContext) is run for all stages- Specified by:
shouldRenderInin interfaceIRenderTask- Returns:
- true if rendering active for this stage
-
addText
List of strings to display -
setColor
public void setColor(int argbColor) Color code for the box, argb format
-