Package org.spongepowered.api.item
Interface ItemRarity
- All Superinterfaces:
DefaultedRegistryValue<ItemRarity>
,StringRepresentable
@CatalogedBy(ItemRarities.class)
public interface ItemRarity
extends DefaultedRegistryValue<ItemRarity>, StringRepresentable
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
Methods inherited from interface org.spongepowered.api.data.type.StringRepresentable
serializationString
-
Method Details
-
color
TextColor color()Gets theTextColor
used to decorate tooltips of items with thisItemRarity
.- Returns:
- The color of the rarity.
-