Package noppes.npcs.api.event
Class ItemEvent.TossedEvent
java.lang.Object
net.minecraftforge.fml.common.eventhandler.Event
noppes.npcs.api.event.CustomNPCsEvent
noppes.npcs.api.event.ItemEvent
noppes.npcs.api.event.ItemEvent.TossedEvent
- Enclosing class:
- ItemEvent
public static class ItemEvent.TossedEvent extends ItemEvent
toss
When Cancelled it prevents the item from spawning in the world, the item still disappears from the inventory
When Cancelled it prevents the item from spawning in the world, the item still disappears from the inventory
-
Nested Class Summary
Nested classes/interfaces inherited from class noppes.npcs.api.event.ItemEvent
ItemEvent.AttackEvent, ItemEvent.InitEvent, ItemEvent.InteractEvent, ItemEvent.PickedUpEvent, ItemEvent.SpawnEvent, ItemEvent.TossedEvent, ItemEvent.UpdateEvent
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 IEntityItem
entity
IPlayer
player
Fields inherited from class noppes.npcs.api.event.CustomNPCsEvent
API
-
Constructor Summary
Constructors Constructor Description TossedEvent(IItemScripted item, IPlayer player, IEntityItem entity)
-
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
-
entity
-
player
-
-
Constructor Details
-
TossedEvent
-