Class InventorySlot

java.lang.Object
net.draycia.carbon.api.util.InventorySlot

public final class InventorySlot extends Object
A slot in a player's inventory.
Since:
2.0.0
  • Field Details

  • Method Details

    • of

      public static InventorySlot of(String... placeholders)
      An InventorySlot instance, usable in chat with the given placeholders.
      Parameters:
      placeholders - the placeholders that can be used in chat
      Returns:
      the instance
      Since:
      2.0.0
    • placeholders

      public List<String> placeholders()
      Returns this slot's placeholders, which can be used in chat to show the item in said slot.
      Returns:
      this slot's placeholders
      Since:
      2.0.0