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

public class LinkedComponent extends AbstractComponent
  • Constructor Summary

    Constructors
    Constructor
    Description
    LinkedComponent(@NotNull org.bukkit.inventory.ItemStack itemStack, @NotNull LinkedGui linkedGui, @NotNull String targetId)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onClicked(@NotNull AbstractGui gui, @NotNull MmcPlayer mmcPlayer)
    Called when the AbstractComponent 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

      public LinkedComponent(@NotNull @NotNull org.bukkit.inventory.ItemStack itemStack, @NotNull @NotNull LinkedGui linkedGui, @NotNull @NotNull String targetId)
  • Method Details