Package org.spongepowered.api.statistic
Interface Statistic
-
- All Known Subinterfaces:
Statistic.TypeInstance<T>
@CatalogedBy(Statistics.class) public interface Statistic
Represents some statistic in minecraft.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceStatistic.TypeInstance<T>Represents aStatisticinstance of aStatisticCategory.Typed.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Optional<Criterion>criterion()Returns the objectiveCriterionfor this statistic.NumberFormatformat()Returns theNumberFormatused to format the value of this statistic.
-
-
-
Method Detail
-
criterion
Optional<Criterion> criterion()
Returns the objectiveCriterionfor this statistic.- Returns:
- Objective criterion
-
format
NumberFormat format()
Returns theNumberFormatused to format the value of this statistic.- Returns:
- Statistic's number format
-
-