2015-04-17 16:53:54 +02:00
|
|
|
package techreborn.achievement;
|
|
|
|
|
|
|
|
import net.minecraft.block.Block;
|
|
|
|
import net.minecraft.item.Item;
|
|
|
|
import net.minecraft.item.ItemStack;
|
|
|
|
import net.minecraft.stats.Achievement;
|
|
|
|
|
2015-07-02 20:51:24 +02:00
|
|
|
import java.util.ArrayList;
|
|
|
|
import java.util.List;
|
|
|
|
|
2015-04-24 15:20:09 +02:00
|
|
|
public class AchievementMod extends Achievement {
|
|
|
|
|
2015-08-09 12:05:32 +02:00
|
|
|
public static List<Achievement> achievements = new ArrayList();
|
|
|
|
|
|
|
|
public AchievementMod(String name, int x, int y, ItemStack icon,
|
|
|
|
Achievement parent) {
|
|
|
|
super("achievement.techreborn:" + name, "TechReborn:" + name, x, y,
|
|
|
|
icon, parent);
|
|
|
|
achievements.add(this);
|
|
|
|
registerStat();
|
|
|
|
}
|
|
|
|
|
|
|
|
public AchievementMod(String name, int x, int y, Item icon,
|
|
|
|
Achievement parent) {
|
|
|
|
this(name, x, y, new ItemStack(icon), parent);
|
|
|
|
}
|
|
|
|
|
|
|
|
public AchievementMod(String name, int x, int y, Block icon,
|
|
|
|
Achievement parent) {
|
|
|
|
this(name, x, y, new ItemStack(icon), parent);
|
|
|
|
}
|
2015-04-17 16:53:54 +02:00
|
|
|
|
|
|
|
}
|