NPCLib/src/net/jitse/npclib/events/NPCInteractEvent.java

50 lines
1.0 KiB
Java
Raw Normal View History

2018-04-13 18:23:46 +02:00
/*
2018-04-19 18:00:24 +02:00
* Copyright (c) 2018 Jitse Boonstra
2018-04-13 18:23:46 +02:00
*/
2018-04-13 08:07:59 +02:00
package net.jitse.npclib.events;
import net.jitse.npclib.api.NPC;
import net.jitse.npclib.events.click.ClickType;
import org.bukkit.entity.Player;
import org.bukkit.event.Event;
import org.bukkit.event.HandlerList;
2018-04-13 18:23:46 +02:00
/**
* @author Jitse Boonstra
*/
2018-04-13 08:07:59 +02:00
public class NPCInteractEvent extends Event {
private static final HandlerList handlers = new HandlerList();
private final Player player;
private final ClickType clickType;
private final NPC npc;
public NPCInteractEvent(Player player, ClickType clickType, NPC npc) {
this.player = player;
this.clickType = clickType;
this.npc = npc;
}
public Player getWhoClicked() {
return this.player;
}
public ClickType getClickType() {
return this.clickType;
}
public NPC getNPC() {
return this.npc;
}
public HandlerList getHandlers() {
return handlers;
}
public static HandlerList getHandlerList() {
return handlers;
}
}