getRarity

@NotNull()
public @NotNull() Optional<Rarity> getRarity(@NotNull() @NotNull() String id)

Gets a rarity by its ID.

Return

An optional containing the rarity if found.

Parameters

id

The rarity ID.