Added some Demon Will blocks for Yulife to peruse - more coming
This commit is contained in:
parent
2c4aac9beb
commit
4174be42b0
5 changed files with 166 additions and 1 deletions
|
@ -0,0 +1,29 @@
|
|||
package WayofTime.bloodmagic.item.block;
|
||||
|
||||
import net.minecraft.item.ItemBlock;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import WayofTime.bloodmagic.block.BlockDemonBase;
|
||||
|
||||
public class ItemBlockDemonBase extends ItemBlock
|
||||
{
|
||||
public final BlockDemonBase demonBlock;
|
||||
|
||||
public ItemBlockDemonBase(BlockDemonBase block)
|
||||
{
|
||||
super(block);
|
||||
setHasSubtypes(true);
|
||||
demonBlock = block;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getUnlocalizedName(ItemStack stack)
|
||||
{
|
||||
return super.getUnlocalizedName(stack) + demonBlock.names[stack.getItemDamage()];
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getMetadata(int meta)
|
||||
{
|
||||
return meta;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue