Files
Blacksmith/src/main/java/net/knarcraft/blacksmith/event/BlacksmithPluginEvent.java
EpicKnarvik97 f5bfbfd4f8
All checks were successful
EpicKnarvik97/Blacksmith/pipeline/head This commit looks good
Attenpts to mitigate an NPC's entity becoming unavailable
2024-09-27 01:37:07 +02:00

39 lines
712 B
Java

package net.knarcraft.blacksmith.event;
import net.citizensnpcs.api.npc.NPC;
import org.bukkit.entity.Entity;
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 entity of the NPC
*
* @return <p>The NPC entity</p>
*/
@NotNull
Entity getEntity();
/**
* Gets the player involved in the event
*
* @return <p>The player</p>
*/
@NotNull
Player getPlayer();
}