Fix for #80, added API usage for NPC#getUniqueId
This commit is contained in:
parent
2d674e537e
commit
b5e69e9126
|
@ -13,6 +13,7 @@ import org.bukkit.entity.Player;
|
|||
import org.bukkit.inventory.ItemStack;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.UUID;
|
||||
|
||||
public interface NPC {
|
||||
|
||||
|
@ -142,4 +143,11 @@ public interface NPC {
|
|||
* @param skin The new skin for the NPC.
|
||||
*/
|
||||
void updateSkin(Skin skin);
|
||||
|
||||
/**
|
||||
* Get the UUID of the NPC.
|
||||
*
|
||||
* @return The UUID of the NPC.
|
||||
*/
|
||||
UUID getUniqueId();
|
||||
}
|
||||
|
|
|
@ -59,6 +59,7 @@ public abstract class NPCBase implements NPC, NPCPacketHandler {
|
|||
return instance;
|
||||
}
|
||||
|
||||
@Override
|
||||
public UUID getUniqueId() {
|
||||
return uuid;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue