BloodMagic/BM_src/WayofTime/alchemicalWizardry/common/items/ItemSpellEffectBlock.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

56 lines
1 KiB
Java

package WayofTime.alchemicalWizardry.common.items;
import net.minecraft.item.ItemBlock;
import net.minecraft.item.ItemStack;
public class ItemSpellEffectBlock extends ItemBlock
{
public ItemSpellEffectBlock(int par1)
{
super(par1);
setHasSubtypes(true);
this.setUnlocalizedName("itemSpellEffectBlock");
}
public String getUnlocalizedName(ItemStack itemstack)
{
String name = "";
switch (itemstack.getItemDamage())
{
case 0:
{
name = "fire";
break;
}
case 1:
{
name = "fill";
break;
}
case 2:
name = "empty";
break;
case 3:
name = "test";
break;
default:
name = "broken";
}
return getUnlocalizedName() + "." + name;
}
public int getMetadata(int par1)
{
return par1;
}
}