Package noppes.npcs.api.event
Interface IItemEvent
-
- All Superinterfaces:
ICustomNPCsEvent
- All Known Subinterfaces:
IItemEvent.AttackEvent,IItemEvent.BreakItem,IItemEvent.FinishUsingItem,IItemEvent.InitEvent,IItemEvent.InteractEvent,IItemEvent.PickedUpEvent,IItemEvent.RepairItem,IItemEvent.RightClickEvent,IItemEvent.SpawnEvent,IItemEvent.StartUsingItem,IItemEvent.StopUsingItem,IItemEvent.TossedEvent,IItemEvent.UpdateEvent,IItemEvent.UsingItem,ILinkedItemEvent,ILinkedItemEvent.BuildEvent,ILinkedItemEvent.VersionChangeEvent
public interface IItemEvent extends ICustomNPCsEvent
Events fired for scripted/customizable items during their lifecycle and interactions.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceIItemEvent.AttackEventFired when the item is used to attack an entity.static interfaceIItemEvent.BreakItemFired when the item breaks due to durability loss or consumption.static interfaceIItemEvent.FinishUsingItemFired when the player finishes using the item (full duration).static interfaceIItemEvent.InitEventFired when the item is initialized.static interfaceIItemEvent.InteractEventFired when the item is used to interact with an entity.static interfaceIItemEvent.PickedUpEventFired when the item is picked up.static interfaceIItemEvent.RepairItemFired when the item is repaired on an anvil.static interfaceIItemEvent.RightClickEventFired when the item is right-clicked.static interfaceIItemEvent.SpawnEventFired when the item entity spawns in the world.static interfaceIItemEvent.StartUsingItemFired when the player starts using the item (e.g., drawing a bow).static interfaceIItemEvent.StopUsingItemFired when the player stops using the item before completion.static interfaceIItemEvent.TossedEventFired when the item is tossed/dropped.static interfaceIItemEvent.UpdateEventFired each tick while the item exists in an entity's inventory.static interfaceIItemEvent.UsingItemFired each tick while the player is using the item.-
Nested classes/interfaces inherited from interface noppes.npcs.api.event.ICustomNPCsEvent
ICustomNPCsEvent.CNPCNaturalSpawnEvent, ICustomNPCsEvent.ScriptedCommandEvent
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IItemCustomizablegetItem()-
Methods inherited from interface noppes.npcs.api.event.ICustomNPCsEvent
getHookName
-
-
-
-
Method Detail
-
getItem
IItemCustomizable getItem()
- Returns:
- the customizable item associated with this event.
-
-