mirror of
https://gitlab.com/phoenix-dvpmt/mmoitems.git
synced 2025-04-18 20:36:04 +02:00
!Some extra comments
This commit is contained in:
parent
f17678f122
commit
2f114fe909
@ -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();
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user