Interface DistinctiveItem
- All Superinterfaces:
ItemAttribute
- All Known Implementing Classes:
Cooler
,RestoredBackpack
,SlimefunBackpack
,SoulboundBackpack
Implement this interface for any
SlimefunItem
to prevent
cargo using only its ID when comparing. #canStack is used when
comparing stacks- Author:
- Sefiraat
-
Method Summary
Modifier and TypeMethodDescriptionboolean
This method is called bySlimefunUtils.isItemSimilar(org.bukkit.inventory.ItemStack, org.bukkit.inventory.ItemStack, boolean)
when twoSlimefunItemStack
IDs match on a DistinctiveItem and should return if the two items can stack with one another.Methods inherited from interface io.github.thebusybiscuit.slimefun4.core.attributes.ItemAttribute
getId
-
Method Details
-
canStack
This method is called bySlimefunUtils.isItemSimilar(org.bukkit.inventory.ItemStack, org.bukkit.inventory.ItemStack, boolean)
when twoSlimefunItemStack
IDs match on a DistinctiveItem and should return if the two items can stack with one another.
-