BloodMagic/BM_src/WayofTime/alchemicalWizardry/common/items/ItemSpellParadigmBlock.java
WayofTime 5dcef131dc 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.
2014-01-24 18:07:13 -05:00

51 lines
978 B
Java

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;
}
}