mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-19 11:59:14 +00:00
run repo through formatter
This commit is contained in:
1 parent
5585d680a3
commit
ffaea7d4b7
140 files changed
+1050
-892
No files matched your search
@@ -5,24 +5,27 @@ import net.minecraft.stats.Achievement;
|
||||
import net.minecraft.util.StatCollector;
|
||||
import net.minecraftforge.common.AchievementPage;
|
||||
|
||||
public class TAchievements {
|
||||
|
||||
//Add achievements in here before the load executes(end of TC's init event)
|
||||
public static HashMap<String, Achievement> achievements = new HashMap<String, Achievement>();
|
||||
|
||||
//Warning: Will be null until after the init stage
|
||||
public static AchievementPage achievementPage = null;
|
||||
|
||||
public static void init(){
|
||||
Achievement[] achs = new Achievement[achievements.values().size()];
|
||||
|
||||
for(int i = 0; i < achs.length; i++){
|
||||
achs[i] = (Achievement)achievements.values().toArray()[i];
|
||||
}
|
||||
|
||||
achievementPage = new AchievementPage(StatCollector.translateToLocal("tconstruct.achievementPage.name"), achs);
|
||||
|
||||
AchievementPage.registerAchievementPage(achievementPage);
|
||||
}
|
||||
|
||||
public class TAchievements
|
||||
{
|
||||
|
||||
//Add achievements in here before the load executes(end of TC's init event)
|
||||
public static HashMap<String, Achievement> achievements = new HashMap<String, Achievement>();
|
||||
|
||||
//Warning: Will be null until after the init stage
|
||||
public static AchievementPage achievementPage = null;
|
||||
|
||||
public static void init ()
|
||||
{
|
||||
Achievement[] achs = new Achievement[achievements.values().size()];
|
||||
|
||||
for (int i = 0; i < achs.length; i++)
|
||||
{
|
||||
achs[i] = (Achievement) achievements.values().toArray()[i];
|
||||
}
|
||||
|
||||
achievementPage = new AchievementPage(StatCollector.translateToLocal("tconstruct.achievementPage.name"), achs);
|
||||
|
||||
AchievementPage.registerAchievementPage(achievementPage);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user