Examples of WoodType


Examples of forestry.arboriculture.WoodType

    RecipeUtil.injectLeveledRecipe(ForestryItem.sapling.getItemStack(), GameMode.getGameMode().getIntegerSetting("fermenter.yield.sapling"), Defaults.LIQUID_BIOMASS);

    // Stairs
    for (int i = 0; i < 16; i++) {
      WoodType type = WoodType.VALUES[i];
      NBTTagCompound compound = new NBTTagCompound();
      type.saveToCompound(compound);

      ItemStack stairs = ForestryBlock.stairs.getItemStack(4, 0);
      stairs.setTagCompound(compound);
      Proxies.common.addPriorityRecipe(stairs,
          "#  ",
          "## ",
          "###", '#', ForestryBlock.planks1.getItemStack(1, i));
    }
    for (int i = 0; i < 8; i++) {
      WoodType type = WoodType.VALUES[16 + i];
      NBTTagCompound compound = new NBTTagCompound();
      type.saveToCompound(compound);

      ItemStack stairs = ForestryBlock.stairs.getItemStack(4, 0);
      stairs.setTagCompound(compound);
      Proxies.common.addPriorityRecipe(stairs,
          "#  ",
View Full Code Here

Examples of forestry.arboriculture.WoodType

  @SideOnly(Side.CLIENT)
  public IIcon getIcon(int side, int meta) {

    int oriented = meta & 12;

    WoodType type = getWoodType(meta);
    if (type == null)
      return null;

    switch (oriented) {
    case 4:
      if (side > 3)
        return type.getHeartIcon();
      else
        return type.getBarkIcon();
    case 8:
      if (side == 2 || side == 3)
        return type.getHeartIcon();
      else
        return type.getBarkIcon();
    case 0:
    default:
      if (side < 2)
        return type.getHeartIcon();
      else
        return type.getBarkIcon();
    }
  }
View Full Code Here

Examples of forestry.arboriculture.WoodType

    WoodType.registerIcons(register);
  }

  @Override
  public IIcon getIcon(int side, int meta) {
    WoodType type = WoodType.VALUES[(8 * cat.ordinal()) + (meta & 7)];
    return type.getPlankIcon();
  }
View Full Code Here

Examples of forestry.arboriculture.WoodType

  @Override
  public boolean placeBlockAt(ItemStack stack, EntityPlayer player, World world, int x, int y, int z, int side, float hitX, float hitY, float hitZ,
      int metadata) {

    WoodType type = WoodType.getFromCompound(stack.getTagCompound());
    return placeStairs(world, player, stack, type, x, y, z, metadata);

  }
View Full Code Here

Examples of forestry.arboriculture.WoodType

    return true;
  }

  @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

Examples of forestry.arboriculture.WoodType

  @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
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.