Class DropTable
java.lang.Object
studio.magemonkey.codex.manager.LoadableItem
studio.magemonkey.divinity.modules.list.drops.object.DropTable
- All Implemented Interfaces:
DropCalculator
public class DropTable
extends studio.magemonkey.codex.manager.LoadableItem
implements DropCalculator
-
Field Summary
FieldsFields inherited from class studio.magemonkey.codex.manager.LoadableItem
cfg, id, path, plugin -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancanDrop(org.bukkit.entity.LivingEntity npc) protected booleancheckForLocation(org.bukkit.entity.LivingEntity npc) dropCalculator(org.bukkit.entity.Player killer, org.bukkit.entity.LivingEntity npc, float dropModifier) getDrop()intbooleanbooleanprotected voidsave(studio.magemonkey.codex.config.api.JYML cfg) Methods inherited from class studio.magemonkey.codex.manager.LoadableItem
getConfig, getFile, getId, save
-
Field Details
-
name
-
rollOnce
protected boolean rollOnce -
worldsGood
-
biomesGood
-
regionsBad
-
dropList
-
nonItemDrops
-
-
Constructor Details
-
DropTable
-
-
Method Details
-
save
protected void save(@NotNull studio.magemonkey.codex.config.api.JYML cfg) - Specified by:
savein classstudio.magemonkey.codex.manager.LoadableItem
-
getGroupName
-
isRollOnce
public boolean isRollOnce() -
isLevelPenalty
public boolean isLevelPenalty() -
getPenaltyVariance
public int getPenaltyVariance() -
getAllowedWorlds
-
getAllowedBiomes
-
getDisallowedRegions
-
getDrop
-
getNonItemDrops
-
checkForLocation
protected boolean checkForLocation(@NotNull org.bukkit.entity.LivingEntity npc) - Parameters:
npc- Instance of a valid entity- Returns:
- True if drop is possible at this location.
-
canDrop
protected boolean canDrop(@NotNull org.bukkit.entity.LivingEntity npc) -
dropCalculator
public Set<Drop> dropCalculator(@Nullable org.bukkit.entity.Player killer, @NotNull org.bukkit.entity.LivingEntity npc, float dropModifier) - Specified by:
dropCalculatorin interfaceDropCalculator
-