Packages com.phoenixplugins.phoenixcrates.api internal

public abstract class Item extends Object
Represents a generic item used as a base for various implementations.

This interface is intended to provide a standard structure for plugin integration, allowing different types of items (including those from external plugins) to be handled in a consistent way.

  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    Creates a new Item instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract @NotNull org.bukkit.inventory.ItemStack
    Retrieves the underlying ItemStack associated with this item.
    abstract Item
    Clones the object
    abstract int
    Returns the stack size of this item.
    abstract @Nullable String
    Returns the display name of this item, or null if none is set.
    abstract @NotNull List<String>
    Returns the lore lines of this item.
    abstract String
    Returns the namespace that identifies the source plugin or system this item belongs to.
    abstract org.bukkit.Material
    Returns the Bukkit Material type of this item.

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Item

      protected Item()
      Creates a new Item instance.
  • Method Details

    • getNamespace

      public abstract String getNamespace()
      Returns the namespace that identifies the source plugin or system this item belongs to.
      Returns:
      the item namespace
    • build

      @NotNull public abstract @NotNull org.bukkit.inventory.ItemStack build()
      Retrieves the underlying ItemStack associated with this item.
      Returns:
      a non-null ItemStack representing this item
    • getDisplayName

      @Nullable public abstract @Nullable String getDisplayName()
      Returns the display name of this item, or null if none is set.
      Returns:
      the display name, or null
    • getLore

      @NotNull public abstract @NotNull List<String> getLore()
      Returns the lore lines of this item.
      Returns:
      a non-null list of lore strings
    • getType

      public abstract org.bukkit.Material getType()
      Returns the Bukkit Material type of this item.
      Returns:
      the material type
    • getAmount

      public abstract int getAmount()
      Returns the stack size of this item.
      Returns:
      the amount
    • clone

      public abstract Item clone()
      Clones the object
      Overrides:
      clone in class Object
      Returns:
      a cloned object
Last updated 22 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