Interface RandomMobDrop

All Superinterfaces:
ItemAttribute
All Known Implementing Classes:
BasicCircuitBoard

public interface RandomMobDrop extends ItemAttribute
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 Type
    Method
    Description
    int
    Implement this method to make the object have a variable chance of being added to the dropList when EntityType specified in the RecipeType.MOB_DROP is killed by the Player.

    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 when EntityType specified in the RecipeType.MOB_DROP is killed by the Player.
      Returns:
      The integer chance (0-100%) SlimefunItem has to drop.