Enum Class InventoryStatus

java.lang.Object
java.lang.Enum<InventoryStatus>
org.mvplugins.multiverse.inventories.view.InventoryStatus
All Implemented Interfaces:
Serializable, Comparable<InventoryStatus>, Constable

@Experimental @AvailableSince("5.2") public enum InventoryStatus extends Enum<InventoryStatus>
Represents the status of an inventory data load operation. Provides a fixed set of states for clarity and type safety.
Since:
5.2
  • Enum Constant Details

    • LIVE_INVENTORY

      @AvailableSince("5.2") public static final InventoryStatus LIVE_INVENTORY
      Indicates that live inventory data from an online player was displayed.
      Since:
      5.2
    • STORED_INVENTORY

      @AvailableSince("5.2") public static final InventoryStatus STORED_INVENTORY
      Indicates that stored inventory data from Multiverse-Inventories profiles was displayed.
      Since:
      5.2
    • NO_DATA_FOUND

      @AvailableSince("5.2") public static final InventoryStatus NO_DATA_FOUND
      Indicates that no player data was found for the specified world/player.
      Since:
      5.2
  • Method Details

    • values

      public static InventoryStatus[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static InventoryStatus valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getFormattedMessage

      @AvailableSince("5.2") @NotNull public String getFormattedMessage(@NotNull String playerName, @NotNull String worldName)
      Gets the full status message including player and world context.
      Parameters:
      playerName - The name of the target player.
      worldName - The name of the target world.
      Returns:
      The formatted status message.
      Since:
      5.2