public interface StatisticBuilder
Statistic
s.Modifier and Type | Interface and Description |
---|---|
static interface |
StatisticBuilder.BlockStatisticBuilder
Represents a builder to create new and custom instances of
BlockStatistic s. |
static interface |
StatisticBuilder.EntityStatisticBuilder
Represents a builder to create new and custom instances of
EntityStatistic s. |
static interface |
StatisticBuilder.ItemStatisticBuilder
Represents a builder to create new and custom instances of
ItemStatistic s. |
static interface |
StatisticBuilder.TeamStatisticBuilder
Represents a builder to create new and custom instances of
TeamStatistic s. |
Modifier and Type | Method and Description |
---|---|
Statistic |
buildAndRegister()
Builds and registers an instance of a
Statistic . |
StatisticBuilder |
format(StatisticFormat format)
Sets the format of the
Statistic . |
StatisticBuilder |
group(StatisticGroup group)
Sets the
StatisticGroup the Statistic belongs to. |
StatisticBuilder |
name(String name)
Sets the internal name for the
Statistic . |
StatisticBuilder |
translation(Translation translation)
Sets the translation for the
Statistic . |
StatisticBuilder name(String name)
Statistic
.name
- The name of this achievementStatisticBuilder translation(Translation translation)
Statistic
.translation
- The translation for the statisticStatisticBuilder format(@Nullable StatisticFormat format)
Statistic
. May be null in which case the
group default format will be used instead.format
- The format of the statisticStatisticBuilder group(StatisticGroup group)
StatisticGroup
the Statistic
belongs to.group
- The statistic group the statistic belongs toStatistic buildAndRegister() throws IllegalStateException
Statistic
.IllegalStateException
- If the statistic is not completed