Package noppes.npcs.api.event
Class ItemEvent.AttackEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
noppes.npcs.api.event.CustomNPCsEvent
noppes.npcs.api.event.ItemEvent
noppes.npcs.api.event.ItemEvent.AttackEvent
- Enclosing class:
- ItemEvent
attack
Will trigger if you have an item and left click into the air or left click a block or left click an entity
Will trigger if you have an item and left click into the air or left click a block or left click an entity
-
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.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal IDamageSource
The attack event for entities also has the damageSourcefinal Object
final int
0:air, 1:entity, 2:blockFields inherited from class noppes.npcs.api.event.CustomNPCsEvent
API
-
Constructor Summary
ConstructorsConstructorDescriptionAttackEvent
(IItemScripted item, IPlayer player, int type, Object target) AttackEvent
(IItemScripted item, IPlayer player, IEntity target, IDamageSource damageSource) -
Method Summary
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
Field Details
-
type
public final int type0:air, 1:entity, 2:block -
target
-
player
-
damageSource
The attack event for entities also has the damageSource
-
-
Constructor Details
-
AttackEvent
-
AttackEvent
-