Interface RandomMobDrop
- All Superinterfaces:
ItemAttribute
- All Known Implementing Classes:
BasicCircuitBoard
This interface, when attached to a
SlimefunItem, provides an easy method for adding
a % chance to drop for an SlimefunItem on EntityDeathEvent, this chance is 0-100
and used in conjunction with the RecipeType.MOB_DROP.- Author:
- dNiym
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionintImplement this method to make the object have a variable chance of being added to the dropList whenEntityTypespecified in theRecipeType.MOB_DROPis killed by thePlayer.Methods inherited from interface io.github.thebusybiscuit.slimefun4.core.attributes.ItemAttribute
getId
-
Method Details
-
getMobDropChance
int getMobDropChance()Implement this method to make the object have a variable chance of being added to the dropList whenEntityTypespecified in theRecipeType.MOB_DROPis killed by thePlayer.- Returns:
- The integer chance (0-100%)
SlimefunItemhas to drop.
-