Package me.efekos.simpler.items
Class ItemEvents
java.lang.Object
me.efekos.simpler.items.ItemEvents
- All Implemented Interfaces:
org.bukkit.event.Listener
Listener class for custom items.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onBreak
(org.bukkit.event.player.PlayerItemBreakEvent e) handles item breakvoid
onBreakBlock
(org.bukkit.event.block.BlockBreakEvent e) handles item break blockvoid
onConsume
(org.bukkit.event.player.PlayerItemConsumeEvent e) handles item consumevoid
onDamage
(org.bukkit.event.player.PlayerItemDamageEvent e) handles item damagevoid
onDrop
(org.bukkit.event.player.PlayerDropItemEvent e) handles item dropvoid
onHeld
(org.bukkit.event.player.PlayerItemHeldEvent e) handles item heldvoid
onInteract
(org.bukkit.event.player.PlayerInteractEvent e) handles item clicksvoid
onMend
(org.bukkit.event.player.PlayerItemMendEvent e) handles item mendvoid
onPickup
(org.bukkit.event.entity.EntityPickupItemEvent e) handles item pickup
-
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
-