-
- All Implemented Interfaces:
public interface DropStrategy
Defines how drops are obtained within MythicDrops.
-
-
Method Summary
Modifier and Type Method Description abstract List<Pair<ItemStack, Double>>
getDropsForCreatureSpawnEvent(CreatureSpawnEvent event)
Determines which drops should be given on a CreatureSpawnEvent. abstract List<Pair<ItemStack, Double>>
getDropsForEntityDeathEvent(EntityDeathEvent event)
Determines which drops should be given on a EntityDeathEvent. abstract String
getName()
Name of the drop strategy. abstract Double
getItemChance()
Chance for a mob to get an item at all. abstract Double
getTieredItemChance()
Calculated chance for a mob to get a tiered item. abstract Double
getCustomItemChance()
Calculated chance for a mob to get a custom item. abstract Double
getSocketGemChance()
Calculated chance for a mob to get a socket gem. abstract Double
getUnidentifiedItemChance()
Calculated chance for a mob to get an unidentified item. abstract Double
getIdentityTomeChance()
Calculated chance for a mob to get a identity tome. abstract Double
getSocketExtenderChance()
Calculated chance for a mob to get a socket extender. -
-
Method Detail
-
getDropsForCreatureSpawnEvent
abstract List<Pair<ItemStack, Double>> getDropsForCreatureSpawnEvent(CreatureSpawnEvent event)
Determines which drops should be given on a CreatureSpawnEvent. Returns a list of ItemStacks and their respective drop chances.
- Parameters:
event
- CreatureSpawnEvent to handle
-
getDropsForEntityDeathEvent
abstract List<Pair<ItemStack, Double>> getDropsForEntityDeathEvent(EntityDeathEvent event)
Determines which drops should be given on a EntityDeathEvent. Returns a list of ItemStacks and their respective drop chances.
- Parameters:
event
- EntityDeathEvent to handle
-
getItemChance
abstract Double getItemChance()
Chance for a mob to get an item at all.
-
getTieredItemChance
abstract Double getTieredItemChance()
Calculated chance for a mob to get a tiered item.
-
getCustomItemChance
abstract Double getCustomItemChance()
Calculated chance for a mob to get a custom item.
-
getSocketGemChance
abstract Double getSocketGemChance()
Calculated chance for a mob to get a socket gem.
-
getUnidentifiedItemChance
abstract Double getUnidentifiedItemChance()
Calculated chance for a mob to get an unidentified item.
-
getIdentityTomeChance
abstract Double getIdentityTomeChance()
Calculated chance for a mob to get a identity tome.
-
getSocketExtenderChance
abstract Double getSocketExtenderChance()
Calculated chance for a mob to get a socket extender.
-
-
-
-