Enum Class InventoryStatus
- All Implemented Interfaces:
Serializable
,Comparable<InventoryStatus>
,Constable
Represents the status of an inventory data load operation.
Provides a fixed set of states for clarity and type safety.
- Since:
- 5.2
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIndicates that live inventory data from an online player was displayed.Indicates that no player data was found for the specified world/player.Indicates that stored inventory data from Multiverse-Inventories profiles was displayed. -
Method Summary
Modifier and TypeMethodDescriptiongetFormattedMessage
(String playerName, String worldName) Gets the full status message including player and world context.static InventoryStatus
Returns the enum constant of this class with the specified name.static InventoryStatus[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
LIVE_INVENTORY
Indicates that live inventory data from an online player was displayed.- Since:
- 5.2
-
STORED_INVENTORY
Indicates that stored inventory data from Multiverse-Inventories profiles was displayed.- Since:
- 5.2
-
NO_DATA_FOUND
Indicates that no player data was found for the specified world/player.- Since:
- 5.2
-
-
Method Details
-
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
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 nameNullPointerException
- 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
-