From 860602a2ce940cca3a54dd2ac70726f9a3e5242e Mon Sep 17 00:00:00 2001 From: Yasin <19829407+LifeIsAParadox@users.noreply.github.com> Date: Tue, 23 Jul 2024 15:27:10 +0200 Subject: Update RenderHelper.java --- .../hysky/skyblocker/utils/render/RenderHelper.java | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) (limited to 'src/main/java/de/hysky/skyblocker/utils') diff --git a/src/main/java/de/hysky/skyblocker/utils/render/RenderHelper.java b/src/main/java/de/hysky/skyblocker/utils/render/RenderHelper.java index 97c040c9..8454beba 100644 --- a/src/main/java/de/hysky/skyblocker/utils/render/RenderHelper.java +++ b/src/main/java/de/hysky/skyblocker/utils/render/RenderHelper.java @@ -351,6 +351,13 @@ public class RenderHelper { } } + /** + * Retrieves the bounding box of a block in the world. + * + * @param world The client world. + * @param pos The position of the block. + * @return The bounding box of the block. + */ public static Box getBlockBoundingBox(ClientWorld world, BlockPos pos) { return getBlockBoundingBox(world, world.getBlockState(pos), pos); } @@ -474,16 +481,4 @@ public class RenderHelper { return null; } - - /** - * Retrieves the bounding box of a block in the world. - * - * @param world The client world. - * @param pos The position of the block. - * @return The bounding box of the block. - */ - public static Box getBlockBoundingBox(BlockView world, BlockPos pos) { - BlockState blockState = world.getBlockState(pos); - return blockState.getOutlineShape(world, pos).getBoundingBox().offset(pos); - } } -- cgit