Class ItemEvents

java.lang.Object
me.efekos.simpler.items.ItemEvents
All Implemented Interfaces:
org.bukkit.event.Listener

public class ItemEvents extends Object implements org.bukkit.event.Listener
Listener class for custom items.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a new item events instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onBreak(org.bukkit.event.player.PlayerItemBreakEvent e)
    handles item break
    void
    onBreakBlock(org.bukkit.event.block.BlockBreakEvent e)
    handles item break block
    void
    onConsume(org.bukkit.event.player.PlayerItemConsumeEvent e)
    handles item consume
    void
    onDamage(org.bukkit.event.player.PlayerItemDamageEvent e)
    handles item damage
    void
    onDrop(org.bukkit.event.player.PlayerDropItemEvent e)
    handles item drop
    void
    onHeld(org.bukkit.event.player.PlayerItemHeldEvent e)
    handles item held
    void
    onInteract(org.bukkit.event.player.PlayerInteractEvent e)
    handles item clicks
    void
    onMend(org.bukkit.event.player.PlayerItemMendEvent e)
    handles item mend
    void
    onPickup(org.bukkit.event.entity.EntityPickupItemEvent e)
    handles item pickup

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ItemEvents

      public ItemEvents()
      Creates a new item events instance.
  • Method Details

    • onPickup

      public void onPickup(org.bukkit.event.entity.EntityPickupItemEvent e)
      handles item pickup
      Parameters:
      e - event
    • onDrop

      public void onDrop(org.bukkit.event.player.PlayerDropItemEvent e)
      handles item drop
      Parameters:
      e - event
    • onInteract

      public void onInteract(org.bukkit.event.player.PlayerInteractEvent e)
      handles item clicks
      Parameters:
      e - event
    • onBreakBlock

      public void onBreakBlock(org.bukkit.event.block.BlockBreakEvent e)
      handles item break block
      Parameters:
      e - event
    • onBreak

      public void onBreak(org.bukkit.event.player.PlayerItemBreakEvent e)
      handles item break
      Parameters:
      e - event
    • onDamage

      public void onDamage(org.bukkit.event.player.PlayerItemDamageEvent e)
      handles item damage
      Parameters:
      e - damage
    • onConsume

      public void onConsume(org.bukkit.event.player.PlayerItemConsumeEvent e)
      handles item consume
      Parameters:
      e - event
    • onMend

      public void onMend(org.bukkit.event.player.PlayerItemMendEvent e)
      handles item mend
      Parameters:
      e - event
    • onHeld

      public void onHeld(org.bukkit.event.player.PlayerItemHeldEvent e)
      handles item held
      Parameters:
      e - event