Package com.earth2me.essentials
Class MetaItemStack
java.lang.Object
com.earth2me.essentials.MetaItemStack
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addBannerMeta
(CommandSource sender, boolean allowShortName, String string, IEssentials ess) void
addEnchantment
(CommandSource sender, boolean allowUnsafe, Enchantment enchantment, int level) void
addFireworkMeta
(CommandSource sender, boolean allowShortName, String string, IEssentials ess) void
addItemFlags
(String string) void
addPotionMeta
(CommandSource sender, boolean allowShortName, String string, IEssentials ess) void
addStringMeta
(CommandSource sender, boolean allowUnsafe, String string, IEssentials ess) boolean
canSpawn
(IEssentials ess) boolean
getEnchantment
(User user, String name) boolean
boolean
void
parseStringMeta
(CommandSource sender, boolean allowUnsafe, String[] string, int fromArg, IEssentials ess)
-
Constructor Details
-
MetaItemStack
-
-
Method Details
-
getItemStack
-
isValidFirework
public boolean isValidFirework() -
isValidPotion
public boolean isValidPotion() -
getFireworkBuilder
-
getPotionEffect
-
completePotion
public boolean completePotion() -
canSpawn
-
parseStringMeta
public void parseStringMeta(CommandSource sender, boolean allowUnsafe, String[] string, int fromArg, IEssentials ess) throws Exception - Throws:
Exception
-
addStringMeta
public void addStringMeta(CommandSource sender, boolean allowUnsafe, String string, IEssentials ess) throws Exception - Throws:
Exception
-
addItemFlags
- Throws:
Exception
-
addFireworkMeta
public void addFireworkMeta(CommandSource sender, boolean allowShortName, String string, IEssentials ess) throws Exception - Throws:
Exception
-
addPotionMeta
public void addPotionMeta(CommandSource sender, boolean allowShortName, String string, IEssentials ess) throws Exception - Throws:
Exception
-
addEnchantment
public void addEnchantment(CommandSource sender, boolean allowUnsafe, Enchantment enchantment, int level) throws Exception - Throws:
Exception
-
getEnchantment
- Throws:
Exception
-
addBannerMeta
public void addBannerMeta(CommandSource sender, boolean allowShortName, String string, IEssentials ess) throws Exception - Throws:
Exception
-