Adds some events that trigger when NPC actions start or end, and when sounds are played
This commit is contained in:
@ -0,0 +1,29 @@
|
||||
package net.knarcraft.blacksmith.event;
|
||||
|
||||
import net.citizensnpcs.api.npc.NPC;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
/**
|
||||
* An event triggered by the Blacksmith plugin
|
||||
*/
|
||||
@SuppressWarnings("unused")
|
||||
public interface BlacksmithPluginEvent {
|
||||
|
||||
/**
|
||||
* Gets the NPC involved in the event
|
||||
*
|
||||
* @return <p>The NPC</p>
|
||||
*/
|
||||
@NotNull
|
||||
NPC getNpc();
|
||||
|
||||
/**
|
||||
* Gets the player involved in the event
|
||||
*
|
||||
* @return <p>The player</p>
|
||||
*/
|
||||
@NotNull
|
||||
Player getPlayer();
|
||||
|
||||
}
|
Reference in New Issue
Block a user