Package org.spongepowered.api.item
Interface ItemRarity
- All Superinterfaces:
DefaultedRegistryValue<ItemRarity>
@CatalogedBy(ItemRarities.class)
public interface ItemRarity
extends DefaultedRegistryValue<ItemRarity>
The rarity of an item.
-
Method Summary
Modifier and TypeMethodDescriptioncolor()
Gets theTextColor
used to decorate tooltips of items with thisItemRarity
.Methods inherited from interface org.spongepowered.api.registry.DefaultedRegistryValue
asDefaultedReference, findKey, key
-
Method Details
-
color
TextColor color()Gets theTextColor
used to decorate tooltips of items with thisItemRarity
.- Returns:
- The color of the rarity.
-