Package com.griefdefender.api.gui
Interface Icon
public interface Icon
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic Icon.Builderbuilder()Gets a newIconbuilder instance forIcon.Builder.Gets the list ofIconFlag's.getId()Gets the id used for icon.net.kyori.adventure.text.ComponentgetLore()Gets the icon lore.intgetMeta()Gets the icon meta.Gets the icon model data.intGets the icon quantity.getSound()Gets the icon sound.net.kyori.adventure.text.ComponentgetTitle()Gets the icon title.booleanGets whether this icon is enchanted.
-
Method Details
-
getId
String getId()Gets the id used for icon.- Returns:
- The icon id
-
getTitle
net.kyori.adventure.text.Component getTitle()Gets the icon title.- Returns:
- The icon title
-
getLore
net.kyori.adventure.text.Component getLore()Gets the icon lore.- Returns:
- The icon lore
-
getSound
Gets the icon sound.- Returns:
- The icon sound
-
getModelData
Gets the icon model data.- Returns:
- The icon model data, if available
-
getMeta
int getMeta()Gets the icon meta.- Returns:
- The icon meta
-
getQuantity
int getQuantity()Gets the icon quantity.- Returns:
- The icon quantity
-
isEnchanted
boolean isEnchanted()Gets whether this icon is enchanted.- Returns:
- whether icon is enchanted
-
getIconFlags
Gets the list ofIconFlag's.- Returns:
- An immutable list of icon flags
-
builder
Gets a newIconbuilder instance forIcon.Builder.- Returns:
- A new icon builder instance
-