Package org.moddingx.libx.render
Class RenderHelperLevel
java.lang.Object
org.moddingx.libx.render.RenderHelperLevel
Utilities for rendering in the level.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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 inRenderLevelStageEvent
.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 inRenderLevelStageEvent
.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 inRenderLevelStageEvent
.
-
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 inRenderLevelStageEvent
. 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 inRenderLevelStageEvent
. 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 inRenderLevelStageEvent
. 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.
-