Package noppes.npcs.api.event
Class PlayerEvent.AttackEvent
java.lang.Object
net.minecraftforge.fml.common.eventhandler.Event
noppes.npcs.api.event.CustomNPCsEvent
noppes.npcs.api.event.PlayerEvent
noppes.npcs.api.event.PlayerEvent.AttackEvent
- Enclosing class:
- PlayerEvent
public static class PlayerEvent.AttackEvent extends PlayerEvent
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.PlayerEvent
PlayerEvent.AttackEvent, PlayerEvent.BreakEvent, PlayerEvent.ChatEvent, PlayerEvent.ContainerClosed, PlayerEvent.ContainerOpen, PlayerEvent.DamagedEntityEvent, PlayerEvent.DamagedEvent, PlayerEvent.DiedEvent, PlayerEvent.FactionUpdateEvent, PlayerEvent.InitEvent, PlayerEvent.InteractEvent, PlayerEvent.KeyPressedEvent, PlayerEvent.KilledEntityEvent, PlayerEvent.LevelUpEvent, PlayerEvent.LoginEvent, PlayerEvent.LogoutEvent, PlayerEvent.PickUpEvent, PlayerEvent.RangedLaunchedEvent, PlayerEvent.TimerEvent, PlayerEvent.TossEvent, PlayerEvent.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 java.lang.Object
target
int
type
0:air, 1:entity, 2:blockFields inherited from class noppes.npcs.api.event.PlayerEvent
player
Fields inherited from class noppes.npcs.api.event.CustomNPCsEvent
API
-
Constructor Summary
Constructors Constructor Description AttackEvent(IPlayer player, int type, java.lang.Object target)
-
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
-
type
public final int type0:air, 1:entity, 2:block -
target
public final java.lang.Object target
-
-
Constructor Details
-
AttackEvent
-