Package forestry.arboriculture

Examples of forestry.arboriculture.WoodType.ordinal()


  }

  @Override
  public String getUnlocalizedName(ItemStack stack) {
    WoodType type = WoodType.getFromCompound(stack.getTagCompound());
    return getBlock().getUnlocalizedName() + "." + type.ordinal(); //To change body of generated methods, choose Tools | Templates.
  }

}
View Full Code Here


      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
Copyright © 2018 www.massapi.com. 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.