Class DropItem
java.lang.Object
studio.magemonkey.divinity.modules.list.drops.object.DropItem
- All Implemented Interfaces:
DropCalculator
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondropCalculator(org.bukkit.entity.Player killer, org.bukkit.entity.LivingEntity npc, float dropModifier) voidexecuteActions(org.bukkit.entity.Player player, Map<String, Set<org.bukkit.entity.Entity>> targetMap) floatintgetLevel(org.bukkit.entity.Player player, org.bukkit.entity.LivingEntity src) intgetLvlMax(org.bukkit.entity.Player player, org.bukkit.entity.LivingEntity src) intgetLvlMin(org.bukkit.entity.Player player, org.bukkit.entity.LivingEntity src) intintQModuleDrop<?> booleantoString()
-
Field Details
-
noModifier
protected boolean noModifier
-
-
Constructor Details
-
DropItem
public DropItem(float chance, @NotNull QModuleDrop<?> module, @NotNull String itemId, @Nullable String tierId, int amountMin, int amountMax, @NotNull String levelMin, @NotNull String levelMax, @NotNull List<String> dropConditions, @NotNull studio.magemonkey.codex.util.actions.ActionManipulator dropActions)
-
-
Method Details
-
getModuleId
-
getItemId
-
getTierId
-
getMinAmount
public int getMinAmount() -
getMaxAmount
public int getMaxAmount() -
getChance
public float getChance() -
isNoModifier
public boolean isNoModifier() -
getLvlMin
public int getLvlMin(@NotNull org.bukkit.entity.Player player, @NotNull org.bukkit.entity.LivingEntity src) -
getLvlMax
public int getLvlMax(@NotNull org.bukkit.entity.Player player, @NotNull org.bukkit.entity.LivingEntity src) -
getLevel
public int getLevel(@NotNull org.bukkit.entity.Player player, @NotNull org.bukkit.entity.LivingEntity src) -
getConditions
-
executeActions
-
dropCalculator
public Set<Drop> dropCalculator(@Nullable org.bukkit.entity.Player killer, @NotNull org.bukkit.entity.LivingEntity npc, float dropModifier) - Specified by:
dropCalculatorin interfaceDropCalculator
-
toString
-