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

public class TimedBlockRenderTask extends TimedTask implements IRenderTask
Highlight render data for marking blocks in the world with potential warnings on them.
  • Constructor Details

    • TimedBlockRenderTask

      public TimedBlockRenderTask(String id, net.minecraft.core.BlockPos pos, int seconds)
      Default constructor.
  • Method Details

    • render

      public void render(WorldEventRenderContext context)
      Description copied from interface: IRenderTask
      Indicate the render data it should continue rendering.
      Specified by:
      render in interface IRenderTask
    • shouldRenderIn

      public boolean shouldRenderIn(net.minecraftforge.client.event.RenderLevelStageEvent.Stage renderStage)
      Description copied from interface: IRenderTask
      Precheck for the render stage, as render(WorldEventRenderContext) is run for all stages
      Specified by:
      shouldRenderIn in interface IRenderTask
      Returns:
      true if rendering active for this stage
    • addText

      public void addText(String text)
      List of strings to display
    • setColor

      public void setColor(int argbColor)
      Color code for the box, argb format