Created the BlockRitualStone and had it implement IRitualStone. Created .json files necessary

Created PropertyRuneType.
This commit is contained in:
WayofTime 2015-11-06 21:41:15 -05:00
parent 8f623de469
commit bf912ae03f
19 changed files with 332 additions and 1 deletions

View file

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