--- a/net/minecraft/world/level/block/SelectableSlotContainer.java
+++ b/net/minecraft/world/level/block/SelectableSlotContainer.java
@@ -43,7 +_,7 @@
         }
     }
 
-    private static int getSection(float pos, int count) {
+    public static int getSection(float pos, int count) {
         float f = pos * 16.0F;
         float f1 = 16.0F / count;
         return Mth.clamp(Mth.floor(f / f1), 0, count - 1);
