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.loot.LootManager
All Implemented Interfaces:
org.bukkit.event.Listener, studio.magemonkey.codex.manager.AbstractListener, studio.magemonkey.codex.manager.api.Loggable

public class LootManager 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
    despawnLoot(org.bukkit.Location loc)
     
     
     
    int
     
    getPartyRollTask(org.bukkit.entity.Player player)
     
    boolean
    isApplicable(org.bukkit.entity.LivingEntity entity)
     
    boolean
     
    boolean
    isLootBox(org.bukkit.Location loc)
     
    void
    onLootBreak(org.bukkit.event.block.BlockBreakEvent e)
     
    void
    onLootClick(org.bukkit.event.player.PlayerInteractEvent e)
     
    void
    onLootCreatureSpawn(org.bukkit.event.entity.CreatureSpawnEvent e)
     
    void
    onLootDeath(org.bukkit.event.entity.EntityDeathEvent e)
     
    void
    onLootExplode(org.bukkit.event.entity.EntityExplodeEvent e)
     
    void
    onLootExplode2(org.bukkit.event.block.BlockExplodeEvent e)
     
    void
    onLootExtend(org.bukkit.event.block.BlockPistonExtendEvent e)
     
    void
    onLootLiquid(org.bukkit.event.block.BlockFromToEvent e)
     
    void
    onLootRetract(org.bukkit.event.block.BlockPistonRetractEvent e)
     
    void
    Transfer the owner of party loot box to another party member, when the 'killer/owner' lefts the party.
    void
     
    void
     
    boolean
    spawnLoot(org.bukkit.entity.LivingEntity killer, org.bukkit.entity.LivingEntity dead, List<org.bukkit.inventory.ItemStack> loot)
     
     

    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

    • LootManager

      public LootManager(@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>
    • isDropProtect

      public boolean isDropProtect()
    • getLootTime

      public int getLootTime()
    • getHoloText

      @NotNull public List<String> getHoloText()
    • spawnLoot

      public boolean spawnLoot(@Nullable org.bukkit.entity.LivingEntity killer, @NotNull org.bukkit.entity.LivingEntity dead, @NotNull List<org.bukkit.inventory.ItemStack> loot)
    • despawnLoot

      public void despawnLoot(@NotNull org.bukkit.Location loc)
    • isApplicable

      public boolean isApplicable(@NotNull org.bukkit.entity.LivingEntity entity)
    • getPartyRollTask

      @Nullable public LootHolder.RollTask getPartyRollTask(@NotNull org.bukkit.entity.Player player)
    • isLootBox

      public boolean isLootBox(@NotNull org.bukkit.Location loc)
    • onLootBreak

      public void onLootBreak(org.bukkit.event.block.BlockBreakEvent e)
    • onLootExplode

      public void onLootExplode(org.bukkit.event.entity.EntityExplodeEvent e)
    • onLootExplode2

      public void onLootExplode2(org.bukkit.event.block.BlockExplodeEvent e)
    • onLootLiquid

      public void onLootLiquid(org.bukkit.event.block.BlockFromToEvent e)
    • onLootExtend

      public void onLootExtend(org.bukkit.event.block.BlockPistonExtendEvent e)
    • onLootRetract

      public void onLootRetract(org.bukkit.event.block.BlockPistonRetractEvent e)
    • onLootCreatureSpawn

      public void onLootCreatureSpawn(org.bukkit.event.entity.CreatureSpawnEvent e)
    • onLootDeath

      public void onLootDeath(org.bukkit.event.entity.EntityDeathEvent e)
    • onLootClick

      public void onLootClick(org.bukkit.event.player.PlayerInteractEvent e)
    • onPartyLeave

      public void onPartyLeave(PlayerLeavePartyEvent e)
      Transfer the owner of party loot box to another party member, when the 'killer/owner' lefts the party. Avoid scum for party members.
      Parameters:
      e -