public class NumberStatistic extends StatisticInitializer<NumberStatistic.Stat>
| Modifier and Type | Class and Description |
|---|---|
static class |
NumberStatistic.Stat |
| Modifier and Type | Field and Description |
|---|---|
protected int |
defaultValue |
protected ResourceName |
textureLocation |
| Constructor and Description |
|---|
NumberStatistic(ResourceName name,
ResourceName textureLocation) |
NumberStatistic(ResourceName name,
ResourceName textureLocation,
int defaultValue) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<StatisticComponent> |
getDisplayComponents(IGameInstance game,
NumberStatistic.Stat stat,
AbstractStatGui gui,
MenuComponent menu) |
NumberStatistic.Stat |
makeStatistic(IStatistics statistics) |
getName, registerprotected final int defaultValue
protected final ResourceName textureLocation
public NumberStatistic(ResourceName name, ResourceName textureLocation)
public NumberStatistic(ResourceName name, ResourceName textureLocation, int defaultValue)
public NumberStatistic.Stat makeStatistic(IStatistics statistics)
makeStatistic in class StatisticInitializer<NumberStatistic.Stat>public java.util.List<StatisticComponent> getDisplayComponents(IGameInstance game, NumberStatistic.Stat stat, AbstractStatGui gui, MenuComponent menu)
getDisplayComponents in class StatisticInitializer<NumberStatistic.Stat>