Packages com.phoenixplugins.phoenixcrates.api 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
    Description
    default org.bukkit.inventory.ItemStack
     
    String
    Gets the display name of the crate key.
    Retrieves the raw item stack representing this crate key.
    boolean
    Checks if this crate key is enabled and can be used for opening crates.
    boolean
    Checks if this crate key has a glowing effect.
    boolean
    Checks if this crate key is virtual.
  • Method Details

    • 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.
    • createItemStack

      default org.bukkit.inventory.ItemStack createItemStack()
Last updated 10 days ago
My Cart
Spider

Your cart is empty

Looks like the spiders padded through here. Pick a plugin and it will show up here. Continue shopping