Promotion background
Easter Season IS HERE!
10% off limited time offer!
Ends in
00
H
00
M
00
S
limited time offer SAVE 10% NOW →
Packages com.phoenixplugins.phoenixcrates.api key
com.phoenixplugins.phoenixcrates.api.key

Interface Key



  • public interface Key
    Represents a crate key used in the crate system. A CrateKey could be a physical or virtual item that a player uses to open a crate.
    • Method Summary

      Modifier and Type Method and Description
      String getDisplayName()
      Gets the display name of the crate key.
      Item getPlainItem()
      Retrieves the raw item stack representing this crate key.
      boolean isEnabled()
      Checks if this crate key is enabled and can be used for opening crates.
      boolean isGlowing()
      Checks if this crate key has a glowing effect.
      boolean isVirtual()
      Checks if this crate key is virtual.
    • Method Detail

      • isEnabled

        boolean isEnabled()
        Checks if this crate key is enabled and can be used for opening crates.
        Returns:
        true if the crate key is enabled, false otherwise.
      • isVirtual

        boolean isVirtual()
        Checks if this crate key is virtual. A virtual key may not be a physical item in the player's inventory but could represent a digital or intangible key.
        Returns:
        true if the key is virtual, false if it's a physical key.
      • isGlowing

        boolean isGlowing()
        Checks if this crate key has a glowing effect. Glowing keys may have a visual effect to indicate their special status or rarity.
        Returns:
        true if the key glows, false otherwise.
      • getPlainItem

        Item getPlainItem()
        Retrieves the raw item stack representing this crate key. This is the actual ItemStack object that could be added to the player's inventory.
        Returns:
        the ItemStack of the crate key.
      • getDisplayName

        String getDisplayName()
        Gets the display name of the crate key. This is the name that will be shown to the player when they view the key in their inventory or when it's displayed in the UI.
        Returns:
        the display name of the crate key.
Last updated about 3 hours ago
My Cart (0 items)

Oops... looks like the spiders padded through here

Add products to your cart and remove them from here Lets buy
This site uses cookies to personalize content, enhance your experience. By continuing, you agree to our cookie use. Learn more