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 TypeMethodDescriptionint
Implement this method to make the object have a variable chance of being added to the dropList whenEntityType
specified in theRecipeType.MOB_DROP
is 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 whenEntityType
specified in theRecipeType.MOB_DROP
is killed by thePlayer
.- Returns:
- The integer chance (0-100%)
SlimefunItem
has to drop.
-