Added some rudimentary path blocks for the tranquility altar - textures pending.
This commit is contained in:
parent
f4d0b18521
commit
cc1e11f09f
17 changed files with 216 additions and 23 deletions
|
@ -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;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue