Class MultipartAPI

java.lang.Object
net.liukrast.multipart.MultipartAPI

public class MultipartAPI extends Object
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 Type
    Method
    Description
    static void
    notify(net.minecraft.core.BlockPos pos)
    Requests to render a temporary red box around the given block position.
    static void
    render(com.mojang.blaze3d.vertex.PoseStack poseStack)
    Renders highlight boxes for all tracked block positions.
    static void
    Decrements the remaining duration for each highlight and removes expired entries.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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.