Enum Class ItemStackUtil

java.lang.Object
java.lang.Enum<ItemStackUtil>
dk.lockfuglsang.minecraft.util.ItemStackUtil
All Implemented Interfaces:
Serializable, Comparable<ItemStackUtil>, Constable

public enum ItemStackUtil extends Enum<ItemStackUtil>
Conversion to ItemStack from strings.
  • Method Details

    • values

      public static ItemStackUtil[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ItemStackUtil valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • createItemsWithProbabilty

      public static List<ItemStackUtil.ItemProbability> createItemsWithProbabilty(List<String> items)
    • createItemList

      public static List<org.bukkit.inventory.ItemStack> createItemList(List<String> items)
    • createItemArray

      public static org.bukkit.inventory.ItemStack[] createItemArray(List<org.bukkit.inventory.ItemStack> items)
    • createItemStack

      public static org.bukkit.inventory.ItemStack createItemStack(String displayItem)
    • createItemStackSkull

      public static org.bukkit.inventory.ItemStack createItemStackSkull(String texture, String name, String description)
    • createUniqueId

      public static UUID createUniqueId(String texture, String name, String description)
    • createItemStack

      public static org.bukkit.inventory.ItemStack createItemStack(String displayItem, String name, String description)
    • clone

      public static List<org.bukkit.inventory.ItemStack> clone(List<org.bukkit.inventory.ItemStack> items)
    • isValidInventoryItem

      public static boolean isValidInventoryItem(org.bukkit.inventory.ItemStack itemStack)
    • builder

      public static ItemStackUtil.Builder builder(org.bukkit.inventory.ItemStack stack)
    • asString

      public static String asString(org.bukkit.inventory.ItemStack item)
    • asShortString

      public static String asShortString(List<org.bukkit.inventory.ItemStack> items)
    • asShortString

      public static String asShortString(org.bukkit.inventory.ItemStack item)
    • asDisplayItem

      public static org.bukkit.inventory.ItemStack asDisplayItem(org.bukkit.inventory.ItemStack item)
    • getItemName

      public static String getItemName(org.bukkit.inventory.ItemStack stack)