From d7144e445e166ae94cd8a592a0c37616229fdd96 Mon Sep 17 00:00:00 2001 From: A248 Date: Thu, 31 Oct 2019 19:50:46 -0400 Subject: [PATCH] Update NPC.java with getText() and getItem() Adds these methods to the NPC interface. --- api/src/main/java/net/jitse/npclib/api/NPC.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/api/src/main/java/net/jitse/npclib/api/NPC.java b/api/src/main/java/net/jitse/npclib/api/NPC.java index 4c8b71a..7fa369f 100644 --- a/api/src/main/java/net/jitse/npclib/api/NPC.java +++ b/api/src/main/java/net/jitse/npclib/api/NPC.java @@ -112,4 +112,19 @@ public interface NPC { NPC setItem(NPCSlot slot, ItemStack item); NPC setText(List text); + + /** + * Get the text of an NPC + * + * @return List text + */ + List getText(); + + /** + * Get a NPC's item. + * + * @param slot The slot the item is in. + * @return ItemStack item. + */ + ItemStack getItem(NPCSlot slot); }