Package mekanism.common

Examples of mekanism.common.ILogisticalTransporter


    {
      return false;
    }

    TileEntity from = Coord4D.get(tileEntity).getFromSide(side.getOpposite()).getTileEntity(tileEntity.getWorldObj());
    ILogisticalTransporter transporter = (ILogisticalTransporter)tileEntity;

    if(!transporter.canConnectMutual(side.getOpposite()))
    {
      return false;
    }

    return transporter.getColor() == color || transporter.getColor() == null;
  }
View Full Code Here


  {
    ItemStack used = null;

    if(front instanceof ILogisticalTransporter)
    {
      ILogisticalTransporter transporter = (ILogisticalTransporter)front;

      if(!roundRobin)
      {
        ItemStack rejects = TransporterUtils.insert(this, transporter, inInventory.getStack(), filterColor, true, min);
View Full Code Here

        {
          TileEntity tile = Coord4D.get(this).getFromSide(ForgeDirection.getOrientation(0)).getTileEntity(worldObj);

          if(tile instanceof ILogisticalTransporter)
          {
            ILogisticalTransporter transporter = (ILogisticalTransporter)tile;

            ItemStack rejects = TransporterUtils.insert(this, transporter, bottomStack, null, true, 0);

            if(TransporterManager.didEmit(bottomStack, rejects))
            {
View Full Code Here

      {
        TileEntity tileEntity = Coord4D.get(tile()).getFromSide(side).getTileEntity(world());

        if(TransmissionType.checkTransmissionType(tileEntity, getTransmitter().getTransmission()))
        {
          ILogisticalTransporter transporter = (ILogisticalTransporter)tileEntity;

          if(getColor() == null || transporter.getColor() == null || getColor() == transporter.getColor())
          {
            connections |= 1 << side.ordinal();
          }
        }
      }
View Full Code Here

            if(!stack.isFinal(this))
            {
              if(next != null && stack.canInsertToTransporter(stack.getNext(this).getTileEntity(world()), ForgeDirection.getOrientation(stack.getSide(this))))
              {
                ILogisticalTransporter nextTile = (ILogisticalTransporter)next.getTileEntity(world());
                nextTile.entityEntering(stack);
                remove.add(stack);

                continue;
              }
              else if(next != null)
View Full Code Here

          if(tile instanceof IInventory)
          {
            if(pointer.getTileEntity(worldObj) instanceof ILogisticalTransporter)
            {
              ILogisticalTransporter trans = (ILogisticalTransporter)pointer.getTileEntity(worldObj);

              if(!trans.canEmitTo(tile, side))
              {
                continue;
              }
            }
View Full Code Here

    {
      TileEntity tile = Coord4D.get(tileEntity.getTile()).getFromSide(orientation).getTileEntity(tileEntity.getTile().getWorldObj());

      if(tile instanceof ILogisticalTransporter)
      {
        ILogisticalTransporter transporter = (ILogisticalTransporter)tile;

        if(transporter.getColor() == null || tileEntity.getColor() == null || transporter.getColor() == tileEntity.getColor())
        {
          transporters[orientation.ordinal()] = transporter.getTile();
        }
      }
    }

    return transporters;
View Full Code Here

TOP

Related Classes of mekanism.common.ILogisticalTransporter

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.