public static interface StatisticBuilder.BlockStatisticBuilder extends StatisticBuilder
BlockStatistic
s.StatisticBuilder.BlockStatisticBuilder, StatisticBuilder.EntityStatisticBuilder, StatisticBuilder.ItemStatisticBuilder, StatisticBuilder.TeamStatisticBuilder
Modifier and Type | Method and Description |
---|---|
StatisticBuilder.BlockStatisticBuilder |
block(BlockType block)
Sets the
BlockType of this BlockStatistic . |
BlockStatistic |
buildAndRegister()
Builds and registers an instance of a
Statistic . |
StatisticBuilder.BlockStatisticBuilder |
format(StatisticFormat format)
Sets the format of the
Statistic . |
StatisticBuilder.BlockStatisticBuilder |
group(StatisticGroup group)
Sets the
StatisticGroup the Statistic belongs to. |
StatisticBuilder.BlockStatisticBuilder |
name(String name)
Sets the internal name for the
Statistic . |
StatisticBuilder.BlockStatisticBuilder |
translation(Translation translation)
Sets the translation for the
Statistic . |
StatisticBuilder.BlockStatisticBuilder block(BlockType block)
BlockType
of this BlockStatistic
.block
- The blockStatisticBuilder.BlockStatisticBuilder name(String name)
StatisticBuilder
Statistic
.name
in interface StatisticBuilder
name
- The name of this achievementStatisticBuilder.BlockStatisticBuilder translation(Translation translation)
StatisticBuilder
Statistic
.translation
in interface StatisticBuilder
translation
- The translation for the statisticStatisticBuilder.BlockStatisticBuilder 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.BlockStatisticBuilder group(StatisticGroup group)
StatisticBuilder
StatisticGroup
the Statistic
belongs to.group
in interface StatisticBuilder
group
- The statistic group the statistic belongs toBlockStatistic buildAndRegister() throws IllegalStateException
StatisticBuilder
Statistic
.buildAndRegister
in interface StatisticBuilder
IllegalStateException
- If the statistic is not completed