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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 15 additions and 0 deletions

View File

@ -112,4 +112,19 @@ public interface NPC {
NPC setItem(NPCSlot slot, ItemStack item);
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);
}