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