Move InventoryView handling to separate modules

This commit is contained in:
Heliosares
2024-07-18 19:31:14 -04:00
parent 841a085f74
commit 95c9b22eb2
4 changed files with 20 additions and 1 deletions

View File

@@ -1,4 +1,10 @@
package dev.heliosares.auxprotect.utils;
import org.bukkit.entity.HumanEntity;
import org.bukkit.inventory.Inventory;
public class InventoryUtil_1_21 {
public static Inventory getTopInventory(HumanEntity player) {
return player.getOpenInventory().getTopInventory();
}
}