Class CommonPlayerNpcEvent
java.lang.Object
com.github.juliarn.npclib.common.event.CommonNpcEvent
com.github.juliarn.npclib.common.event.CommonPlayerNpcEvent
- All Implemented Interfaces:
com.github.juliarn.npclib.api.event.NpcEvent,com.github.juliarn.npclib.api.event.PlayerNpcEvent
- Direct Known Subclasses:
DefaultAttackNpcEvent,DefaultHideNpcEvent,DefaultInteractNpcEvent,DefaultShowNpcEvent
public abstract class CommonPlayerNpcEvent
extends CommonNpcEvent
implements com.github.juliarn.npclib.api.event.PlayerNpcEvent
-
Field Summary
FieldsFields inherited from class com.github.juliarn.npclib.common.event.CommonNpcEvent
npc -
Constructor Summary
ConstructorsConstructorDescriptionCommonPlayerNpcEvent(@NotNull com.github.juliarn.npclib.api.Npc<?, ?, ?, ?> npc, @NotNull Object player) -
Method Summary
Methods inherited from class com.github.juliarn.npclib.common.event.CommonNpcEvent
npcMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.github.juliarn.npclib.api.event.NpcEvent
npc
-
Field Details
-
player
-
-
Constructor Details
-
CommonPlayerNpcEvent
public CommonPlayerNpcEvent(@NotNull @NotNull com.github.juliarn.npclib.api.Npc<?, ?, ?, ?> npc, @NotNull @NotNull Object player)
-
-
Method Details
-
player
@NotNull public <P> P player()- Specified by:
playerin interfacecom.github.juliarn.npclib.api.event.PlayerNpcEvent
-