Interface PiglinBarterDrop
- All Superinterfaces:
ItemAttribute
- All Known Implementing Classes:
StrangeNetherGoo
This interface, when attached to a
SlimefunItem, provides a variable (0-100%) chance for
a SlimefunItem to be dropped by a Piglin on EntityDropItemEvent.- Author:
- dNiym
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionintImplement this method to make thisSlimefunItemhave a variable chance of being dropped by aPiglinwhen bartering with them.Methods inherited from interface io.github.thebusybiscuit.slimefun4.core.attributes.ItemAttribute
getId
-
Method Details
-
getBarteringLootChance
int getBarteringLootChance()Implement this method to make thisSlimefunItemhave a variable chance of being dropped by aPiglinwhen bartering with them. This interface should be used with theRecipeType.BARTER_DROP. It is recommended that this chance is kept reasonably low to feel like a vanilla drop as a 100% chance will completely override allPiglinbarter drops. (NOTE: this feature only exists in 1.16+)- Returns:
- The integer chance (1-99%) this
SlimefunItemhas to drop.
-