Fix for #80, added API usage for NPC#getUniqueId

This commit is contained in:
Jitse Boonstra 2020-04-26 17:35:41 +02:00
parent 2d674e537e
commit b5e69e9126
2 changed files with 9 additions and 0 deletions

View File

@ -13,6 +13,7 @@ import org.bukkit.entity.Player;
import org.bukkit.inventory.ItemStack; import org.bukkit.inventory.ItemStack;
import java.util.List; import java.util.List;
import java.util.UUID;
public interface NPC { public interface NPC {
@ -142,4 +143,11 @@ public interface NPC {
* @param skin The new skin for the NPC. * @param skin The new skin for the NPC.
*/ */
void updateSkin(Skin skin); void updateSkin(Skin skin);
/**
* Get the UUID of the NPC.
*
* @return The UUID of the NPC.
*/
UUID getUniqueId();
} }

View File

@ -59,6 +59,7 @@ public abstract class NPCBase implements NPC, NPCPacketHandler {
return instance; return instance;
} }
@Override
public UUID getUniqueId() { public UUID getUniqueId() {
return uuid; return uuid;
} }