Class BlueprintHandler

java.lang.Object
com.ldtteam.structurize.client.BlueprintHandler

public final class BlueprintHandler extends Object
The Blueprint render handler on the client side.
  • Field Details

    • CACHE_EXPIRE_SECONDS

      public static final int CACHE_EXPIRE_SECONDS
      How long are cache entries valid
      See Also:
    • CACHE_EXPIRE_CHECK_SECONDS

      public static final int CACHE_EXPIRE_CHECK_SECONDS
      How often should cache cleanup happen
      See Also:
  • Method Details

    • getInstance

      public static BlueprintHandler getInstance()
      Get the static instance.
      Returns:
      a static instance of this class.
    • draw

      public void draw(BlueprintPreviewData previewData, net.minecraft.core.BlockPos pos, net.minecraftforge.client.event.RenderLevelStageEvent ctx)
      Draw a blueprint at given pos.
      Parameters:
      previewData - the blueprint and context to draw.
      pos - position to render at
      ctx - rendering event
    • internalBackportDraw

      public void internalBackportDraw(BlueprintPreviewData previewData, net.minecraft.core.BlockPos pos, net.minecraftforge.client.event.RenderLevelStageEvent ctx)
      DO NOT USE IN MCOL
    • cleanCache

      public void cleanCache()
      Cleans entries that are older than CACHE_EVICT_TIME.
    • clearCache

      public void clearCache()
      Clear all entries.
    • drawAtListOfPositions

      public void drawAtListOfPositions(BlueprintPreviewData previewData, List<net.minecraft.core.BlockPos> points, net.minecraftforge.client.event.RenderLevelStageEvent ctx)
      Draw a blueprint at list of given pos.
      Parameters:
      previewData - the blueprint and context to draw.
      points - list of positions to render at
      ctx - rendering event