Class SFInventoryHelpers
java.lang.Object
com.soulfiremc.server.util.SFInventoryHelpers
-
Method Summary
Modifier and TypeMethodDescriptionstatic OptionalIntfindMatchingSlotForAction(net.minecraft.world.entity.player.Inventory inventory, net.minecraft.world.inventory.InventoryMenu menu, Predicate<net.minecraft.world.item.ItemStack> predicate) static intgetSelectedSlot(net.minecraft.world.entity.player.Inventory inventory) static booleanisSelectableHotbarSlot(int slot) static inttoHotbarIndex(int slot)
-
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)
-