Package noppes.npcs.api.event
Class ItemEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
noppes.npcs.api.event.CustomNPCsEvent
noppes.npcs.api.event.ItemEvent
- Direct Known Subclasses:
ItemEvent.AttackEvent
,ItemEvent.InitEvent
,ItemEvent.InteractEvent
,ItemEvent.PickedUpEvent
,ItemEvent.SpawnEvent
,ItemEvent.TossedEvent
,ItemEvent.UpdateEvent
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
attack
Will trigger if you have an item and left click into the air or left click a block or left click an entitystatic class
initstatic class
interact
Will trigger if you have an item and right click into the air Or right click a block Or right click an entitystatic class
pickedUp
When Cancelled it prevents the item from spawning in the level, the item still disappears from the inventorystatic class
spawnstatic class
toss
When Cancelled it prevents the item from spawning in the level, the item still disappears from the inventorystatic class
tick
When the item is in an inventory this will be called every 10 ticks (0.5 seconds)Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
Field Summary
FieldsFields inherited from class noppes.npcs.api.event.CustomNPCsEvent
API
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
Field Details
-
item
-
-
Constructor Details
-
ItemEvent
-