Package buildcraft.transport

Examples of buildcraft.transport.TravelingItem


    event.destinations.remove(output);
  }

  public void eventHandler(PipeEventItem.AdjustSpeed event) {
    event.handled = true;
    TravelingItem item = event.item;

    if (item.getSpeed() > TransportConstants.PIPE_NORMAL_SPEED) {
      item.setSpeed(item.getSpeed() - TransportConstants.PIPE_NORMAL_SPEED / 4.0F);
    }

    if (item.getSpeed() < TransportConstants.PIPE_NORMAL_SPEED) {
      item.setSpeed(TransportConstants.PIPE_NORMAL_SPEED);
    }
  }
View Full Code Here


    return PipeIconProvider.TYPE.PipeItemsStone.ordinal();
  }

  public void eventHandler(PipeEventItem.AdjustSpeed event) {
    event.handled = true;
    TravelingItem item = event.item;

    if (item.getSpeed() > TransportConstants.PIPE_NORMAL_SPEED) {
      item.setSpeed(item.getSpeed() - TransportConstants.PIPE_NORMAL_SPEED / 2.0F);
    }

    if (item.getSpeed() < TransportConstants.PIPE_NORMAL_SPEED) {
      item.setSpeed(TransportConstants.PIPE_NORMAL_SPEED);
    }
  }
View Full Code Here

    return PipeIconProvider.TYPE.PipeItemsGold.ordinal();
  }

  public void eventHandler(PipeEventItem.AdjustSpeed event) {
    event.handled = true;
    TravelingItem item = event.item;
    item.setSpeed(MathUtils.clamp(item.getSpeed() * 4F, TransportConstants.PIPE_NORMAL_SPEED * 4F, TransportConstants.PIPE_NORMAL_SPEED * 15F));
  }
 
View Full Code Here

TOP

Related Classes of buildcraft.transport.TravelingItem

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.