java.lang.Object
studio.magemonkey.codex.manager.IListener<Divinity>
studio.magemonkey.divinity.modules.list.loot.LootHolder
All Implemented Interfaces:
org.bukkit.event.Listener, org.bukkit.inventory.InventoryHolder, studio.magemonkey.codex.manager.AbstractListener

public class LootHolder extends studio.magemonkey.codex.manager.IListener<Divinity> implements org.bukkit.inventory.InventoryHolder
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    class 
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final org.bukkit.Location
     
    protected long
     
    protected org.bukkit.inventory.Inventory
     
    protected UUID
     
    protected LootManager
     
    protected UUID
     
    protected String
     
    protected int
     
    protected final String
     
    protected Set<org.bukkit.entity.Player>
     

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

    plugin
  • Constructor Summary

    Constructors
    Constructor
    Description
    LootHolder(LootManager manager, org.bukkit.Location boxLoc, org.bukkit.entity.LivingEntity killer, org.bukkit.entity.LivingEntity dead, List<org.bukkit.inventory.ItemStack> loot)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.bukkit.inventory.Inventory
     
     
    boolean
     
    boolean
    isOwner(org.bukkit.entity.Player player)
     
    void
    onLootClick(org.bukkit.event.inventory.InventoryClickEvent e)
     
    void
    onLootClose(org.bukkit.event.inventory.InventoryCloseEvent e)
     
    void
    onLootDrag(org.bukkit.event.inventory.InventoryDragEvent e)
     
    void
    open(org.bukkit.entity.Player player)
     
    void
     
    final void
     
    void
     

    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
  • Field Details

    • manager

      protected LootManager manager
    • boxLoc

      protected final org.bukkit.Location boxLoc
    • title

      protected final String title
    • size

      protected int size
    • despawnTime

      protected long despawnTime
    • ownerId

      protected UUID ownerId
    • invId

      protected UUID invId
    • ownerName

      protected String ownerName
    • inv

      protected org.bukkit.inventory.Inventory inv
    • viewers

      protected Set<org.bukkit.entity.Player> viewers
  • Constructor Details

    • LootHolder

      public LootHolder(LootManager manager, @NotNull org.bukkit.Location boxLoc, @Nullable org.bukkit.entity.LivingEntity killer, @NotNull org.bukkit.entity.LivingEntity dead, @NotNull List<org.bukkit.inventory.ItemStack> loot)
  • Method Details

    • shutdown

      public final void shutdown()
    • getInventory

      @NotNull public org.bukkit.inventory.Inventory getInventory()
      Specified by:
      getInventory in interface org.bukkit.inventory.InventoryHolder
    • open

      public void open(@NotNull org.bukkit.entity.Player player)
    • isOwner

      public boolean isOwner(@NotNull org.bukkit.entity.Player player)
    • isExpired

      public boolean isExpired()
    • updateHolo

      public void updateHolo()
    • removeHolo

      public void removeHolo()
    • onLootDrag

      public void onLootDrag(org.bukkit.event.inventory.InventoryDragEvent e)
    • onLootClick

      public void onLootClick(org.bukkit.event.inventory.InventoryClickEvent e)
    • onLootClose

      public void onLootClose(org.bukkit.event.inventory.InventoryCloseEvent e)
    • getRollTask

      @Nullable public LootHolder.RollTask getRollTask()