Class RenderHelperLevel

java.lang.Object
org.moddingx.libx.render.RenderHelperLevel

public class RenderHelperLevel extends Object
Utilities for rendering in the level.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    loadCameraPosition(net.minecraft.client.Camera camera, com.mojang.blaze3d.vertex.PoseStack poseStack, double x, double y, double z)
    This is meant to be called in RenderLevelStageEvent.
    static void
    loadCameraPosition(net.minecraft.client.Camera camera, com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.core.BlockPos pos)
    This is meant to be called in RenderLevelStageEvent.
    static void
    loadCameraPosition(net.minecraft.client.Camera camera, com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.world.phys.Vec3 pos)
    This is meant to be called in RenderLevelStageEvent.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RenderHelperLevel

      public RenderHelperLevel()
  • Method Details

    • loadCameraPosition

      public static void loadCameraPosition(net.minecraft.client.Camera camera, com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.core.BlockPos pos)
      This is meant to be called in RenderLevelStageEvent. This will move the pose stack to the given position in the world. Do not always use this with (0, 0, 0) and translate to the position you need afterward as it will be buggy millions of blocks away because of rounding errors.
    • loadCameraPosition

      public static void loadCameraPosition(net.minecraft.client.Camera camera, com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.world.phys.Vec3 pos)
      This is meant to be called in RenderLevelStageEvent. This will move the pose stack to the given position in the world. Do not always use this with (0, 0, 0) and translate to the position you need afterward as it will be buggy millions of blocks away because of rounding errors.
    • loadCameraPosition

      public static void loadCameraPosition(net.minecraft.client.Camera camera, com.mojang.blaze3d.vertex.PoseStack poseStack, double x, double y, double z)
      This is meant to be called in RenderLevelStageEvent. This will move the pose stack to the given position in the world. Do not always use this with (0, 0, 0) and translate to the position you need afterward as it will be buggy millions of blocks away because of rounding errors.