Examples of TMultiPart


Examples of codechicken.multipart.TMultiPart

      if ( mp != null )
      {
        scala.collection.Iterator<TMultiPart> i = mp.partList().iterator();
        while (i.hasNext())
        {
          TMultiPart p = i.next();
          if ( p instanceof CableBusPart )
            return (IPartHost) p;
        }

        return new FMPPlacementHelper( mp );
View Full Code Here

Examples of codechicken.multipart.TMultiPart

    {
      TileMultipart mp = (TileMultipart) te;
      scala.collection.Iterator<TMultiPart> i = mp.partList().iterator();
      while (i.hasNext())
      {
        TMultiPart p = i.next();
        if ( p instanceof CableBusPart )
          return ((CableBusPart) p).cb;
      }
    }
    return null;
View Full Code Here

Examples of codechicken.multipart.TMultiPart

        return false;
    }

    @Override
    public TMultiPart newPart(ItemStack item, EntityPlayer player, World world, BlockCoord pos, int side, Vector3 vhit){
        TMultiPart part = MultiPartRegistry.createPart(partName, false);
        if(part instanceof PartTubeModule) {
            ((PartTubeModule)part).setModule(ModuleRegistrator.getModule(partName));
        }
        if(part instanceof ISidedPart) {
            ((ISidedPart)part).setDirection(ForgeDirection.getOrientation(side));
View Full Code Here

Examples of codechicken.multipart.TMultiPart

            return false;
        }
    }

    private boolean place(ItemStack item, EntityPlayer player, BlockCoord pos, World world, int side, Vector3 vhit){
        TMultiPart part = newPart(item, player, world, pos, side, vhit);
        if(part == null || !TileMultipart.canPlacePart(world, pos, part)) return false;
        if(!world.isRemote) TileMultipart.addPart(world, pos, part);
        if(!player.capabilities.isCreativeMode) item.stackSize -= 1;
        return true;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.