Update NPC.java with getText() and getItem()
Adds these methods to the NPC interface.
This commit is contained in:
parent
5e25836310
commit
d7144e445e
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue