RarityService

public interface RarityService

Functions

Link copied to clipboard
@NotNull()
public abstract @NotNull() Rarity getDefaultRarity()
Gets the default rarity (the one with the lowest priority).
Link copied to clipboard
@NotNull()
public abstract @NotNull() List<Rarity> getRarities()
Gets all loaded rarities, sorted by priority.
Link copied to clipboard
@NotNull()
public abstract @NotNull() Optional<Rarity> getRarity(@NotNull() @NotNull() String id)
Gets a rarity by its ID.
Link copied to clipboard
@NotNull()
public abstract @NotNull() Map<String, Rarity> getRarityMap()
Gets an unmodifiable map of all rarities.
Link copied to clipboard
public abstract boolean isEnabled()
Checks if rarity features are enabled.
Link copied to clipboard
@NotNull()
public abstract @NotNull() Rarity resolve(@Nullable() @Nullable() String id)
Resolves a rarity ID to a Rarity object, falling back to default if not found.