Search in sources :

Example 1 with BlockForestrySlab

use of forestry.arboriculture.blocks.BlockForestrySlab in project ForestryMC by ForestryMC.

the class ItemBlockWoodSlab method getItemStackDisplayName.

@Override
public String getItemStackDisplayName(ItemStack itemstack) {
    BlockForestrySlab<?> wood = (BlockForestrySlab) getBlock();
    int meta = itemstack.getMetadata();
    IWoodType woodType = wood.getWoodType(meta);
    return WoodHelper.getDisplayName(wood, woodType);
}
Also used : IWoodType(forestry.api.arboriculture.IWoodType) BlockForestrySlab(forestry.arboriculture.blocks.BlockForestrySlab)

Aggregations

IWoodType (forestry.api.arboriculture.IWoodType)1 BlockForestrySlab (forestry.arboriculture.blocks.BlockForestrySlab)1