Most items done now

This commit is contained in:
Nick 2016-03-16 01:10:33 -07:00
parent ba0b24d231
commit 03662c0cd3
74 changed files with 677 additions and 314 deletions

View file

@ -4,6 +4,7 @@ import java.util.ArrayList;
import java.util.List;
import java.util.Map.Entry;
import WayofTime.bloodmagic.client.IVariantProvider;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item;
@ -18,8 +19,10 @@ import WayofTime.bloodmagic.api.livingArmour.LivingArmourHandler;
import WayofTime.bloodmagic.api.livingArmour.LivingArmourUpgrade;
import WayofTime.bloodmagic.api.util.helper.NBTHelper;
import WayofTime.bloodmagic.util.helper.TextHelper;
import org.apache.commons.lang3.tuple.ImmutablePair;
import org.apache.commons.lang3.tuple.Pair;
public class ItemUpgradeTrainer extends Item implements IUpgradeTrainer
public class ItemUpgradeTrainer extends Item implements IUpgradeTrainer, IVariantProvider
{
public ItemUpgradeTrainer()
{
@ -107,4 +110,11 @@ public class ItemUpgradeTrainer extends Item implements IUpgradeTrainer
setKey(stack, keys.get(0));
return true;
}
@Override
public List<Pair<Integer, String>> getVariants() {
List<Pair<Integer, String>> ret = new ArrayList<Pair<Integer, String>>();
ret.add(new ImmutablePair<Integer, String>(0, "type=upgradetrainer"));
return ret;
}
}