Class GuidebookLevelRenderer

java.lang.Object
guideme.scene.GuidebookLevelRenderer

public class GuidebookLevelRenderer extends Object
  • Constructor Details

    • GuidebookLevelRenderer

      public GuidebookLevelRenderer()
  • Method Details

    • getInstance

      public static GuidebookLevelRenderer getInstance()
    • render

      public void render(GuidebookLevel level, CameraSettings cameraSettings, Collection<InWorldAnnotation> annotations, LightDarkMode lightDarkMode)
    • renderContent

      public void renderContent(GuidebookLevel level, net.minecraft.client.renderer.SubmitNodeCollector nodes, com.mojang.blaze3d.vertex.PoseStack poseStack)
      Render without any setup. Unlike render(GuidebookLevel, CameraSettings, Collection, LightDarkMode), this tessellates the blocks and fluids of the level on every call, since their geometry isn't kept.
    • clearCache

      @Internal public void clearCache()
      Drops the cached fake player so that leaving a world does not keep that world's registries alive.
    • freeMeshCaches

      @Internal public void freeMeshCaches()
      Frees all cached scene geometry. Scenes that are still shown rebuild it the next time they are rendered.
    • freeUnusedMeshCaches

      @Internal public void freeUnusedMeshCaches()
      Frees cached scene geometry that hasn't been used recently. The guide screen frees all cached geometry when it changes pages or closes, so this is for scenes rendered elsewhere.