use of forestry.arboriculture.IWoodTyped in project ForestryMC by ForestryMC.
the class ItemBlockWood method getItemStackDisplayName.
@Override
public String getItemStackDisplayName(ItemStack itemstack) {
IWoodTyped wood = getBlock();
int meta = itemstack.getMetadata();
IWoodType woodType = wood.getWoodType(meta);
return WoodHelper.getDisplayName(wood, woodType);
}
use of forestry.arboriculture.IWoodTyped in project ForestryMC by ForestryMC.
the class ProxyArboricultureClient method registerWoodStateMapper.
public static void registerWoodStateMapper(Block block, IWoodStateMapper stateMapper) {
if (block instanceof IWoodTyped) {
IWoodTyped woodTyped = (IWoodTyped) block;
ModelLoader.setCustomStateMapper(block, stateMapper);
stateMappers.put(woodTyped, stateMapper);
}
}
use of forestry.arboriculture.IWoodTyped in project Binnie by ForestryMC.
the class ItemBlockETWood method getItemStackDisplayName.
@Override
public String getItemStackDisplayName(ItemStack itemstack) {
IWoodTyped wood = getBlock();
int meta = itemstack.getMetadata();
IWoodType woodType = wood.getWoodType(meta);
return WoodManager.getDisplayName(wood, woodType);
}
Aggregations