Adds some events that trigger when NPC actions start or end, and when sounds are played

This commit is contained in:
2024-07-28 17:12:26 +02:00
parent 81dda85405
commit 904adf46f0
20 changed files with 571 additions and 10 deletions

View File

@ -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();
}