Class BoxPreviewRenderTask
java.lang.Object
com.ldtteam.structurize.client.rendertask.task.TimedTask
com.ldtteam.structurize.client.rendertask.tasks.BoxPreviewRenderTask
- All Implemented Interfaces:
IClientTask,IRenderTask,ITickingTask
Preview data for box contexts.
-
Constructor Summary
ConstructorsConstructorDescriptionBoxPreviewRenderTask(String id, BoxPreviewData data, int seconds) Create a new box preview task -
Method Summary
Modifier and TypeMethodDescriptionvoidrender(WorldEventRenderContext context) Indicate the render data it should continue rendering.booleanshouldRenderIn(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
-
BoxPreviewRenderTask
Create a new box preview task
-
-
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
-