Class TimedBoxRenderData
java.lang.Object
com.minecolonies.core.client.render.worldevent.highlightmanager.TimedBoxRenderData
- All Implemented Interfaces:
IHighlightRenderData
Highlight render data for marking blocks in the world with potential warnings on them.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionList of strings to displayGet the duration of the highlight.voidrender(WorldEventContext context) Indicate the render data it should continue rendering.setColor(int argbColor) Color code for the box, argb formatsetDuration(Duration duration) Duration of the box.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.minecolonies.core.client.render.worldevent.highlightmanager.IHighlightRenderData
startRender, stopRender
-
Constructor Details
-
TimedBoxRenderData
public TimedBoxRenderData(net.minecraft.core.BlockPos pos) Default constructor.
-
-
Method Details
-
render
Description copied from interface:IHighlightRenderDataIndicate the render data it should continue rendering.- Specified by:
renderin interfaceIHighlightRenderData
-
getDuration
Description copied from interface:IHighlightRenderDataGet the duration of the highlight.- Specified by:
getDurationin interfaceIHighlightRenderData- Returns:
- a duration instance, or null for an infinite highlight (should be manually cancelled).
-
setDuration
Duration of the box. -
addText
List of strings to display -
setColor
Color code for the box, argb format
-