Package appeng.api.implementations.parts

Examples of appeng.api.implementations.parts.IPartCable


  }

  // @Override
  public int getHollowSize(int side)
  {
    IPartCable cable = (IPartCable) getPart( ForgeDirection.UNKNOWN );

    ForgeDirection dir = ForgeDirection.getOrientation( side );
    if ( cable != null && cable.isConnected( dir ) )
    {
      List<AxisAlignedBB> boxes = new ArrayList<AxisAlignedBB>();

      BusCollisionHelper bch = new BusCollisionHelper( boxes, ForgeDirection.EAST, ForgeDirection.UP, ForgeDirection.SOUTH, null, true );
View Full Code Here


        return t;
    }

    if ( getCenter() != null )
    {
      IPartCable c = getCenter();
      return c.getCableConnectionType();
    }
    return AECableType.NONE;
  }
View Full Code Here

  @Override
  public AEColor getColor()
  {
    if ( getCenter() != null )
    {
      IPartCable c = getCenter();
      return c.getCableColor();
    }
    return AEColor.Transparent;
  }
View Full Code Here

  public boolean recolourBlock(ForgeDirection side, AEColor colour, EntityPlayer who)
  {
    IPart cable = getPart( ForgeDirection.UNKNOWN );
    if ( cable != null )
    {
      IPartCable pc = (IPartCable) cable;
      return pc.changeColor( colour, who );
    }
    return false;
  }
View Full Code Here

TOP

Related Classes of appeng.api.implementations.parts.IPartCable

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.