Applied-Energistics-2-tiler.../core/stats/Stats.java
AlgorithmX2 05c9af07e6 Added Crank Turns Stat
Added Inserted Items Stat
Added Extracted Items Stat
Added Various Achivements
2014-08-31 03:06:06 -05:00

40 lines
647 B
Java

package appeng.core.stats;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.stats.StatBasic;
import net.minecraft.util.ChatComponentTranslation;
public enum Stats
{
// done
ItemsInserted,
// done
ItemsExtracted,
// done
TurnedCranks;
private StatBasic stat;
public StatBasic getStat()
{
if ( stat == null )
{
stat = new StatBasic( "stat.ae2." + name(), new ChatComponentTranslation( "stat.ae2." + name(), new Object[0] ) );
stat.registerStat();
}
return stat;
}
private Stats() {
}
public void addToPlayer(EntityPlayer player, int howMany)
{
player.addStat( getStat(), howMany );
}
}