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

@ -1,7 +1,9 @@
package WayofTime.bloodmagic.item.soul;
import java.util.ArrayList;
import java.util.List;
import WayofTime.bloodmagic.client.IVariantProvider;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item;
@ -14,8 +16,10 @@ import WayofTime.bloodmagic.api.Constants;
import WayofTime.bloodmagic.api.soul.IDemonWill;
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 ItemMonsterSoul extends Item implements IDemonWill
public class ItemMonsterSoul extends Item implements IDemonWill, IVariantProvider
{
public static String[] names = { "base" };
@ -91,4 +95,11 @@ public class ItemMonsterSoul extends Item implements IDemonWill
setWill(soulStack, number);
return soulStack;
}
@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=monstersoul"));
return ret;
}
}

View file

@ -1,7 +1,9 @@
package WayofTime.bloodmagic.item.soul;
import java.util.ArrayList;
import java.util.List;
import WayofTime.bloodmagic.client.IVariantProvider;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item;
@ -18,8 +20,10 @@ import WayofTime.bloodmagic.api.soul.IDemonWillGem;
import WayofTime.bloodmagic.api.soul.PlayerDemonWillHandler;
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 ItemSoulGem extends Item implements IDemonWillGem
public class ItemSoulGem extends Item implements IDemonWillGem, IVariantProvider
{
public static String[] names = { "petty", "lesser", "common", "greater", "grand" };
@ -183,6 +187,17 @@ public class ItemSoulGem extends Item implements IDemonWillGem
return 64;
}
@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=petty"));
ret.add(new ImmutablePair<Integer, String>(1, "type=lesser"));
ret.add(new ImmutablePair<Integer, String>(2, "type=common"));
ret.add(new ImmutablePair<Integer, String>(3, "type=greater"));
ret.add(new ImmutablePair<Integer, String>(4, "type=grand"));
return ret;
}
public EnumDemonWillType getCurrentType(ItemStack soulGemStack)
{
NBTHelper.checkNBT(soulGemStack);

View file

@ -1,8 +1,10 @@
package WayofTime.bloodmagic.item.soul;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import WayofTime.bloodmagic.client.IVariantProvider;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item;
@ -14,8 +16,10 @@ import WayofTime.bloodmagic.BloodMagic;
import WayofTime.bloodmagic.api.Constants;
import WayofTime.bloodmagic.entity.projectile.EntitySoulSnare;
import WayofTime.bloodmagic.util.helper.TextHelper;
import org.apache.commons.lang3.tuple.ImmutablePair;
import org.apache.commons.lang3.tuple.Pair;
public class ItemSoulSnare extends Item
public class ItemSoulSnare extends Item implements IVariantProvider
{
public static String[] names = { "base" };
@ -70,4 +74,11 @@ public class ItemSoulSnare extends Item
super.addInformation(stack, player, tooltip, advanced);
}
@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=soulsnare"));
return ret;
}
}