aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/de
diff options
context:
space:
mode:
authorYasin <19829407+LifeIsAParadox@users.noreply.github.com>2024-07-23 15:27:10 +0200
committerYasin <19829407+LifeIsAParadox@users.noreply.github.com>2024-07-23 15:27:10 +0200
commit860602a2ce940cca3a54dd2ac70726f9a3e5242e (patch)
tree667a0c4f3d738148cb1d614d393cf7bc8ef77b10 /src/main/java/de
parentce73a0619c7f1bed2bbacaa64a17f0365b8cde15 (diff)
downloadSkyblocker-860602a2ce940cca3a54dd2ac70726f9a3e5242e.tar.gz
Skyblocker-860602a2ce940cca3a54dd2ac70726f9a3e5242e.tar.bz2
Skyblocker-860602a2ce940cca3a54dd2ac70726f9a3e5242e.zip
Update RenderHelper.java
Diffstat (limited to 'src/main/java/de')
-rw-r--r--src/main/java/de/hysky/skyblocker/utils/render/RenderHelper.java19
1 files changed, 7 insertions, 12 deletions
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);
- }
}