Package de.themoep.ShowItem.api
Interface ItemConverter
public interface ItemConverter
-
Method Summary
Modifier and TypeMethodDescriptioncreateComponent
(org.bukkit.inventory.ItemStack item, Level debugLevel) Create a new component for displaying of the item message.getCustomName
(org.bukkit.inventory.ItemStack item) getItemKey
(org.bukkit.inventory.ItemStack item) org.bukkit.ChatColor
getNameColor
(org.bukkit.inventory.ItemStack item) getTag
(org.bukkit.inventory.ItemStack item) getTranslateWith
(org.bukkit.inventory.ItemStack item) getTranslationKey
(org.bukkit.inventory.ItemStack item)
-
Method Details
-
getItemKey
-
getTag
-
getNameColor
org.bukkit.ChatColor getNameColor(org.bukkit.inventory.ItemStack item) -
getTranslationKey
-
getTranslateWith
-
getCustomName
-
createComponent
Component createComponent(org.bukkit.inventory.ItemStack item, Level debugLevel) throws ItemDataTooLongException, IllegalArgumentException Create a new component for displaying of the item message. Will check the cache and add to it.- Parameters:
item
- The item that this component should representdebugLevel
- The level at which debug messages should be printed at- Returns:
- The Component
- Throws:
ItemDataTooLongException
- Thrown if the item data is too long to fit in a packetIllegalArgumentException
- Thrown if the item data was not able to be obtained
-