Added some rudimentary path blocks for the tranquility altar - textures pending.

This commit is contained in:
WayofTime 2016-01-26 19:39:39 -05:00
parent f4d0b18521
commit cc1e11f09f
17 changed files with 216 additions and 23 deletions

View file

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