Package com.soulfiremc.server.util
Class SFInventoryHelpers
java.lang.Object
com.soulfiremc.server.util.SFInventoryHelpers
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic OptionalInt
findMatchingSlotForAction
(net.minecraft.world.entity.player.Inventory inventory, net.minecraft.world.inventory.InventoryMenu menu, Predicate<net.minecraft.world.item.ItemStack> predicate) static int
getSelectedSlot
(net.minecraft.world.entity.player.Inventory inventory) static boolean
isSelectableHotbarSlot
(int slot) static int
toHotbarIndex
(int slot)
-
Constructor Details
-
SFInventoryHelpers
public SFInventoryHelpers()
-
-
Method Details
-
isSelectableHotbarSlot
public static boolean isSelectableHotbarSlot(int slot) -
toHotbarIndex
public static int toHotbarIndex(int slot) -
getSelectedSlot
public static int getSelectedSlot(net.minecraft.world.entity.player.Inventory inventory) -
findMatchingSlotForAction
public static OptionalInt findMatchingSlotForAction(net.minecraft.world.entity.player.Inventory inventory, net.minecraft.world.inventory.InventoryMenu menu, Predicate<net.minecraft.world.item.ItemStack> predicate)
-