package com.yolp900.itsjustacharm.common.avchievemetns;
import com.yolp900.itsjustacharm.common.blocks.ModBlocks;
import com.yolp900.itsjustacharm.reference.LibAchievements;
import net.minecraft.block.Block;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.stats.Achievement;
public enum ModAchievements {
ConstructionTableConstruction(LibAchievements.ConstructionTableConstruction, 0, 0, ModBlocks.ConstructionTable, null),
CraftLevitator(LibAchievements.CraftLevitator, 1, 1, ModBlocks.Levitator, ConstructionTableConstruction);
private Achievement achievement;
ModAchievements(LibAchievements achievement, int column, int row, ItemStack stack, ModAchievements parent) {
Achievement par = null;
if (parent != null) par = parent.getAchievement();
this.achievement = new Achievement(achievement.getID(), achievement.getName(), column, row, stack, par);
}
ModAchievements(LibAchievements achievement, int column, int row, Item stack, ModAchievements parent) {
Achievement par = null;
if (parent != null) par = parent.getAchievement();
this.achievement = new Achievement(achievement.getID(), achievement.getName(), column, row, stack, par);
}
ModAchievements(LibAchievements achievement, int column, int row, Block stack, ModAchievements parent) {
Achievement par = null;
if (parent != null) par = parent.getAchievement();
this.achievement = new Achievement(achievement.getID(), achievement.getName(), column, row, stack, par);
}
public Achievement getAchievement() {
return achievement;
}
}