Class LinkedComponent
java.lang.Object
org.bukkit.inventory.ItemStack
fr.multimc.api.spigot.common.gui.components.AbstractComponent
fr.multimc.api.spigot.common.gui.components.LinkedComponent
- All Implemented Interfaces:
Cloneable
,net.kyori.adventure.text.event.HoverEventSource<net.kyori.adventure.text.event.HoverEvent.ShowItem>
,net.kyori.adventure.translation.Translatable
,org.bukkit.configuration.serialization.ConfigurationSerializable
,org.bukkit.Translatable
-
Constructor Summary
ConstructorsConstructorDescriptionLinkedComponent
(@NotNull org.bukkit.inventory.ItemStack itemStack, @NotNull LinkedGui linkedGui, @NotNull String targetId) -
Method Summary
Modifier and TypeMethodDescriptionvoid
onClicked
(@NotNull AbstractGui gui, @NotNull MmcPlayer mmcPlayer) Called when theAbstractComponent
is clicked in the GUI.Methods inherited from class org.bukkit.inventory.ItemStack
add, add, addEnchantment, addEnchantments, addItemFlags, addUnsafeEnchantment, addUnsafeEnchantments, asHoverEvent, asOne, asQuantity, canRepair, clone, containsEnchantment, damage, deserialize, deserializeBytes, displayName, editMeta, editMeta, enchantWithLevels, ensureServerConversions, equals, getAmount, getData, getDurability, getEnchantmentLevel, getEnchantments, getI18NDisplayName, getItemFlags, getItemMeta, getLore, getMaxItemUseDuration, getMaxStackSize, getRarity, getTranslationKey, getType, hashCode, hasItemFlag, hasItemMeta, isRepairableBy, isSimilar, lore, lore, removeEnchantment, removeItemFlags, serialize, serializeAsBytes, setAmount, setData, setDurability, setItemMeta, setLore, setType, subtract, subtract, toString, translationKey
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.kyori.adventure.text.event.HoverEventSource
asHoverEvent
-
Constructor Details
-
LinkedComponent
-
-
Method Details
-
onClicked
Description copied from class:AbstractComponent
Called when theAbstractComponent
is clicked in the GUI.- Specified by:
onClicked
in classAbstractComponent
- Parameters:
gui
- The GUI that this component is part of.mmcPlayer
- TheMmcPlayer
that clicked this component.
-