Skip to content

Latest commit

 

History

History
88 lines (51 loc) · 1.92 KB

ItemHelper.md

File metadata and controls

88 lines (51 loc) · 1.92 KB

Documentation

public class ItemHelper implements IItemHelper

  • Author: rellu

public ItemHelper(Material material, int amount, String displayName, Type itemType, Rarity itemRarity)

  • Parameters:
    • material — Bukkit Material
    • amount — Integer
    • displayName — String
    • itemType — ItemType
    • itemRarity — ItemRarity

public ItemHelper(Material material, int amount, String displayName, Type itemType, Rarity itemRarity, List<String> lore)

  • Parameters:
    • material — Bukkit Material
    • amount — Integer
    • displayName — String
    • itemType — ItemType
    • itemRarity — ItemRarity
    • lore — List String

public ItemStack getCustomItem()

  • Returns: ItemStack of ItemHelper

protected ItemStack getItemStack()

  • Returns: ItemStack of ItemHelper

public int getAmount()

  • Returns: int Amount of ItemHelper

public String getDisplayName()

  • Returns: String DisplayName of ItemHelper

public List<String> getLore()

  • Returns: List of String Lore of ItemHelper

public Material getMaterial()

  • Returns: Material of ItemHelper

public Type getItemType()

  • Returns: ItemType of ItemHelper

public ItemMeta getItemMeta()

  • Returns: ItemMeta of ItemStack

public void setItemMeta(ItemMeta itemmeta)

  • Parameters: itemmeta — ItemMeta sets ItemMeta of ItemStack

public boolean equals(ItemStack compare)

  • Parameters: compare
  • Returns: boolean

public boolean almostEquals(ItemStack compare)

  • Parameters: compare
  • Returns: boolean

public String getDisplayName()

Returns Displayname of Rarity

  • Returns: String displayName

public String getPrefix()

Returns Prefix of Rarity (Color and Bold)

  • Returns: String prefix

public int getLevel()

Returns Level of Rarity

  • Returns: int level