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.TypeInstance
for the givenvalue
.Gets all theStatistic
s 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:StatisticCategory
Gets all theStatistic
s that are listed within thisStatisticCategory
.- Specified by:
statistics
in interfaceStatisticCategory
- Returns:
- The statistics
-
type
io.leangen.geantyref.TypeToken<T> type()Gets thevalue
.- Returns:
- The value type
-
statistic
Gets theStatistic.TypeInstance
for the givenvalue
.- Parameters:
value
- The value- Returns:
- The instance
-