Pre-emptive things

This commit is contained in:
Arcaratus 2015-11-02 21:30:28 -05:00
parent 5985be1cd0
commit 75143520ed
7 changed files with 417 additions and 167 deletions

View file

@ -0,0 +1,26 @@
package WayofTime.bloodmagic.item.block;
import WayofTime.bloodmagic.block.BlockBloodRune;
import net.minecraft.block.Block;
import net.minecraft.item.ItemBlock;
import net.minecraft.item.ItemStack;
public class ItemBlockBloodRune extends ItemBlock
{
public ItemBlockBloodRune(Block block)
{
super(block);
setHasSubtypes(true);
}
@Override
public String getUnlocalizedName(ItemStack stack)
{
return super.getUnlocalizedName(stack) + BlockBloodRune.names[stack.getItemDamage()];
}
@Override
public int getMetadata(int meta) {
return meta;
}
}