Package net.liukrast.multipart
Class MultipartAPI
java.lang.Object
net.liukrast.multipart.MultipartAPI
Utility class for handling temporary visualization of multipart block positions.
Use notify(BlockPos) to request the rendering of a block highlight for a short time.
Other methods are for internal use only and should not be called directly.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidnotify(net.minecraft.core.BlockPos pos) Requests to render a temporary red box around the given block position.static voidrender(com.mojang.blaze3d.vertex.PoseStack poseStack) Renders highlight boxes for all tracked block positions.static voidtick()Decrements the remaining duration for each highlight and removes expired entries.
-
Method Details
-
notify
public static void notify(net.minecraft.core.BlockPos pos) Requests to render a temporary red box around the given block position. The highlight will last for 60 ticks.- Parameters:
pos- the block position to highlight
-
render
@InternalApi public static void render(com.mojang.blaze3d.vertex.PoseStack poseStack) Renders highlight boxes for all tracked block positions.Internal use only.
- Parameters:
poseStack- the current pose stack used for rendering
-
tick
@InternalApi public static void tick()Decrements the remaining duration for each highlight and removes expired entries.Internal use only.
-