Package net.mcft.copy.betterstorage.tile

Examples of net.mcft.copy.betterstorage.tile.ContainerMaterial


  @Override
  public String getItemStackDisplayName(ItemStack stack) {
    if (!((TileLockable)Block.getBlockFromItem(stack.getItem())).hasMaterial())
      return super.getItemStackDisplayName(stack);
   
    ContainerMaterial material = ContainerMaterial.getMaterial(stack, ContainerMaterial.iron);
   
    String name = StatCollector.translateToLocal(getUnlocalizedName(stack) + ".name.full");
    String materialName = StatCollector.translateToLocal("material." + Constants.modId + "." + material.name);
    return name.replace("%MATERIAL%", materialName);
  }
View Full Code Here

TOP

Related Classes of net.mcft.copy.betterstorage.tile.ContainerMaterial

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.