Package noppes.npcs.api.event
Class ItemEvent
java.lang.Object
net.minecraftforge.fml.common.eventhandler.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
public class ItemEvent extends CustomNPCsEvent
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ItemEvent.AttackEvent
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
ItemEvent.InitEvent
initstatic class
ItemEvent.InteractEvent
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
ItemEvent.PickedUpEvent
pickedUp
When Cancelled it prevents the item from spawning in the world, the item still disappears from the inventorystatic class
ItemEvent.SpawnEvent
spawnstatic class
ItemEvent.TossedEvent
toss
When Cancelled it prevents the item from spawning in the world, the item still disappears from the inventorystatic class
ItemEvent.UpdateEvent
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.fml.common.eventhandler.Event
net.minecraftforge.fml.common.eventhandler.Event.HasResult, net.minecraftforge.fml.common.eventhandler.Event.Result
-
Field Summary
Fields Modifier and Type Field Description IItemScripted
item
Fields inherited from class noppes.npcs.api.event.CustomNPCsEvent
API
-
Constructor Summary
Constructors Constructor Description ItemEvent(IItemScripted item)
-
Method Summary
Methods inherited from class net.minecraftforge.fml.common.eventhandler.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
item
-
-
Constructor Details
-
ItemEvent
-