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 interface
Statistic.TypeInstance<T>
Represents aStatistic
instance of aStatisticCategory.Typed
.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Optional<Criterion>
criterion()
Returns the objectiveCriterion
for this statistic.NumberFormat
format()
Returns theNumberFormat
used to format the value of this statistic.
-
-
-
Method Detail
-
criterion
Optional<Criterion> criterion()
Returns the objectiveCriterion
for this statistic.- Returns:
- Objective criterion
-
format
NumberFormat format()
Returns theNumberFormat
used to format the value of this statistic.- Returns:
- Statistic's number format
-
-