java.lang.Object
studio.magemonkey.codex.manager.IListener<Divinity>
studio.magemonkey.codex.modules.IModule<Divinity>
studio.magemonkey.divinity.modules.api.QModule
studio.magemonkey.divinity.modules.list.drops.DropManager
All Implemented Interfaces:
org.bukkit.event.Listener, studio.magemonkey.codex.manager.AbstractListener, studio.magemonkey.codex.manager.api.Loggable

public class DropManager extends QModule
  • Field Summary

    Fields inherited from class studio.magemonkey.codex.modules.IModule

    cfg, moduleCommand

    Fields inherited from class studio.magemonkey.codex.manager.IListener

    plugin
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
    void
    onDropDeath(org.bukkit.event.entity.EntityDeathEvent e)
     
    void
    onDropSpawn(org.bukkit.event.entity.CreatureSpawnEvent e)
     
    List<org.bukkit.inventory.ItemStack>
    rollTable(org.bukkit.entity.Player target, DropTable table, int itemLvl)
     
    List<org.bukkit.inventory.ItemStack>
    rollTable(org.bukkit.Location loc, DropTable table, int itemLvl)
     
    void
     
    void
     
     

    Methods inherited from class studio.magemonkey.divinity.modules.api.QModule

    isDropable, isSocketable, onPostSetup

    Methods inherited from class studio.magemonkey.codex.modules.IModule

    error, getExecutor, getFullPath, getJYML, getPath, info, interruptLoad, isEnabled, isLoaded, load, name, onPreSetup, onReload, onUnload, reload, unload, warn

    Methods inherited from class studio.magemonkey.codex.manager.IListener

    registerListeners

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface studio.magemonkey.codex.manager.AbstractListener

    unregisterListeners
  • Constructor Details

    • DropManager

      public DropManager(@NotNull Divinity plugin)
  • Method Details

    • getId

      @NotNull public String getId()
      Specified by:
      getId in class studio.magemonkey.codex.modules.IModule<Divinity>
    • version

      @NotNull public String version()
      Specified by:
      version in class studio.magemonkey.codex.modules.IModule<Divinity>
    • setup

      public void setup()
      Specified by:
      setup in class studio.magemonkey.codex.modules.IModule<Divinity>
    • shutdown

      public void shutdown()
      Specified by:
      shutdown in class studio.magemonkey.codex.modules.IModule<Divinity>
    • getTables

      public List<DropTable> getTables()
    • getTableById

      @Nullable public DropTable getTableById(@NotNull String id)
    • rollTable

      public List<org.bukkit.inventory.ItemStack> rollTable(org.bukkit.entity.Player target, DropTable table, int itemLvl)
    • rollTable

      public List<org.bukkit.inventory.ItemStack> rollTable(org.bukkit.Location loc, DropTable table, int itemLvl)
    • onDropDeath

      public void onDropDeath(org.bukkit.event.entity.EntityDeathEvent e)
    • onDropSpawn

      public void onDropSpawn(org.bukkit.event.entity.CreatureSpawnEvent e)