Package org.spongepowered.api.statistic
Interface StatisticCategory.Typed<T>
- Type Parameters:
T- The type
- All Superinterfaces:
StatisticCategory
- Enclosing interface:
- StatisticCategory
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.spongepowered.api.statistic.StatisticCategory
StatisticCategory.Typed<T> -
Method Summary
Modifier and TypeMethodDescriptionGets theStatistic.TypeInstancefor the givenvalue.Gets all theStatistics that are listed within thisStatisticCategory.io.leangen.geantyref.TypeToken<T>type()Gets thevalue.
-
Method Details
-
statistics
Collection<Statistic.TypeInstance<T>> statistics()Description copied from interface:StatisticCategoryGets all theStatistics that are listed within thisStatisticCategory.- Specified by:
statisticsin interfaceStatisticCategory- Returns:
- The statistics
-
type
io.leangen.geantyref.TypeToken<T> type()Gets thevalue.- Returns:
- The value type
-
statistic
Gets theStatistic.TypeInstancefor the givenvalue.- Parameters:
value- The value- Returns:
- The instance
-