!Some extra comments

This commit is contained in:
Indyuce 2020-08-15 00:09:03 +02:00
parent f17678f122
commit 2f114fe909
2 changed files with 13 additions and 2 deletions

View File

@ -72,6 +72,13 @@ public class ItemStackBuilder {
return mmoitem;
}
/**
* @return Does NOT return the built item stack. It returns only returns the
* default item stack with material applied. Built item stack is
* given by build(). This method should only be used to check if the
* item is of a specific material (like the Shield Pattern stat
* which checks if the item is a shield)
*/
public ItemStack getItemStack() {
return item;
}
@ -85,6 +92,10 @@ public class ItemStackBuilder {
tags.add(itemTag);
}
/**
*
* @return Returns built NBTItem with applied tags and lore
*/
public NBTItem buildNBT() {
this.mmoitem = new StatLore(mmoitem).generateNewItem();
@ -126,7 +137,7 @@ public class ItemStackBuilder {
}
/**
* @return Builds an ItemStack
* @return Builds the item
*/
public ItemStack build() {
return buildNBT().toItem();

View File

@ -165,7 +165,7 @@ public class MMOItemsCommand implements CommandExecutor {
sender.sendMessage("");
sender.sendMessage(ChatColor.LIGHT_PURPLE + "/mi update list" + ChatColor.WHITE + " lists available config updates.");
sender.sendMessage(ChatColor.LIGHT_PURPLE + "/mi update info <id>" + ChatColor.WHITE + " displays info about an update.");
sender.sendMessage(ChatColor.LIGHT_PURPLE + "/mi update apply <id> <id>" + ChatColor.WHITE + " applies a config update.");
sender.sendMessage(ChatColor.LIGHT_PURPLE + "/mi update apply <id>" + ChatColor.WHITE + " applies a config update.");
return true;
}