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 TypeMethodDescriptionint
Implement this method to make thisSlimefunItem
have a variable chance of being dropped by aPiglin
when 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 thisSlimefunItem
have a variable chance of being dropped by aPiglin
when 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 allPiglin
barter drops. (NOTE: this feature only exists in 1.16+)- Returns:
- The integer chance (1-99%) this
SlimefunItem
has to drop.
-