java.lang.Object
studio.magemonkey.codex.manager.LoadableItem
studio.magemonkey.divinity.modules.list.drops.object.DropMob
All Implemented Interfaces:
DropCalculator

public class DropMob extends studio.magemonkey.codex.manager.LoadableItem implements DropCalculator
  • Field Details

    • chance

      protected float chance
    • rollOnce

      protected boolean rollOnce
    • entityGood

      protected Set<String> entityGood
    • mythicGood

      protected Set<String> mythicGood
    • reasonsBad

      protected Set<String> reasonsBad
    • vanillaDrops

      protected boolean vanillaDrops
    • dropTables

      protected List<DropTable> dropTables
  • Constructor Details

    • DropMob

      public DropMob(@NotNull Divinity plugin, @NotNull studio.magemonkey.codex.config.api.JYML cfg, DropManager dropManager)
  • Method Details

    • isRollOnce

      public boolean isRollOnce()
    • getChance

      public float getChance()
    • getEntities

      @NotNull public Set<String> getEntities()
    • getMythic

      @NotNull public Set<String> getMythic()
    • getReasons

      @NotNull public Set<String> getReasons()
    • getDropTables

      @NotNull public List<DropTable> getDropTables()
    • save

      protected void save(@NotNull studio.magemonkey.codex.config.api.JYML cfg)
      Specified by:
      save in class studio.magemonkey.codex.manager.LoadableItem
    • dropCalculator

      public Set<Drop> dropCalculator(@Nullable org.bukkit.entity.Player killer, @NotNull org.bukkit.entity.LivingEntity npc, float dropModifier)
      Specified by:
      dropCalculator in interface DropCalculator