Attenpts to mitigate an NPC's entity becoming unavailable
All checks were successful
EpicKnarvik97/Blacksmith/pipeline/head This commit looks good
All checks were successful
EpicKnarvik97/Blacksmith/pipeline/head This commit looks good
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
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;
|
||||
|
||||
@@ -18,6 +19,14 @@ public interface BlacksmithPluginEvent {
|
||||
@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
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user