Update NPC.java with getText() and getItem()

Adds these methods to the NPC interface.
This commit is contained in:
A248
2019-10-31 19:50:46 -04:00
committed by GitHub
parent 5e25836310
commit d7144e445e
@@ -112,4 +112,19 @@ public interface NPC {
NPC setItem(NPCSlot slot, ItemStack item); NPC setItem(NPCSlot slot, ItemStack item);
NPC setText(List<String> text); NPC setText(List<String> text);
/**
* Get the text of an NPC
*
* @return List<String> text
*/
List<String> getText();
/**
* Get a NPC's item.
*
* @param slot The slot the item is in.
* @return ItemStack item.
*/
ItemStack getItem(NPCSlot slot);
} }