|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.quartercode.quarterbukkit.api.TagUtil
public class TagUtil
Class for modifying NBT-Tags and mutating Packtes easily. This is e.g. for modifying the name of items etc.
Method Summary | |
---|---|
static java.util.List<java.lang.String> |
getDescriptions(org.bukkit.inventory.ItemStack itemStack)
Returns the description lines of an ItemStack . |
static java.lang.String |
getName(org.bukkit.inventory.ItemStack itemStack)
Returns the name of an ItemStack . |
static void |
setDescriptions(org.bukkit.inventory.ItemStack itemStack,
java.util.List<java.lang.String> descriptions)
Sets the description lines of an ItemStack . |
static void |
setName(org.bukkit.inventory.ItemStack itemStack,
java.lang.String name)
Sets the name of an ItemStack . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static java.lang.String getName(org.bukkit.inventory.ItemStack itemStack)
ItemStack
.
itemStack
- The ItemStack
.
ItemStack
.public static void setName(org.bukkit.inventory.ItemStack itemStack, java.lang.String name)
ItemStack
.
You can use every chat code.
itemStack
- The ItemStack
to modify.name
- The name to set.public static java.util.List<java.lang.String> getDescriptions(org.bukkit.inventory.ItemStack itemStack)
ItemStack
.
They equals to the "Lore".
itemStack
- The ItemStack
.
ItemStack
as an String
-List
.public static void setDescriptions(org.bukkit.inventory.ItemStack itemStack, java.util.List<java.lang.String> descriptions)
ItemStack
.
They equals to the "Lore". You can use every chat code.
itemStack
- The ItemStack
to modify.descriptions
- The description lines to set as an String
-List
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |