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 theTextColorused to decorate tooltips of items with thisItemRarity.Methods inherited from interface org.spongepowered.api.registry.DefaultedRegistryValue
asDefaultedReference, findKey, keyMethods inherited from interface org.spongepowered.api.data.type.StringRepresentable
serializationString
-
Method Details
-
color
TextColor color()Gets theTextColorused to decorate tooltips of items with thisItemRarity.- Returns:
- The color of the rarity.
-