Spell Work

Finished the spell blocks enough to allow further expansion. Need to
work on textures, as well as the orientation mechanics of the blocks.
Also need to look at Vazkii's block renderer to verify a few feature
additions.
This commit is contained in:
WayofTime 2014-01-24 18:07:13 -05:00
parent 1393a24b6e
commit 5dcef131dc
22 changed files with 765 additions and 85 deletions

View file

@ -0,0 +1,50 @@
package WayofTime.alchemicalWizardry.common.items;
import net.minecraft.item.ItemBlock;
import net.minecraft.item.ItemStack;
public class ItemSpellParadigmBlock extends ItemBlock
{
public ItemSpellParadigmBlock(int par1)
{
super(par1);
setHasSubtypes(true);
this.setUnlocalizedName("itemSpellParadigmBlock");
}
public String getUnlocalizedName(ItemStack itemstack)
{
String name = "";
switch (itemstack.getItemDamage())
{
case 0:
{
name = "projectile";
break;
}
case 1:
{
name = "self";
break;
}
case 2:
name = "melee";
break;
default:
name = "broken";
}
return getUnlocalizedName() + "." + name;
}
public int getMetadata(int par1)
{
return par1;
}
}