Class DismantleManager

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

public class DismantleManager extends QModuleDrop<DismantleManager.DismantleItem>
  • Constructor Details

    • DismantleManager

      public DismantleManager(@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>
    • openDismantleGUI

      public void openDismantleGUI(@NotNull org.bukkit.entity.Player player, boolean isForce)
    • getResult

      @Nullable public DismantleManager.OutputContainer getResult(@NotNull org.bukkit.inventory.ItemStack item)
    • isDismantleable

      public boolean isDismantleable(@NotNull org.bukkit.inventory.ItemStack item)
    • dismantle

      public boolean dismantle(@NotNull org.bukkit.entity.Player player, @NotNull org.bukkit.inventory.ItemStack item)
    • onDragDrop

      protected boolean onDragDrop(@NotNull org.bukkit.entity.Player player, @NotNull org.bukkit.inventory.ItemStack src, @NotNull org.bukkit.inventory.ItemStack target, @NotNull DismantleManager.DismantleItem rItem, @NotNull org.bukkit.event.inventory.InventoryClickEvent e)
      Overrides:
      onDragDrop in class QModuleDrop<DismantleManager.DismantleItem>
    • onDismantleMain

      public void onDismantleMain(PlayerDismantleItemEvent e)