Package buildcraft.transport.utils

Examples of buildcraft.transport.utils.FacadeMatrix


  }

  @Override
  public ItemStack getDropFacade(CoreUnroutedPipe pipe, ForgeDirection dir) {
    FacadeMatrix matrix = ((BCRenderState)pipe.container.renderState.bcRenderState.getOriginal()).facadeMatrix;
    Block block = matrix.getFacadeBlock(dir);
    if (block != null) {
      return  BuildCraftTransport.facadeItem.getFacadeForBlock(block,matrix.getFacadeMetaId(dir));
    }
    return null;
  }
View Full Code Here


      case Pipe:
        return new ItemStack(getPipe(world, x, y, z).item, 1, getPipe(world, x, y, z).container.getItemMetadata());
      case Facade:
        ForgeDirection dir = ForgeDirection
            .getOrientation(target.sideHit);
        FacadeMatrix matrix = getPipe(world, x, y, z).container.renderState.facadeMatrix;
        Block block = matrix.getFacadeBlock(dir);
        if (block != null) {
          return BuildCraftTransport.facadeItem.getFacadeForBlock(block,
              matrix.getFacadeMetaId(dir));
        }
      }
    }
    return null;
  }
View Full Code Here

TOP

Related Classes of buildcraft.transport.utils.FacadeMatrix

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.