Package forestry.arboriculture

Examples of forestry.arboriculture.IWoodTyped


  }

  @Override
  public String getItemStackDisplayName(ItemStack itemstack) {
    if (this.getBlock() instanceof IWoodTyped) {
      IWoodTyped block = (IWoodTyped) getBlock();
      int meta = itemstack.getItemDamage();
      WoodType woodType = block.getWoodType(meta);
      if (woodType == null)
        return null;

      String unlocalizedName = block.getBlockKind() + "." + woodType.ordinal() + ".name";
      String displayName = StringUtil.localizeTile(unlocalizedName);

      if (this.getBlock() instanceof IWoodFireproof)
        displayName = StringUtil.localizeAndFormatRaw("tile.for.fireproof", displayName);
View Full Code Here

TOP

Related Classes of forestry.arboriculture.IWoodTyped

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.