Package logisticspipes.pipes.basic

Examples of logisticspipes.pipes.basic.CoreUnroutedPipe


 
  protected Item createPipe(Class <? extends CoreUnroutedPipe> clas, String descr, Side side) {
    ItemLogisticsPipe res = LogisticsBlockGenericPipe.registerPipe(clas);
    res.setCreativeTab(LogisticsPipes.LPCreativeTab);
    res.setUnlocalizedName(clas.getSimpleName());
    CoreUnroutedPipe pipe = LogisticsBlockGenericPipe.createPipe(res);
    if(pipe instanceof CoreRoutedPipe) {
      res.setPipeIconIndex(((CoreRoutedPipe)pipe).getTextureType(ForgeDirection.UNKNOWN).normal);
    }
   
    if(side.isClient()) {
View Full Code Here


    int dim = stack.stackTagCompound.getInteger("connectedPipe-world-dim");
    World world = DimensionManager.getWorld(dim);
    if(world == null) { return null; }
    TileEntity tile = world.getTileEntity(stack.stackTagCompound.getInteger("connectedPipe-x"), stack.stackTagCompound.getInteger("connectedPipe-y"), stack.stackTagCompound.getInteger("connectedPipe-z"));
    if(!(tile instanceof LogisticsTileGenericPipe)) { return null; }
    CoreUnroutedPipe pipe = ((LogisticsTileGenericPipe)tile).pipe;
    if(pipe instanceof PipeItemsRemoteOrdererLogistics) { return (PipeItemsRemoteOrdererLogistics)pipe; }
    return null;
  }
View Full Code Here

  public boolean onItemUse(final ItemStack par1ItemStack, final EntityPlayer par2EntityPlayer, final World par3World, int par4, int par5, int par6, int par7, float par8, float par9, float par10) {
    if(MainProxy.isServer(par2EntityPlayer.worldObj)) {
      TileEntity tile = par3World.getTileEntity(par4, par5, par6);
      if(tile instanceof LogisticsTileGenericPipe) {
        if (par2EntityPlayer.getDisplayName().equals("ComputerCraft")) { //Allow turtle to place modules in pipes.
          CoreUnroutedPipe pipe = LogisticsBlockGenericPipe.getPipe(par3World, par4, par5, par6);
          if (LogisticsBlockGenericPipe.isValid(pipe)){
            pipe.blockActivated(par2EntityPlayer);
          }
        }
        return true;
      }
      openConfigGui(par1ItemStack, par2EntityPlayer, par3World);
View Full Code Here

    if (itemstack.stackSize == 0) {
      return false;
    }

    if (world.canPlaceEntityOnSide(block, i, j, k, false, side, entityplayer, itemstack)) {
      CoreUnroutedPipe pipe = LogisticsBlockGenericPipe.createPipe(this);

      if (pipe == null) {
        LogisticsPipes.log.log(Level.WARN, "Pipe failed to create during placement at {0},{1},{2}", new Object[]{i, j, k});
        return true;
      }
View Full Code Here

TOP

Related Classes of logisticspipes.pipes.basic.CoreUnroutedPipe

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.