Package codechicken.multipart

Examples of codechicken.multipart.TMultiPart


        @Override
        public void onDestinationReached()
        {
            BlockCoord bc = particle.blockPosition();
            TMultiPart part = PRLib.getMultiPart(particle.worldObj, bc, 6);
            if (part instanceof PayloadPipePart && !(part instanceof TNetworkPipe))
            {
                PayloadPipePart pipe = (PayloadPipePart) part;

                int connMap = pipe.connMap()&0x3F;
View Full Code Here


        BlockCoord pos = new BlockCoord(g.tile()).offset(absDir);
        TileMultipart t = PRLib.getMultipartTile(g.world(), pos);
        if (t != null)
        {
            TMultiPart tp = t.partMap(g.side());
            if (tp instanceof ITopArrayWire)
            {
                int a_r = ((GatePart) tp).rotation();
                return (a_r & 1) == (g.rotation() & 1);
            }
View Full Code Here

        BlockCoord pos = new BlockCoord(tile()).offset(absDir);
        TileMultipart t = PRLib.getMultipartTile(world(), pos);
        if (t != null && (connMap&0x10<<r) != 0)
        {
            TMultiPart tp = t.partMap(side());
            if (tp != null)
                s = getPartSignal(tp, (r+2)%4);
        }
        else
        {
View Full Code Here

        BlockCoord pos = new BlockCoord(tile()).offset(absDir).offset(side());

        TileMultipart t = PRLib.getMultipartTile(world(), pos);
        if (t != null)
        {
            TMultiPart tp = t.partMap(absDir^1);
            if (tp == prev)
                return;
            if (propogateTo(tp, mode))
                return;
        }
View Full Code Here

        BlockCoord pos = new BlockCoord(tile()).offset(absDir);

        TileMultipart t = PRLib.getMultipartTile(world(), pos);
        if (t != null)
        {
            TMultiPart tp = t.partMap(side());
            if (tp == prev)
                return;
            if (propogateTo(tp, mode))
                return;
        }
View Full Code Here

    public byte[] calculateBundledInternalSignal(int r)
    {
        int absDir = Rotation.rotateSide(side(), r);

        TMultiPart tp = tile().partMap(absDir);
        return getBundledPartSignal(tp, Rotation.rotationTo(absDir, side()));
    }
View Full Code Here

    if ( hit == null )
      return false;

    BlockCoord pos = new BlockCoord( hit.blockX, hit.blockY, hit.blockZ ).offset( hit.sideHit );
    ItemStack held = player.getHeldItem();
    TMultiPart part = null;

    Block blk = null;

    if ( held == null )
      return false;
View Full Code Here

  private CableBusPart getPart()
  {
    scala.collection.Iterator<TMultiPart> i = myMP.partList().iterator();
    while (i.hasNext())
    {
      TMultiPart p = i.next();
      if ( p instanceof CableBusPart )
        myPart = (CableBusPart) p;
    }

    if ( myPart == null )
View Full Code Here

    if ( myPart.isEmpty() )
    {
      scala.collection.Iterator<TMultiPart> i = myMP.partList().iterator();
      while (i.hasNext())
      {
        TMultiPart p = i.next();
        if ( p == myPart )
        {
          myMP = myMP.remPart( myPart );
          break;
        }
View Full Code Here

  public TMultiPart convert(World world, BlockCoord pos)
  {
    Block blk = world.getBlock( pos.x, pos.y, pos.z );
    int meta = world.getBlockMetadata( pos.x, pos.y, pos.z );

    TMultiPart part = PartRegistry.getPartByBlock( blk, meta );
    if ( part instanceof CableBusPart )
    {
      CableBusPart cbp = (CableBusPart) part;
      cbp.convertFromTile( world.getTileEntity( pos.x, pos.y, pos.z ) );
    }
View Full Code Here

TOP

Related Classes of codechicken.multipart.TMultiPart

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.