Class SlimefunUtils
- java.lang.Object
-
- io.github.thebusybiscuit.slimefun4.utils.SlimefunUtils
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
containsSimilarItem(Inventory inventory, ItemStack itemStack, boolean checkLore)
static boolean
hasNoPickupFlag(Item item)
This method quickly returns whether anItem
was marked as "no_pickup" by a Slimefun device.static boolean
isItemSimilar(ItemStack item, ItemStack sfitem, boolean checkLore)
static boolean
isSoulbound(ItemStack item)
static void
markAsNoPickup(Item item, String context)
This will prevent the givenItem
from being picked up.
-
-
-
Method Detail
-
hasNoPickupFlag
public static boolean hasNoPickupFlag(Item item)
This method quickly returns whether anItem
was marked as "no_pickup" by a Slimefun device.
-
markAsNoPickup
public static void markAsNoPickup(Item item, String context)
This will prevent the givenItem
from being picked up. This is useful for display items which theAncientPedestal
uses.
-
isSoulbound
public static boolean isSoulbound(ItemStack item)
- Parameters:
item
- TheItemStack
to check for- Returns:
- Whether the given item is soulbound
-
containsSimilarItem
public static boolean containsSimilarItem(Inventory inventory, ItemStack itemStack, boolean checkLore)
-
-