public static interface StatisticBuilder.EntityStatisticBuilder extends StatisticBuilder
EntityStatistic
s.StatisticBuilder.BlockStatisticBuilder, StatisticBuilder.EntityStatisticBuilder, StatisticBuilder.ItemStatisticBuilder, StatisticBuilder.TeamStatisticBuilder
Modifier and Type | Method and Description |
---|---|
EntityStatistic |
buildAndRegister()
Builds and registers an instance of a
Statistic . |
StatisticBuilder.EntityStatisticBuilder |
entity(EntityType entity)
Sets the
EntityType of this EntityStatistic . |
StatisticBuilder.EntityStatisticBuilder |
format(StatisticFormat format)
Sets the format of the
Statistic . |
StatisticBuilder.EntityStatisticBuilder |
group(StatisticGroup group)
Sets the
StatisticGroup the Statistic belongs to. |
StatisticBuilder.EntityStatisticBuilder |
name(String name)
Sets the internal name for the
Statistic . |
StatisticBuilder.EntityStatisticBuilder |
translation(Translation translation)
Sets the translation for the
Statistic . |
StatisticBuilder.EntityStatisticBuilder entity(EntityType entity)
EntityType
of this EntityStatistic
.entity
- The entityStatisticBuilder.EntityStatisticBuilder name(String name)
StatisticBuilder
Statistic
.name
in interface StatisticBuilder
name
- The name of this achievementStatisticBuilder.EntityStatisticBuilder translation(Translation translation)
StatisticBuilder
Statistic
.translation
in interface StatisticBuilder
translation
- The translation for the statisticStatisticBuilder.EntityStatisticBuilder format(@Nullable StatisticFormat format)
StatisticBuilder
Statistic
. May be null in which case the
group default format will be used instead.format
in interface StatisticBuilder
format
- The format of the statisticStatisticBuilder.EntityStatisticBuilder group(StatisticGroup group)
StatisticBuilder
StatisticGroup
the Statistic
belongs to.group
in interface StatisticBuilder
group
- The statistic group the statistic belongs toEntityStatistic buildAndRegister() throws IllegalStateException
StatisticBuilder
Statistic
.buildAndRegister
in interface StatisticBuilder
IllegalStateException
- If the statistic is not completed